


				
// set these variables 		
var numberOfLastImage = 6;	
var numberOfFirstImage = 1;	
var delayIn100thSeconds = 500;

var destination = new Array();
var slide = new Array();



slide[1] = "images/image1.jpg";
destination[1] = "image1.htm"; 

slide[2] = "images/image2.jpg";
destination[2] = "image2.htm"; 

slide[3] = "images/image3.jpg";
destination[3] = "image3.htm"; 

slide[4] = "images/image4.jpg";
destination[4] = "image4.htm"; 

slide[5] = "images/image5.jpg";
destination[5] = "image5.htm"; 
 
slide[6] = "images/image6.jpg";
destination[6] = "image6.htm"; 




var slideNumber = 0;



function goTo()
{
		window.location.href = destination[slideNumber];
}



function showNextSlide()
{	
	slideNumber++
	if(slideNumber > numberOfLastImage )	// if past last slide
		{
			slideNumber = numberOfFirstImage ;
		}

	document.screen.src = slide[slideNumber]; 	// send slide to screen
	
	setTimeout("showNextSlide()",delayIn100thSeconds * 10);

}

