// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4500;

// Duration of crossfade (seconds)
var crossFadeDuration = 3;

// Specify the image files
var Pic = new Array();

Pic[0] = 'images/slideshow/img1.jpg';
Pic[1] = 'images/slideshow/img2.jpg';
Pic[2] = 'images/slideshow/img3.jpg';
Pic[3] = 'images/slideshow/img4.jpg';
Pic[4] = 'images/slideshow/img5.jpg';
Pic[5] = 'images/slideshow/img6.jpg';
Pic[6] = 'images/slideshow/img7.jpg';
Pic[7] = 'images/slideshow/img8.jpg';
Pic[8] = 'images/slideshow/img9.jpg';
Pic[9] = 'images/slideshow/img10.jpg';
//Pic[10] = 'images/slideshow/img11.jpg';
//Pic[11] = 'images/slideshow/img12.jpg';
//Pic[12] = 'images/slideshow/img13.jpg';
//Pic[13] = 'images/slideshow/img14.jpg';
//Pic[14] = 'images/slideshow/img15.jpg';
//Pic[15] = 'images/slideshow/img16.jpg';
//Pic[16] = 'images/slideshow/img17.jpg';
//Pic[17] = 'images/slideshow/img18.jpg';
//Pic[18] = 'images/slideshow/img19.jpg';
//Pic[19] = 'images/slideshow/img20.jpg';
//Pic[20] = 'images/slideshow/img21.jpg';

// =======================================
// do not edit anything below this line
// =======================================

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.SlideShow.style.filter="blendTrans(duration=2)";
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow.filters.blendTrans.Apply();     
   }
   document.images.SlideShow.src = preLoad[j].src;
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p-1)) j=0;
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

