/* This function generates a random number to be used later to call random text/images when the page is reloaded. */
function getRandom(maxNum)
{
if (Math.random && Math.round)
	{
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
	}
else
	{
	today=new Date();
	hours=today.getHours();
	mins=today.getMinutes();
  	secn=today.getSeconds();
	if (hours==19)
		{
		hours=18;
		}
	var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
	return ranNum;
	}
}

/* This section writes text/images from an array when called from the body of the page. */
/* Adjust the maxContent value below to match the number of items in the array. */
var maxContent=5;
var whichContent=getRandom(maxContent);
whichContent--;

/* Define the array here. */
var Content=new Array(maxContent);
Content[0]="<img src='images/inner/1.jpg' width='123' height='116'>"
Content[1]="<img src='images/inner/3.jpg' width='123' height='116'>"
Content[2]="<img src='images/inner/8.jpg' width='123' height='116'>"
Content[3]="<img src='images/inner/52.jpg' width='123' height='116'>"
Content[4]="<img src='images/inner/45.jpg' width='123' height='116'>"

/* Write the content to the document. */
document.write(Content[whichContent]);
