// JavaScript Document

/* 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=4;
var whichContent=getRandom(maxContent);
whichContent--;

/* Define the array here. */
var Content=new Array(maxContent);
Content[0]="<img src='images/home/promo.rotate1.gif' width='227' height='225' style='padding-top: 192px;' alt='PSLawNet - The online resource to find the ideal public interest job opportunity' title='PSLawNet - The online resource to find the ideal public interest job opportunity'>"
Content[1]="<img src='images/home/promo.rotate2.gif' width='227' height='225' style='padding-top: 192px;' alt='PSLawNet - The online career services office for public interest-minded law students' title='PSLawNet - The online career services office for public interest-minded law students'>"
Content[2]="<img src='images/home/promo.rotate3.gif' width='227' height='225' style='padding-top: 192px;' alt='PSLawNet - The online bulletin board to post public interest job opportunities' title='PSLawNet - The online bulletin board to post public interest job opportunities'>"
Content[3]="<img src='images/home/promo.rotate4.gif' width='227' height='225' style='padding-top: 192px;' alt='PSLawNet - The meeting point for public interest job seekers and employers' title='PSLawNet - The meeting point for public interest job seekers and employers'>"


/* Write the content to the document. */
document.write(Content[whichContent]);

