
// vitesse de defilement (milliseconds)


var temps_pause = 3000 ; // temps d'attente entre 2 changements d'images
var nombre_image = 27 ; // nombre d'images a faire bouger
var prefix_image = 'images/intro/'; // chemin + prefix du nom des images
var suffix_image = '.jpg' ; // suffix + '.extension' du nom des images

// Specify the image files
var Img = new Array() // don't touch this
// pour ajouter des images
// dupliquer et remplir les lignes suivante

Img[0] = prefix_image+'01'+suffix_image;
Img[1] = prefix_image+'02'+suffix_image;
Img[2] = prefix_image+'03'+suffix_image;
Img[3] = prefix_image+'04'+suffix_image;
Img[4] = prefix_image+'05'+suffix_image;
Img[5] = prefix_image+'06'+suffix_image;
Img[6] = prefix_image+'07'+suffix_image;
Img[7] = prefix_image+'08'+suffix_image;
Img[8] = prefix_image+'09'+suffix_image;
Img[9] = prefix_image+'10'+suffix_image;
Img[10] = prefix_image+'11'+suffix_image;
Img[11] = prefix_image+'12'+suffix_image;
Img[12] = prefix_image+'13'+suffix_image;
Img[13] = prefix_image+'14'+suffix_image;
Img[14] = prefix_image+'15'+suffix_image;
Img[15] = prefix_image+'16'+suffix_image;
Img[16] = prefix_image+'17'+suffix_image;
Img[17] = prefix_image+'18'+suffix_image;
Img[18] = prefix_image+'19'+suffix_image;
Img[19] = prefix_image+'20'+suffix_image;
Img[20] = prefix_image+'21'+suffix_image;
Img[21] = prefix_image+'22'+suffix_image;
Img[22] = prefix_image+'23'+suffix_image;
Img[23] = prefix_image+'24'+suffix_image;
Img[24] = prefix_image+'25'+suffix_image;
Img[25] = prefix_image+'26'+suffix_image;
Img[26] = prefix_image+'27'+suffix_image;
Img[27] = prefix_image+'28'+suffix_image;


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


var t;
var j = 0;
var p = Img.length;

var preLoad = new Array();
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Img[i]
};

function runSlideShow(){
   document.images.SlideShow.src = preLoad[j].src
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', temps_pause)
};
