mh2  = new Array(105,40,25,140,0,316,15); //H ini; W ini; H nivX; W nivX; scroll; posLeft nivXXX, h nivXX

ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )) 
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 )) 

if (ns4) { 
	layerRef="document.layers"; 
	styleRef=""; 
} else { 
	layerRef="document.all"; 
	styleRef=".style"; 
} 

function cacheCalqueMh2(calque) { 
	if (!ns4) {
		eval(layerRef + '["' + calque +'"]' + styleRef + '.visibility = "hidden"'); 
	} else {
		N_HideLayers(calque, 'hide')
	} 
}

function afficheCalqueMh2(calque) {

	nomCalque = new String(calque);
	// Détermine la position left du calque
	pos = parseFloat(nomCalque.charAt(nomCalque.length-1));
	
	if (pos>0) {
	// C'est un sous menu
		posLeft = (pos-1)*mh2[3]+mh2[1];
		posTop = mh2[0]+mh2[2];
	} else {
		posLeft = mh2[1];
		posTop = mh2[0];
	}
	
	if (!ns4) {
		eval(layerRef + '["' + calque +'"]' + styleRef + '.top = "'+posTop+'px"');
		eval(layerRef + '["' + calque +'"]' + styleRef + '.left = "'+posLeft+'px"');
		eval(layerRef + '["' + calque +'"]' + styleRef + '.visibility = "visible"');
	} else {
		N_ShowLayers(calque, 'show', posLeft, posTop)
	} 
}

function afficheCalquesMh2(Arraycalque){
	for(i=0;i<Arraycalque.length;i++){
		nomCalque = new String(Arraycalque[i]);
		// Détermine la position left du calque
		pos = parseFloat(nomCalque.charAt(nomCalque.length-1));
		posLeft = mh2[5];
		posTop = mh2[0]+mh2[2]+(pos-6)*mh2[6];
		
		if (pos>5) {
		// C'est un sous-sous menu
			pos = parseFloat(nomCalque.charAt(nomCalque.length-1));
			posLeft = mh2[5]+mh2[3];
			posTop = mh2[0]+mh2[2]+(pos-6)*mh2[6];

			if (!ns4) {
				eval(layerRef + '["' + Arraycalque[i] +'"]' + styleRef + '.top = "'+posTop+'px"');
				eval(layerRef + '["' + Arraycalque[i] +'"]' + styleRef + '.left = "'+posLeft+'px"');
				eval(layerRef + '["' + Arraycalque[i] +'"]' + styleRef + '.visibility = "visible"'); 
			} else {
				N_ShowLayers(Arraycalque[i], 'show', posLeft, posTop)
			} 
		} else {
			afficheCalqueMh2(Arraycalque[i]);
		}
	}
} 

function cacheCalquesMh2(Arraycalque,quoi){ 
	for(i=0;i<Arraycalque.length;i++){
		if (!ns4) {
			eval(layerRef + '["' + Arraycalque[i] +'"]' + styleRef + '.visibility = "hidden"'); 
		} else {
			N_HideLayers(Arraycalque[i], 'hide')
		} 
	}
} 

function getTheTaille(){
	alert("taille : "+document.body.clientWidth);
}

// Gestion des sous-sous-menu !!!
ArrayMh2_x6 = new Array("mh2_x3","mh2_x6");
ArrayMh2_x7 = new Array("mh2_x3","mh2_x7");
ArrayMh2_x8 = new Array("mh2_x3","mh2_x8");
ArrayMh2_x9 = new Array("mh2_x3","mh2_x9");
ArrayMh2_x5 = new Array("mh2_x5");
ArrayMh2_x2 = new Array("mh2_x2");