// Adaptation de « menu dynamique ouvert et accessible » :
// http://openweb.eu.org/articles/menu_universel/
// Par Fabrice Bonny pour l'OpenWebGroup

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("accescontenu").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) {

    CacherMenus();
  }
}

function MontrerMenu(strMenu) {
  if(blnOk) {
    CacherMenus();
    document.getElementById(strMenu).style.visibility="visible";
    desactiverAllSelect();
  }
}


function CacherMenus() {
  if(blnOk) {
          //EL ?
    //for(var i=1;i<=1  3;i++) {
    for(var i=1;i<=3;i++) {

      with(document.getElementById("ssmenu"+i).style) {
        visibility="hidden";
        zIndex="100";
      }
    }
  }
}