

var blnOk=true;

function MontrerMenu(strMenu)
{
  if(blnOk) {
    CacherMenus();
    document.getElementById(strMenu).style.visibility="visible";
  }
}

function CacherMenus() {
  if(blnOk) {
    for(i=1;i<=5;i++) {
      with(document.getElementById("ssmenu"+i).style) {
        visibility="hidden";
      }
    }
  }
}


function Chargement()
{
  document.getElementById("loader").style.visibility="visible";
  //alert('chargement en cours');

  if(document.body.style.backgroundColor!="") { blnOk=false; }
  if(document.body.style.color!="") { blnOk=false; }
  if(document.body.style.marginTop!="") { blnOk=false; }

  if(blnOk)
  {
      CacherMenus();
  }

  //document.getElementById("colonneMenu").height = document.getElementById("").height;
  //alert(document.getElementById("footer").posTop);

  document.getElementById("loader").style.visibility="hidden";
}




function openfenetre(mypage,myname,w,h,scroll,pos)
{
  var win=null;

  if(pos=="random")
  {
  	LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
        TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
  }
  if(pos=="center")
  {
  	LeftPosition=(screen.width)?(screen.width-w)/2:100;
        TopPosition=(screen.height)?(screen.height-h)/2:100;
  }
  else if((pos!="center" && pos!="random") || pos==null)
  {
  	LeftPosition=0;
        TopPosition=20;
  }
  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=yes,status=no,menubar=yes,toolbar=yes,resizable=yes';
  win=window.open(mypage,myname,settings);
}

function monAlerte()
{
  //alert(document.getElementById("footer").style.width);
  //var monTop= document.all["footer"].style.top;
  //var monTop=document.getElementById("footer").style.getPropertyValue("width");
  //monTop=document.body.offsetWidth;
  //alert(monTop);
}

