/*******************************************************************
	Slideshow for the default page of TSU Science Fair
	No pixels were harmed during the making of this slideshow.
*******************************************************************/

var numOfPics = 10; 
var image = new Array(numOfPics);
var k = 0; //kount for the slideShow, initialized to 0

function loadArray()
{
	for(i=0; i<(image.length); i++)
	{
		image[i] = new Image();
		image[i].src = "PICTURES/slideShow/picture" + i + ".JPG";
	}	
}

function slideShow()
{	 
	if(!document.images) // if the browser does not support that object		
		return 
	document.images.pics.src = eval("image" + "[" + k + "]" + ".src");
	if(k < (numOfPics-1))
		k++;
	else
		k=0; 
		
	setTimeout("slideShow()", 3000); //function executed every five seconds
}
loadArray()		
slideShow()
