<!--

// © OLCI

// version du 7/2/2002



function ouvre(name) 

{

  fen = window.open(name,"photo","toolbar=no,width=1120,height=800,directories=no,status=no,scrollbars=no,resizable=no,location=no,menubar=no");

  fen.focus();

}



function montre(name) 

{

  fen = window.open(name,"site","toolbar=yes,width=1000,height=800,directories=yes,status=yes,scrollbars=yes,resizable=yes,location=yes,menubar=yes");

  fen.focus();

}



function info(name) 

{

  fen = window.open(name,"site","toolbar=no,width=760,height=560,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");

  fen.focus();

}



function avert(name) 

{

  fen = window.open(name,"site","toolbar=no,width=550,height=300,directories=no,status=no,scrollbars=no,resizable=no,menubar=no");

  fen.focus();

}



var newWind;



function popup(path, name, width, height, scroll, loc)

{

  //loc 1=top right; 2=midscreen

   

  var screenWidth;

  var screenHeight;



  if (loc==1)

  {

    //top right

    screenWidth=screen.width - width - 11; // add 11 pixels so that it does not overlap with right side of screen

    screenHeight=0;

  }

  else

  {

    //mid screen

    screenWidth=((screen.width-width)/2.0);

    screenHeight=((screen.height-height)/2.0);

  }

    

  if (!newWind || newWind.closed) // if the window is not already opened, open it

    newWind = window.open(path, name, "left=" + screenWidth + ", top=" + screenHeight + ", directories=no,location=no,menubar=no,resizable=no,scrollbars=" + scroll + ",status=no,toolbar=no,width=" + width + ",height=" + height + "");

  newWind.focus();  //bring the window to front          

}



//-->


