// Marque page et favoris 
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
// Alternative valide W3C _blank
function lien(monLien) {
window.open(monLien, '_blank');
return false;
}
// Plan du site
function depli(idBloc)
{
  obj = document.getElementById(idBloc);
  obj.style.display = obj.style.display==''?'none':'';
  return false;
}
// Galerie image
function gotonewpage(what) {
  value = what.options[what.selectedIndex].value;
  if (value == "") return;
  window.location.href = value;
}

var winhandle = null;

function popUp(aURL, aWidth, aHeight) {
  if ((winhandle != null) && (! winhandle.closed)){

    winhandle.document.images["arlesimage"].src=aURL;

    var isNN=(navigator.appName=="Netscape")?1:0;
    var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;

    if (isNN) {
      winhandle.innerHeight = aHeight + 20;
      winhandle.innerWidth  = aWidth + 20;
      winhandle.innerHeight = aHeight;
      winhandle.innerWidth  = aWidth;
    }
    else if (isIE) {
      winhandle.resizeTo(aWidth + 10, aHeight+29);
      dWidth = aWidth - winhandle.document.body.clientWidth;
      dHeight = aHeight - winhandle.document.body.clientHeight;
      winhandle.resizeBy(dWidth, dHeight);
    }
    else {
      winhandle.resizeTo(aWidth + 10, aHeight+29);
    }

  }
  else
  {
    winhandle=window.open("", "imagewin", 'width=' + aWidth + ', height=' + aHeight);

    with (winhandle.document){

      writeln('<html><head>');
      writeln('<title>Image<\/title>');
      writeln('<meta http-equiv="imagetoolbar" content="no">');
      writeln('<\/head>');
      writeln('<body bgcolor="#000000" topmargin="0" leftmargin="0" style="margin:0px;">');
      writeln('<img name="arlesimage" src="' + aURL + '" style="display:block">');
      writeln('<\/body><\/html>');
      close();
    }
  }

  winhandle.focus();

}