<!--

var numGraphics = 16;	// <=== Adjust the number of image files here
var theGraphics = null;
function getRandomNumber(n) {
	//Returns a pseudorandom number between 1 and n
	today = new Date();
	var bigNum = today.getSeconds() * today.getTime() * Math.sqrt(today.getMinutes());
	var randNum = (bigNum % n) + 1;
	return Math.floor(randNum);
	}
function initArray(n) {
	this.length = n;
	for(var i = 1; i <= n; i++) {
		this[i] = "";
		}
	return this;
	}
function initGraphics() {
	theGraphics = new initArray(numGraphics);
	for(i = 1; i <= numGraphics; i++) {
		theGraphics[i] = i;
		}
	}
function getRandomGraphic() {
	var theIndex = getRandomNumber(numGraphics);
	return theGraphics[theIndex];
	}
function getGraphic() {
	var theGraphicNumber = getRandomGraphic();
	theGraphic = "/assets/photosbot/photo" + theGraphicNumber + '.jpg';
	return theGraphic;
	}
function loadGraphicB() {
	theGraphic = getGraphic();
	var theTag = '<img src="' + theGraphic + '"';
	document.write(theTag);
	}

initGraphics();

//-->
