   // Set the slideshow speed (in milliseconds)
   var SlideShowSpeed = 4000;

   // Set the duration of crossfade (in seconds)
   var CrossFadeDuration = 10;
   var Picture = new Array(); // don't change this


   // Specify the image files...

   var photoIndexStr;
   for ( T = 1; T <= noOfImages; T++ ){
      photoIndexStr = T.toString()		
      if (photoIndexStr.length == 1) {
         photoIndexStr = "000" + photoIndexStr
      }else{
         if (photoIndexStr.length == 2) {
            photoIndexStr = "00" + photoIndexStr
         }else{
            if (photoIndexStr.length == 3) {
               photoIndexStr = "0" + photoIndexStr
            }					
         }
      }
      Picture[T] = "images/slideshows/" + showID + "/screen_" + photoIndexStr +".jpg"
   }

   // =====================================
   // Do not edit anything below this line!
   // =====================================

   var tss;
   var iss;
   var jss = 1;
   var pss = Picture.length-1;

   var preLoad = new Array();
   for (iss = 1; iss < pss+1; iss++){
      preLoad[iss] = new Image();
      preLoad[iss].src = Picture[iss];
   }

   function runSlideShow(){
      if (document.all){
         document.images.photo.style.filter="blendTrans(duration=2)";
         document.images.photo.style.filter="blendTrans(duration=CrossFadeDuration)";
         document.images.photo.filters.blendTrans.Apply();
      }

      document.images.photo.src = preLoad[jss].src;
      caption.innerHTML=Captions[jss]

      if (document.all) document.images.photo.filters.blendTrans.Play();
      jss = jss + 1;
      if (jss > (pss)) jss=1;
      tss = setTimeout('runSlideShow()', SlideShowSpeed);
   }

   function stopSlideShow(){
      clearTimeout(tss); 
   }

