// =======================================

// set the following variables

// =======================================



// Set slideShowSpeed (milliseconds)

var slideShowSpeed1 = 4000



// Duration of crossfade (seconds)

var crossFadeDuration1 = 1



// Specify the image files

var Pic1 = new Array() // don't touch this

// to add more images, just continue

// the pattern, adding to the array below

var nb_alea1
var ii1
var Pic_temp1 = new Array()
Pic_temp1[0] = '../images/photos/epreuves/epreuves1.jpg'
Pic_temp1[1] = '../images/photos/epreuves/epreuves2.jpg'
Pic_temp1[2] = '../images/photos/epreuves/epreuves3.jpg'
Pic_temp1[3] = '../images/photos/epreuves/epreuves4.jpg'



nb_alea1=Math.floor(Math.random() * 4);
for(ii1=0 ; ii1<4 ; ii1++){

	Pic1[ii1] = Pic_temp1[nb_alea1];
	if(nb_alea1 == 3){ 
		nb_alea1 = 0; 
	} else {
		nb_alea1++;
	}
}


// =======================================

// do not edit anything below this line

// =======================================



var t1

var j1 = 0

var p1 = Pic1.length



var preLoad1 = new Array()

for (i1 = 0; i1 < p1; i1++){

   preLoad1[i1] = new Image()

   preLoad1[i1].src = Pic1[i1]

}



function runSlideShow1(){

   if (document.all){

      document.images.SlideShow1.style.filter="blendTrans(duration=2)"

      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"

      document.images.SlideShow1.filters.blendTrans.Apply()      

   }

   document.images.SlideShow1.src = preLoad1[j1].src

   if (document.all){

      document.images.SlideShow1.filters.blendTrans.Play()

   }

   j1 = j1 + 1

   if (j1 > (p1-1)) j1=0

   t = setTimeout('runSlideShow1()', slideShowSpeed1)

}
