// 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 randomArt(){
	var myimages=new Array();
	myimages[1]="images/gallery/DSC00011.jpg";
	myimages[2]="images/gallery/DSC00016.jpg";
	myimages[3]="images/gallery/DSC00023.jpg";
	myimages[4]="images/gallery/DSC00024.jpg";
	myimages[5]="images/gallery/DSC00059.jpg";
	myimages[6]="images/gallery/DSC00091.jpg";
	myimages[7]="images/gallery/art_5.jpg";
	myimages[8]="images/gallery/art_8.jpg";
	myimages[9]="images/gallery/art_17.jpg";
	myimages[10]="images/gallery/DSC00132.jpg";
	myimages[11]="images/gallery/DSC00076.jpg";
	myimages[12]="images/gallery/DSC00122.jpg";
	myimages[13]="images/gallery/DSC00002.jpg";
	myimages[14]="images/gallery/art_22.jpg";
	myimages[15]="images/gallery/DSC00009.jpg";
	myimages[16]="images/gallery/art_20.jpg";
	myimages[17]="images/gallery/DSC00010.jpg";
	myimages[18]="images/gallery/DSC00014.jpg";
	myimages[19]="images/gallery/DSC00006.jpg";
	myimages[20]="images/gallery/art_21.jpg";
	myimages[21]="images/gallery/art_23.jpg";
	myimages[22]="images/gallery/art_9.jpg";
	myimages[23]="images/gallery/art_10.jpg";

	
	var links=new Array();
	links[1]="gallery.html";
	links[2]="gallery.html";
	links[3]="gallery.html";
	links[4]="gallery.html";
	links[5]="gallery.html";
	links[6]="gallery.html";
	links[7]="gallery.html";
	links[8]="gallery.html";
	links[9]="gallery.html";
	links[10]="gallery.html";
	links[11]="gallery.html";
	links[12]="gallery.html";
	links[13]="gallery.html";
	links[14]="gallery.html";
	links[15]="gallery.html";
	links[16]="gallery.html";
	links[17]="gallery.html";
	links[18]="gallery.html";
	links[19]="gallery.html";
	links[20]="gallery.html";
	links[21]="gallery.html";
	links[22]="gallery.html";
	links[23]="gallery.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>');
	}
}



