function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

//Utilise dans le gestion des OnClick avec images temoins
//Les variables IDImageOn (=0) et NomImageOn et NomImageOff (repert/nom.ext) sont ˆ renseigner dans le fichier HTML

function FZB_swapImage(IDImage) {
  if (IDImageOn==0) {
    MM_swapImage(IDImage,'',NomImageOn,1);
  } else {
    MM_swapImage(IDImageOn,'',NomImageOff,1);
    MM_swapImage(IDImage,'',NomImageOn,1);
  }
    IDImageOn=IDImage;
}

function FZB_openZoom(theURL) { //v2.0
  zoom = window.open(theURL,'zoom','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
  zoom.focus();

}

function FZB_openPrint(theURL) { //v2.0
  imprime = window.open(theURL,'impresssion','toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=610,height=500');
  imprime.moveTo(0,0);
  imprime.focus();

}

function FZB_openWin(theURL) { //v2.0
  fzb = window.open(theURL,'fenetre','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=570,height=500');
  fzb.focus();

}

function FZB_openAjouter(theURL) { //Fenetre ajouter a ma selection
  fajouter = window.open(theURL,'Fajouter','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=440,height=180');
  fajouter.moveTo(0,0);
  fajouter.focus();
  
  }
  
  function FZB_openPassword(theURL) { //Fenetre ajouter a ma selection
  fpassword = window.open(theURL,'Fpassword','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=440,height=200');
  fpassword.moveTo(0,0);
  fpassword.focus();
  
  }

function FZB_openIdentifiez(theURL) { //Fenetre identifiez vous
  fidentifiez = window.open(theURL,'Fidentifiez','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=440,height=380');
  fidentifiez.moveTo(0,0);
  fidentifiez.focus();

}

function FZB_openInscrivez(theURL) { //Fenetre inscrivez vous
  finscrivez = window.open(theURL,'Finscrivez','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=440,height=450');
  finscrivez.moveTo(0,0);
  finscrivez.focus();

}

function FZB_openAide(theURL) { //Fenetre d'aide
  faide = window.open(theURL,'Faide','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=340,height=260');
  faide.moveTo(455,0);
  faide.focus();
}

function FZB_openAideG(theURL) { //Fenetre d'aide plus large
  faide1 = window.open(theURL,'Faide1','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=350');
  faide1.moveTo(0,0);
  faide1.focus();
}

function FZB_openEnvoyer(theURL) { //Fenetre envoyer un dossier ˆ l'atelier
  fenvoyer = window.open(theURL,'Fenvoyer','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=400');
  fenvoyer.moveTo(0,0);
  fenvoyer.focus();
}

function FZB_openDeplacer(theURL) { //Fenetre deplacer
  fdeplacer = window.open(theURL,'Fdeplacer','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=440,height=180');
  fdeplacer.moveTo(0,0);
  fdeplacer.focus();

}

function FZB_openPop(theURL) { // Fenetre renommer ou creer
  fpop = window.open(theURL,'Fpop','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=255,height=120');
  fpop.moveTo(0,0);
  fpop.focus();

}

function FZB_loadMultiFrames(URL1,NomFrame1,URL2,NomFrame2) { //Charge plusieurs pages dans des FRAMES differentes (COLLECTION)
	parent.frames[NomFrame1].location.href = URL1;
	parent.frames[NomFrame2].location.href = URL2;
}

function FZB_loadMultiFrames2(URL1,NomFrame1,URL2,NomFrame2,URL3,NomFrame3) { //Charge plusieurs pages dans des FRAMES differentes (NOTICE)
	parent.frames[NomFrame1].location.href = URL1;
	parent.frames[NomFrame2].location.href = URL2;
	parent.frames[NomFrame3].location.href = URL3;
}

function chgLegende(URL) { //Charge les legendes dans la frame
	parent.legende.location.href=URL;
}

function FZB_openZoom(theURL) { //v2.0
  zoom = window.open(theURL,'zoom','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
  zoom.focus();

}
