<!--
// REQUIRES: 
//rotating image to have name="SlideShow"
//code on page to kick it off - runSlideShow()
//pic array with image files in it

// these will be dynamically output using php

var slideShowSpeed = 4000;
var crossFadeDuration = 1200000;

var Xt;
var Xj = 0;
var Xp = XPic.length;

var XpreLoad = new Array();

for (Xi = 0; Xi < Xp; Xi++){
   XpreLoad[Xi] = new Image();
   XpreLoad[Xi].src = XPic[Xi];
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=6)";
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow.filters.blendTrans.Apply();
   }
   document.images.SlideShow.src = XpreLoad[Xj].src;
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   Xj = Xj + 1;
   if (Xj > (Xp-1)) Xj=0;
   Xt = setTimeout('runSlideShow()', slideShowSpeed);
}

//-->
