
// Set slideshowSpeed (milliseconds)
var slideshowSpeed = 7000;

// Duration of blendTrans (seconds)
var blendDuration = 1.5;
// Duration of revealTrans (seconds)
var revealDuration = 1;

// reveal Transition style
var revealTransition = 6;



var t
var imageCursor = 0;
var currentimage = 0;
var numImages;
var preLoad = new Array();

function preLoadImages()
{
	numImages = slideshowImage.length;
	for (x = 0; x < numImages; x++){
	   preLoad[x] = new Image()
	   preLoad[x].src = slideshowImage[x]

	}
	goSlideshow();
}

function goSlideshow(){
   if (document.all){
      document.images['SlideShow'].style.filter="blendTrans(duration=crossFadeDuration) revealTrans(duration="+revealDuration+",transition="+revealTransition+")";
      document.images['SlideShow'].filters(0).Apply();
      document.images['SlideShow'].filters(1).Apply();
   }
   document.images['SlideShow'].src = preLoad[imageCursor].src;
   currentimage = imageCursor;
   if (document.all){
      document.images['SlideShow'].filters(0).Play();
      document.images['SlideShow'].filters(1).Play();
   }

   imageCursor = imageCursor + 1
   if (imageCursor > (numImages-1)) imageCursor=0
   t = setTimeout('goSlideshow()', slideshowSpeed)
}