
	var slideShowSpeed = 3000;
	var crossFadeDuration = 3;
	var width = 620;
	var height = 200;
						
	var preLoad = new Array();
//	alert(navigator.appVersion);
//	alert(() && navigator.appVersion);
	
	function isIE7() {
		var index = navigator.appVersion.indexOf("MSIE");
		if (index == -1) return(false);
		return(navigator.userAgent.indexOf('MSIE') > -1 && (parseFloat(navigator.appVersion.substring(index + 5)) >= 7));
  }
  
	var doblend = isIE7();
	
	for (j = 1; j <= maximages; j++) 
  {
	   preLoad[j] = new Image();
	   preLoad[j].src = imagedir + j + ".gif";
	}

  j = 1;	
//	document.images.SlideShowIMG.width = width;
	//document.images.SlideShowIMG.height = height;
	   	
	function runSlideShow() {
	
     	if (doblend) {
        	document.images.SlideShowIMG.style.filter="blendTrans(duration=9)";
        	document.images.SlideShowIMG.style.filter="blendTrans(duration=crossFadeDuration)";
        	document.images.SlideShowIMG.filters.blendTrans.Apply(); 
     	}
 	
	   	if(preLoad[j])
		   	document.images.SlideShowIMG.src = preLoad[j].src;
		  
		  if (doblend)
		   	document.images.SlideShowIMG.filters.blendTrans.Play()
		
      if(j++ >= maximages) j = 1;
		  
      t = setTimeout('runSlideShow()', slideShowSpeed);
	}
  runSlideShow();

