// JavaScript Document
//var speed = 5000; = 5 seconds

var speed = 3500;
var crossFadeDuration = 2;

var loopcount = 0 
var loopmax = 1 

var Pic = new Array();
Pic[0] = 'images/tour/t1.jpg'; 
Pic[1] = 'images/tour/t2.jpg'; 
Pic[2] = 'images/tour/t3.jpg'; 
Pic[3] = 'images/tour/t4.jpg'; 
Pic[4] = 'images/tour/t5.jpg'; 
Pic[5] = 'images/tour/t6.jpg'; 
Pic[6] = 'images/tour/t7.jpg'; 
Pic[7] = 'images/tour/t8.jpg'; 
Pic[8] = 'images/tour/t9.jpg'; 
Pic[9] = 'images/tour/t10.jpg'; 
Pic[10] = 'images/tour/t1.jpg'; 

 //Do not edit anything between this line and the next comment.

var i;
var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array();
for (i = 0; i < p; i++){
  preLoad[i] = new Image();
  preLoad[i].src = Pic[i];
}
  
function runSlideShow(){

if (document.all){
  document.images.pix.style.filter="blendTrans(duration=crossFadeDuration)";
	document.images.pix.filters.blendTrans.Apply();
  document.images.pix.filters.blendTrans.Play();
 } 

document.images.pix.src = Pic[j]; 

if (1){
  j = j + 1
  if (j > (p-1)) j=0
	
	
	if (j == 0) { // are we at the end of a full set of slides? 
		loopcount = loopcount + 1 // this line increments the loopcount 
		if (loopcount == loopmax) { // have we reached the loopmaximum yet? 
		return false // this line just quits the function, so the slideshow stops. 
		} 
	} 	
 	
 		t = setTimeout('runSlideShow()', speed)
	}  
				return false;
}
 	

