var blnOk=true;

function Chargement() {

  if(document.body.style.backgroundColor!="") { blnOk=false; }
  if(document.body.style.color!="") { blnOk=false; }
  if(document.body.style.marginTop!="") { blnOk=false; }
  if(document.getElementById) {
    with(document.getElementById("texte").style) {
      if(position!="") { blnOk=false; }
      if(top!="") { blnOk=false; }
      if(left!="") { blnOk=false; }
      if(width!="") { blnOk=false; }
      if(height!="") { blnOk=false; }
      if(zIndex!="") { blnOk=false; }
      if(margin!="") { blnOk=false; }
      if(padding!="") { blnOk=false; }
      if(visibility!="") { blnOk=false; }
    }
  }
  else{
  blnOk=false;
  }

  if(blnOk) {
   // with(document.body.style) {
      // backgroundColor="#FFF";
      //color="#CCC";
      // marginTop="1em";
    //}
      
    with(document.getElementById("access").style) {
      position="absolute";
      top="1em";
      left="1em"; 
      margin="0";
    }
      
  /*  with(document.getElementById("texte").style) {
      margin="0";
      padding="1em";
      backgroundColor="#FFF";
      color="#333";
    } */
    
    for(i=1;i<=5;i++) {
      with(document.getElementById("menu"+i).style) {
        position="absolute";
        top="0.5em"; /* decoller du haut */
        left=(((i-1)*8.75)+3.2)+"em"; /*left=(((i-1)*10)+1)+"em"; --le chiffre modifié correspond à la marge de gauche dans le menu */
        width="8.75em";
        height="1.0em";/* 1.2em */
        textAlign="left"; /* alignement des catégories (center ou left) */
        margin="0";
        padding="0em";
        zIndex="2";
      }
    }
    
    for(i=1;i<=5;i++) {
      with(document.getElementById("ssmenu"+i).style) {
        position="absolute";
        top="2.0em";
        left=(((i-1)*8.75)+3.0)+"em"; /*left=(((i-1)*10)+1)+"em";  */
        width="8.75em";
        margin="0";
        padding="0";
        zIndex="3";
      }
    }
    
    with(document.getElementById("copy").style) {
      backgroundColor="#FFF";
      color="#CCC";
    }
    
    CacherMenus();
  }
}

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";
      }
    }
  }
}
