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

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

var counter = 0;

runSlideShow();

function runSlideShow(){
	var imgSlideShow = document.getElementById("imgSlideShow");
	if (document.all){
		imgSlideShow.style.filter="blendTrans(duration=2)";
		imgSlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		imgSlideShow.filters.blendTrans.Apply();
	}
   imgSlideShow.src = "../GetRandImage.php?Count=" + counter;
   if (document.all) {
      imgSlideShow.filters.blendTrans.Play();
   }
   counter++;
   t = setTimeout('runSlideShow()', slideShowSpeed);
}
