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

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



slide[1] = "images/posters/gtrajan-regular-alts.png";
destination[1] = "html/tipoteca/goudy-trajan-reg-alts.html"; 

slide[2] = "images/posters/gtrajan-reg-bromeliads.png";
destination[2] = "html/tipoteca/goudy-trajan-regular.html"; 

slide[3] = "images/posters/gtrajan-regular-embossed.png";
destination[3] = "html/tipoteca/goudy-trajan-regular.html"; 

slide[4] = "images/posters/goudy-trajan.png";
destination[4] = "html/tipoteca/goudy-trajan-regular.html"; 

slide[5] = "images/posters/gtrajan-regular-cyrillic.png";
destination[5] = "html/tipoteca/goudy-trajan-reg-cyr.html"; 

slide[6] = "images/posters/gtrajan-reg-graffiti.png";
destination[6] = "html/tipoteca/goudy-trajan-regular.html"; 

slide[7] = "images/posters/gtrajan-reg-modernart.png";
destination[7] = "html/tipoteca/goudy-trajan-regular.html"; 

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);

}