function idEltA(id, classN){
	menuEltA = document.getElementById('e' + id);
	if (menuEltA)
		menuEltA.className = classN;
}
var menuElt = document.getElementById('main_menu').getElementsByTagName('div');
for (var i=0; i<menuElt.length; i++) {
	menuElt[i].onmouseover = function() {
		if (this.className == 'li') {
			this.className += ' menuH';
			idEltA(this.id, 'a zz');
		}
	}
	menuElt[i].onmouseout = function() {
		if (this.className == 'li menuH') {
			this.className = this.className.replace(new RegExp(' menuH\\b'), '');
			idEltA(this.id, 'a');
		}
	}
}
