<!--
  /*************************************************************************
   * File : popup_image_lib.js (include, library)
   * Description : fonction pour retailler la fenetre automatiquement selon
   * la taille de l'image et la centrer dans l'an
   * 
   * Writers history : 
   *   Alexandre Baussano
   * Last modification : 2006/09/12 (popup_image v1)
   ************************************************************************/

      function PopupImage(page,x,y) {

        var top=(screen.height)?(screen.height-y)/2:100;
        var left=(screen.width)?(screen.width-x)/2:100;
                
        w = window.open("","Popup","width="+x+",height="+y+", top="+top+",left="+left+", scrollbars=no, menubar=no, status=no");
        w.document.write("<html><head>");
        w.document.write("<title>Galerie CE</title>");
        w.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />");
        w.document.write("</head>");
        w.document.write("<body leftMargin='0' topMargin='0'>");
        w.document.write("<table width='100%'><tr><td align='center'>");
        w.document.write("<a href='javascript:window.close();'><img src='"+page+"' border='no' /></a>");
        w.document.write("</td></tr></table>");
        w.document.write("</body></html>");
      }

-->