/*
  Simple slide show manuel ou automatique,
  dans la fenetre courante ou en popup,
  selon vos besoins...
  Creation 18/06/2008 Amelie Vanbockstael
*/

//adresse des images
myPix = new Array(
"../accueil/logos/13MrHD0SwY.jpg","../accueil/logos/13VVwji73V.jpg","../accueil/logos/14NAKUSJjd.jpg","../accueil/logos/1alApbQdJA.jpg",
"../accueil/logos/1iuq7wgBlK.jpg","../accueil/logos/1pth8yS1Py.jpg","../accueil/logos/1RGBvjeqBa.jpg",
"../accueil/logos/1zKRnu3L2b.jpg","../accueil/logos/1NviZ0gWsw.jpg","../accueil/logos/1ehQTya60A.jpg","../accueil/logos/1R6epbMZLi.jpg")

//changement manuel
thisPic = 0
imgCt = myPix.length - 1
function chgSlide(direction) {
  if (document.images) {
     thisPic = thisPic + direction
     if (thisPic > imgCt) {
        thisPic = 0
     }
     if (thisPic < 0) {
        thisPic = imgCt
     }
     document.Puzzle.src = myPix[thisPic]
  }
}

//changement automatique
//vitesse de defilement en milliseconds
speed = 2000;
i = 0;
function autoSlideShow(imgname) {
  if (document.images)
  {
    document.getElementById(imgname).src = myPix[i];
    i++;
    if (i > myPix.length-1) i = 0;
    b=imgname;
    setTimeout('autoSlideShow(b)',speed);
  }
}
