<!--

var images = new Array(10);

function Init()
{
<!-- Prechargement des images -->
	for (var i = 0 ; i < images.length; i++)
	{
		images[i]= new Image();
	}

	images[0].src = "ferrata/haut.gif"
	images[1].src = "ferrata/gauche.gif"
	images[2].src = "ferrata/droite.gif"
	images[3].src = "ferrata/bas.gif"
	images[4].src = "ferrata/coinDB.gif"
	images[5].src = "ferrata/coinDH.gif"
	images[6].src = "ferrata/coinGB.gif"
	images[7].src = "ferrata/coinGH.gif"
}

function FIND(item)
{
	if( window.mmIsOpera ) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

function ChangeMessage(message,champ)
{
    var theLayer = FIND(champ);
    if(theLayer)
        theLayer.innerHTML = message;
}

function fin()
{
    window.close();
}

function getWidth()
{
// Retourne la largeur de la fenetre en cours (sans les scroll, bords...)
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' )
  {
    //Non-IE
    myWidth = window.innerWidth;
  }
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
  {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  }
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
  {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

function getHeight()
{
// Retourne la hauteur de la fenetre en cours (sans les menus, toolbar, scroll, bords...)
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' )
  {
    //Non-IE
    myHeight = window.innerHeight;
  }
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
  {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  }
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
  {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}

function getTop()
{
  if( typeof( window.innerWidth ) == 'number' )
  {
    //Non-IE
    return window.screenY;
  }
  return window.screenTop
}

function getLeft()
{
  if( typeof( window.innerWidth ) == 'number' )
  {
    //Non-IE
    return window.screenX;
  }
  return window.screenLeft;
}

function OpenPopUpCenterWindow(theURL,winName) 
{
    return OpenPopUpCenterWindowTotal(theURL,winName,320,360);
}

function OpenPopUpCenterWindowWithDim(theURL,winName,iDX,iDY) 
{
    return OpenPopUpCenterWindowTotal(theURL,winName,iDX,iDY);
}

function OpenPopUpCenterWindowTotal(theURL,winName,iDX,iDY) 
{ 
    features = 'status=no, directories=no, toolbar=no, location=no, menubar=no, resizable=yes';
    
    //On centre
    petit = true;
    iw = 0.5 * (getWidth() - iDX);
    if (iw < 0)
    {
        iw = 0;
        petit = false;
    }
    iw = iw + getLeft();
    ih = 0.5 * (getHeight() - iDY);
    ih -= 50; // Menu et toolbar
    if (ih < 0)
    {
        ih = 0;
        petit = false;
    }
    ih = ih + getTop();
    //_W.moveTo(iw,ih); 

    if (petit)
    {
        features += ', scrollbars=no';
    }
    else
    {
        features += ', scrollbars=yes';
    }
    window.open(theURL,winName,'width='+iDX+',height='+iDY+',screenX='+iw+',screenY='+ih+',top='+ih+',left='+iw+','+features);
} 

-->