var ie6 = /MSIE 6.0/.test(navigator.userAgent);

function hover(obj) {
	UL = obj.getElementsByTagName('ul');
	if (UL.length > 0) {
		sousMenu = UL[0].style;
		sousMenu.display = 'block';
	}
}

function out(obj) {
	UL = obj.getElementsByTagName('ul');
	if (UL.length > 0) {
		sousMenu = UL[0].style;
		sousMenu.display = 'none';
	}
}

function setHover() {
	if (ie6) {
		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) };
		}
	}
}

if(window.attachEvent)
window.attachEvent('onload', setHover);
