var slideShowSpeed = 5000;

var timer;
var imageIdx = 0;
var imageListLength = imageList.length;

var theImages = new Array();
for (i = 0; i < imageListLength; i++){
   theImages[i] = new Image();
   theImages[i].src = imageList[i];
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)";
      document.images.SlideShow.filters.blendTrans.Apply();
   }
   document.images.SlideShow.src = theImages[imageIdx].src;
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   imageIdx += 1;
   if (imageIdx > (imageListLength-1)) imageIdx=0;
   timer = setTimeout('runSlideShow()', slideShowSpeed);
}

function stopSlideShow(){
	clearTimeout(timer);
}

