var blnOk=true;

function Chargement() {
// menu haut
//calculer la position dynamique par raport à l'écran
   for(i=1;i<=5;i++) {
		with(document.getElementById("menu"+i).style) {
			position="absolute";
			top="112px";
			left=(((i-1)*165) + 165)+"px";
			width="160px";
			height="20px";
			textAlign="center";
			margin="0";
			padding="0";
		}
	}
	
//Sous menu Haut
	for(i=1;i<=5;i++) {
		if (i!=4){
			with(document.getElementById("ssmenu"+i).style) {
				position="absolute";
				top="131px";
				left=(((i-1)*165) + 190 - 17)+"px";
				width="140px";
				textAlign="center";
				margin="0";
				padding="0";
				zIndex="3";
			}
		}
    }
// Menu promo
	with(document.getElementById("menug0").style) {
		position="absolute";
		top="330px";
		width="170px";
	}
/*	function cacher_montrer() { 
		if(document.getElementById('menug0').style.visibility = 'hidden') {
			setTimeout("document.getElementById('menug0').style.visibility = 'visible';",1000); 
		} else { 
			setTimeout("document.getElementById('menug0').style.visibility = 'hidden';",3000); 
		}		
	} */
//logo citotel
	with(document.getElementById("menug10").style) {
		position="absolute";
		top="140px";
		left="30px"; 
	}
	
// menu de gauche 
	for(i=1;i<=4;i++) {
		with(document.getElementById("menug"+i).style) {
			position="absolute";
			width="180px";
			textAlign="left";
			top=(((i-1)*40)+370)+"px";
		}
	}
	// Sous menu de gauche
	for(i=1;i<=2;i++) {
		with(document.getElementById("ssmenug"+i).style) {
			position="absolute";
			width="130px";
			textAlign="center";
			top= (((i-1)*90)+370)+"px";
			left="167px";
			zIndex = "3000";
	    }
	}
	CacherMenus();
}

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

function CacherMenus() {
  if(blnOk) {
    for(i=1;i<=5;i++) {
		if (i!=4){
			with(document.getElementById("ssmenu"+i).style) {
			visibility="hidden";
			}
		}
    }
	// sous menu de gauche
	for(i=1;i<=2;i++) {
		with(document.getElementById("ssmenug"+i).style) {
		visibility="hidden";
		}
	}
  }
}
 
