
var numGraphics = 12;
// <=== Adjust the number of image files here
var theDir = "/photos/";
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(myDir) {
	var theTag = '<img src= "' + myDir + rootName + getRandomNumber(numGraphics) + '.jpg"';
	theTag += ' width="250" height="150" border="0" alt="">'
	//alert(theTag);
	document.write(theTag);
}


