
var numGraphics = 5;
// <=== Adjust the number of image files here
var theDir = "pics/";
var rootName = "img";
var theGraphics = null;

function getRandomNumber(n) {
	//Returns a pseudorandom number between 0 and n
	today = new Date();
	var bigNum = today.getSeconds() * today.getTime() *
	Math.sqrt(today.getMinutes());
	var randNum = (bigNum % n);
	return Math.floor(randNum);
}

function loadGraphic(divID) {
	var theTag = "url("+theDir + rootName + getRandomNumber(numGraphics) + ".jpg)";
//	theTag += ' width="350" height="250" border="0" alt="">'
//	alert(theTag);
	document.getElementById(divID).style.backgroundImage = theTag;
}


