var ie = /MSIE/.test(navigator.userAgent);

function hover(obj) {
  if (ie) {
    UL = obj.getElementsByTagName('ul');
    if (UL.length > 0) {
      sousMenu = UL[0].style;
      sousMenu.display = 'block';
    }
  }
}

function out(obj) {
  if (ie) {
    UL = obj.getElementsByTagName('ul');
    if(UL.length > 0) {
      sousMenu = UL[0].style;
      sousMenu.display = 'none';
    }
  }
}

function setHover() {
  if (ie && document.getElementById('menu')) {
		LI = document.getElementById('menu').getElementsByTagName('li');
		for(i=0; i < LI.length; i++) {
			LI[i].onmouseover = function() { hover(this) };
			LI[i].onmouseout = function() { out(this) };
    }
  }
}
function setHover2() {
  if (ie) {
	  if (document.getElementById('menu_groupes') != null) {
		LI = document.getElementById('menu_groupes').getElementsByTagName('li');
		for(i=0; i < LI.length; i++) {
			LI[i].onmouseover = function() { hover(this) };
			LI[i].onmouseout = function() { out(this) };
		}
    }
  }
}

window.onload = function() { setHover(); setHover2() };