var blnOk=true;

function Chargement() {
  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) {
  	   
    for(i=1;i<=3;i++) {
      with(document.getElementById("menuproduit"+i).style) {
        position="absolute";
        top=(((i-1)*2)+1)+"em";
        left="0";
        width="100px";
        textAlign="left";
     //   zIndex="2"; 
      }
    }
	
    for(i=1;i<=3;i++) {
      with(document.getElementById("ssmenuproduit"+i).style) {
        position="absolute";
        top=(((i-1)*2)+1)+"em";
        left="11em";
        textAlign="left";
        width="15em";
        lineHeight="12px";
       // zIndex="25"; 
      }
    }
    
 with(document.getElementById("actualite").style) {
       width="90px";  
	//zIndex="2";
      }
    
    
          
    with(document.getElementById("entreprise").style) {
	width="90px";
	//zIndex="2";
      }
    
    with(document.getElementById("client").style) {
       width="130px";    
	//zIndex="2";
      }
    
      
      
     with(document.getElementById("support").style) {
       width="90px";	
	//zIndex="2";
      }
  
     
  with(document.getElementById("partenaires").style) {
       width="90px"; 
	//zIndex="2";
      }
      
    
 CacherMenus();
  }
}
    function MontrerMenu(strMenu) {    
if(blnOk) {
    CacherMenus();
    document.getElementById(strMenu).style.visibility="visible"; 
  }
}

function CacherMenus() {
  if(blnOk) {
  	for(i=1;i<=3;i++) {
  		with(document.getElementById("ssmenuproduit"+i).style) {
  		  visibility="hidden";
  		}
  	 }
    
	    with(document.getElementById("ssmenuactualite").style) {
	      visibility="hidden";
	    }
	   
	    with(document.getElementById("ssmenuentreprise").style) {
      	  visibility="hidden";
   		}
   		
   		with(document.getElementById("ssmenuclient").style) {
      	  visibility="hidden";
   		}
   		
   		with(document.getElementById("ssmenusupport").style)
   		{
     		visibility="hidden";
   		}
   		
   		with(document.getElementById("ssmenupartenaires").style)
   		{
     		visibility="hidden";
   		}
  }
}
