// METTER LA VITESSE DE L'IMAGE EN milliseconds- slideShowSpeed (milliseconds)
var slideShowSpeed = 2000;
var slideShowSpeed2 = 2000;

// La duree en secondes
var crossFadeDuration = 1;
 




function runSlideShow(){
   if (document.all){
	  document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
	  document.images.SlideShow.filters.blendTrans.Apply() ;     
   }
      document.images.SlideShow.src = preLoad[j].src;

   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p-1)) j=0;
   t = setTimeout('runSlideShow()', slideShowSpeed);
   
}

function runSlideShow2(){
   if (document.all){
	  document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)";
	  document.images.SlideShow2.filters.blendTrans.Apply()  ;    
   }
      document.images.SlideShow2.src = preLoad2[j2].src;

   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play();
   }
   j2 = j2 + 1;
   if (j2 > (p2-1)) j2=0;
   t2 = setTimeout('runSlideShow2()', slideShowSpeed2);
   
}

function runSlideShow3(){
   if (document.all){
	  document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)";
	  document.images.SlideShow3.filters.blendTrans.Apply()  ;    
   }
      document.images.SlideShow3.src = preLoad3[j3].src;

   if (document.all){
      document.images.SlideShow3.filters.blendTrans.Play();
   }
   j3 = j3 + 1;
   if (j3 > (p3-1)) j3=0;
   t3 = setTimeout('runSlideShow3()', slideShowSpeed3);
   
}


function runSlideShow4(){
   if (document.all){
	  document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)";
	  document.images.SlideShow4.filters.blendTrans.Apply()  ;    
   }
      document.images.SlideShow4.src = preLoad4[j4].src;

   if (document.all){
      document.images.SlideShow4.filters.blendTrans.Play();
   }
   j4 = j4 + 1;
   if (j4 > (p4-1)) j4=0;
   t4 = setTimeout('runSlideShow4()', slideShowSpeed4);
   
}
