//--------------------------------------------------------------------
function OpenPopUp(MyPage,MyWindow,MyWidth,MyHeight,MyPos,MyFocus) {
//--------------------------------------------------------------------
// MyPage   : nom du fichier contenant le code HTML du pop-up
// MyWindow : nom de la fenêtre (ne pas mettre d'espace)
// MyWidth  : entier indiquant la largeur de la fenêtre en pixels
// MyHeight : entier indiquant la hauteur de la fenêtre en pixels
// MyPos    : Position de la fenetre : "CENTER", "RIGHT", "LEFT"
// MyFocus  : entier : 1 = Focus sur la fenetre ouverte, 0 = rien
// (c) NB Consultant - 2003-2006 - http://www.bourghol.com
//--------------------------------------------------------------------
var ns4 = (document.layers)? true:false;         //NS 4
var ie4 = (document.all)? true:false;            //IE 4
var dom = (document.getElementById)? true:false; //DOM
var xMax, yMax, xOffset, yOffset;
if (ie4 || dom){
   xMax = screen.width;
   yMax = screen.height;
   }
else if (ns4){
   xMax=window.outerWidth;
   yMax=window.outerHeight;
   }
else {
   xMax=800;
   yMax=600;
   }

switch (MyPos) {
    case "CENTER" :
        xOffset=(xMax - MyWidth)/2;
        yOffset=(yMax - MyHeight)/2;
        break ;
    case "RIGHT" :
        xOffset=(xMax - MyWidth)- 6 ;
        yOffset=(1);
        break ;
    case "LEFT" :
        xOffset=(1);
        yOffset=(1);
        break ;
    default :
        xOffset=(xMax - MyWidth)/2;
        yOffset=(yMax - MyHeight)/2;
    }
hw=window.open(MyPage,MyWindow,
   'width='+MyWidth+
   ',height='+MyHeight+
   ',screenX='+xOffset+
   ',screenY='+yOffset+
   ',top='+yOffset+
   ',left='+xOffset+
   ',toolbar=no,status=no,scrollbars=no,resizable=no');
if (MyFocus == 1) {
    hw.focus();
    }
return(hw);
}

var rep = "./img/";

//--------------------------------------------------------------------
function survol(Objet, Fichier)
  {
  if (!document.images) {}
  document.images[Objet].src = rep + Fichier;
  }
