var ie6 = /MSIE 6.0/.test(navigator.userAgent);

function hover(obj) {
	UL = obj.getElementsByTagName('ul');
	if (UL.length > 0) {
		UL[0].style.display = 'block';
	}
}
function out(obj) {
	UL = obj.getElementsByTagName('ul');
	if (UL.length > 0) {
		UL[0].style.display = 'none';
	}
}

function hover2(obj) {
	A = obj.getElementsByTagName('a');
	for (i=0; i < A.length; i++) {
		A[i].style.display = 'block';
	}
}
function out2(obj) {
	A = obj.getElementsByTagName('a');
	for (i=0; i < A.length; i++) {
		A[i].style.display = 'none';
	}
	document.getElementById('langueOn').style.display = 'block';
}

function setHover() {
	if (ie6) {
		document.getElementById('menu01').onmouseover = function() { hover(this) };
		document.getElementById('menu01').onmouseout = function() { out(this) };
		
		document.getElementById('langue').onmouseover = function() { hover2(this) };
		document.getElementById('langue').onmouseout = function() { out2(this) };
	}
}
if(window.attachEvent)
	window.attachEvent('onload', setHover);
