// Script d'ouverture du PopUp

var new_win;
new_win=true;
// ouverture de la fenêtre pr afficher les images : on y passe en paramètres le chemin, la hauteur et la largeur de l'image
function Aff(lg, ht, nom)
 {
 test(new_win)
 new_win=open("zoomphoto.php?"+nom,"ot_fen","location=no,menubar=no,scrollbars=no,toolbar=no,resizable=no,width="+lg+",height="+ht+",left=0,top=0");
 new_win.focus();
 }

function test(fenetre)
 {
 if (fenetre.open)
  {
  parent.focus ();
  fenetre.close();
  }
 }

// Script de lancement du SlideShow dans le PopUp

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'img/img/thumb/img_03.jpg'
Pic[1] = 'img/img/thumb/img_04.jpg'
Pic[2] = 'img/img/thumb/img_05.jpg'
Pic[3] = 'img/img/thumb/img_06.jpg'
Pic[4] = 'img/img/thumb/img_08.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
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);
}