<!--
var numGraphics = 3;	// <=== 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] = "photo" + i + ".jpg";
		}
	}
function getRandomGraphic() {
	var theIndex = getRandomNumber(numGraphics);
	return theGraphics[theIndex];
	}
function getGraphic() {
	var theGraphicName = getRandomGraphic();
	theGraphic = "graphics/" + theGraphicName;
	return theGraphic;
	}
function loadGraphic() {
	theGraphic = getGraphic();
	var theTag = '<div style="background-image: url('+ theGraphic + '); background-repeat: no-repeat; height: 184px;">';
	document.write(theTag);
	}
function loadGraphicDH() {
	theGraphic = getGraphic();
	var theTag = '<img src="'+ theGraphic + '" border="0">';
	document.write(theTag);
	}
function loadGraphic_slice() {
	theGraphic = getGraphic();
	var theTag = '<div style="background-image: url('+ theGraphic + '); background-repeat: no-repeat; height: 80px;">';
	document.write(theTag);
	}
function loadGraphicDHSouthHome() {
	theGraphic = getGraphic();
	var theTag = '<div style="background-image: url('+ theGraphic + '); background-repeat: no-repeat; height: 180px;">';
	document.write(theTag);
	}

initGraphics();
// -->