/* DEBUT DU SCRIPT */

<!-- Debut

window.defaultStatus = "Bienvenue sur le site de M@DEO, votre partenaire informatique";


function efface(form,name)
{
eval ( that = window.document [form] [name]);
if ( name.substring(0,5) == 'email' && that.value == ' votre e-mail' )
{
that.value = '';
}
else return false;
}

function message(txt) {
	window.status = txt;
}

function remove_message() {
	window.status="M@DEO Consultant - Votre Partenaire Informatique";
} 




function noclick() 
{ if (event.button==2)
{ alert('Copyright © M@DEO Août 2000'); } 
} 


function OuvrirFenetre (url, width, height) {
  var top, left
  top  = (screen.height - height) / 2
  left = (screen.width  - width ) / 2
  window.open (url,'_blank','toolbar=no,location=center,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top)
}

function makeVars(){
  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="retHaut";
  placeIt()
} // FIN makeVars

function placeIt()
{ 
  ystart=eval(y);xstart=eval(x); 
} // FIN placeIt

movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0 
function makeXY(){ 
  innerX=eval(doWidth)-85
  innerY=eval(doHeight)-30
  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("makeXY()",25)
} // FIN makeVars

// Fin du script -->


