// JavaScript Document
tday  =new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
tmonth=new Array("January","February","March","April","May","June","July","August","September","October","November","December");

function GetClock(){
	d = new Date();
	nday   = d.getDay();
	nmonth = d.getMonth();
	ndate  = d.getDate();
	nyeara = d.getYear();
	if(nyeara<1000){nyeara=(""+(nyeara+11900)).substring(1,5);}
	else{nyeara=(""+(nyeara+10000)).substring(1,5);}
	
	
	document.getElementById('clockbox').innerHTML=""+tmonth[nmonth]+" "+ndate+", "+nyeara+"";
	setTimeout("GetClock()", 1000);
}
window.onload=function(){GetClock();}

function randomPhoto(){
	var myimages=new Array();
	myimages[1]="images/gallery1/school2011_170.jpg";
	myimages[2]="images/gallery1/school2011_165.jpg";
	myimages[3]="images/gallery1/school2011_107.jpg";
	myimages[4]="images/gallery1/school2011_116.jpg";
	myimages[5]="images/gallery1/school2011_132.jpg";
	myimages[6]="images/gallery1/school2011_029.jpg";
	myimages[7]="images/gallery1/photos72.jpg";
	myimages[8]="images/gallery1/photos17.jpg";
	myimages[9]="images/gallery1/photos27.jpg";
	myimages[10]="images/gallery1/photos73.jpg";
	myimages[11]="images/gallery1/photos74.jpg";
	myimages[12]="images/gallery1/photos71.jpg";
	myimages[13]="images/gallery1/photos5.jpg";
	myimages[14]="images/gallery1/photos28.jpg";
	myimages[15]="images/gallery1/photos33.jpg";
	myimages[16]="images/gallery1/photos30.jpg";
	myimages[17]="images/gallery1/photos31.jpg";
	myimages[18]="images/gallery1/photos10.jpg";
	myimages[19]="images/gallery1/photos18.jpg";
	myimages[20]="images/gallery1/photos4.jpg";
	myimages[21]="images/gallery1/photos68.jpg";
	myimages[22]="images/gallery1/photos0125.jpg";
	myimages[23]="images/gallery1/photos0167.jpg";
	myimages[24]="images/gallery1/photos0224.jpg";
	myimages[25]="images/gallery1/photos0149.jpg";
	myimages[26]="images/gallery1/photos0277.jpg";
	
	var links=new Array();
	links[1]="photos.html";
	links[2]="photos.html";
	links[3]="photos.html";
	links[4]="photos.html";
	links[5]="photos.html";
	links[6]="photos.html";
	links[7]="photos.html";
	links[8]="photos.html";
	links[9]="photos.html";
	links[10]="photos.html";
	links[11]="photos.html";
	links[12]="photos.html";
	links[13]="photos.html";
	links[14]="photos.html";
	links[15]="photos.html";
	links[16]="photos.html";
	links[17]="photos.html";
	links[18]="photos.html";
	links[19]="photos.html";
	links[20]="photos.html";
	links[21]="photos.html";
	links[22]="photos.html";
	links[23]="photos.html";
	links[24]="photos.html";
	links[25]="photos.html";
	links[26]="photos.html";
	

	
	var ry=Math.floor(Math.random()*myimages.length);
	
	if (ry==0) {
	ry=1;
	document.write('<a href="'+links[ry]+'" target="_self"><img src="'+myimages[ry]+'" border="0" /></a>');
	} else {
	document.write('<a href="'+links[ry]+'" target="_self"><img src="'+myimages[ry]+'" border="0" /></a>');
	}
}



