//fonction émulant le li:hover pour IE
function activateMenu(idmenu) {

	if (navigator.appName == 'Microsoft Internet Explorer') {
	
		NAV = navigator.appVersion;
		IE5 = (NAV.substr(NAV.indexOf('MSIE')+5,1) == '5') ? true : false;
		MAC = (navigator.userAgent.indexOf('Mac') != -1) ? true : false;
		MN = document.getElementById(idmenu);
		LI = MN.getElementsByTagName('li');
		n = LI.length;
		
		if (IE5 && !MAC) {
			MN.style.left = '-20px';
		}
		
		//on boucle sur tous les li fils du menu
		for(i=0;i<n;i++) {
		
			LI[i].className = 'ieLI';
			
			LI[i].onmouseover = function() {
				this.className = 'ieLIhover';
				UL = this.getElementsByTagName('UL');
				
				if (UL[0]) {
					UL[0].style.display = 'block';
					UL[0].style.left = (IE5 && !MAC) ? '121px' : '137px';
				}
			}
			
			LI[i].onmouseout = function() {
				this.className = 'ieLI';
				UL = this.getElementsByTagName('UL');
				
				if (UL[0]) {
					UL[0].style.display = 'none';
				}
			}
			
		}
	}
	
}
