function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function HautPage()
{
  if (navigator.appName == "Netscape") 
  { 
  	v=".top="; h=".left="; dS="document.";sdm=""; 
  	y="window.pageYOffset";x="window.pageXOffset";doWidth="window.innerWidth";doHeight="window.innerHeight";
  } 
  else 
  { 
  	h=".pixelLeft="; v=".pixelTop="; dS=""; sdm=".style"; 
  	y="document.body.scrollTop";x="document.body.scrollLeft";doWidth="document.body.clientWidth";doHeight="document.body.clientHeight";
  }
  xyz=400 
  object="hautdepage";
HautPage_Put() 
}
 
 movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0 
function HautPage_Coord()
{  
//  specific use for Netscape
 if (navigator.appName == "Netscape")
	{ifcond="window.pageYOffset";}
	else {ifcond="document.body.scrollTop";}
	
	
	if (ifcond){
		MM_showHideLayers('hautdepage','','show'); 
		innerX=690 //la position en x est fixée et ne s'ajuste pas avec un redimensionnement de la fenêtre, pour le changer, enlever
 		innerY=eval(doHeight)-85 //le double slash aux trois lignes "xx" "xdiff" et "if (xdiff" et remplacer la ligne "innerx=780" par "innerX= eval (doWidth)-190"
 		if (document.layers){innerY-=10;innerX-=10}
 		yy=eval(y); 
 		//xx=eval(x);
 		ydiff=ystart-yy; 
 		//xdiff=xstart-xx;
 		if ((ydiff<(-1))||(ydiff>(1))) movey=Math.round(ydiff/10),ystart-=movey 
 		//if ((xdiff<(-1))||(xdiff>(1))) movex=Math.round(xdiff/10),xstart-=movex 
 		eval(dS+object+sdm+v+(ystart+innerY));
 		eval(dS+object+sdm+h+(xstart+innerX)); 
 		setTimeout("HautPage_Coord()",25);
	}
	else {MM_showHideLayers('hautdepage','','hide');
		setTimeout("HautPage_Coord()",25);
		}
}
  
function HautPage_Put()
{ 
  ystart=eval(y);xstart=eval(x); 
}
