var menus = [document.getElementById('menu1'),document.getElementById('menu2')];
for(var i=0,l=menus.length;i<l;i++){
	menus[i].onmouseover = function(e){
		this.className = 'curr';
		stopBubble(e);
		this.children[1].style.display = 'block';
	};
	menus[i].onmouseout = function(e){
		this.className = '';
		stopBubble(e)
		this.children[1].style.display = 'none';
	};
}
function stopBubble(e){
	(e && e.stopPropagation) ? e.stopPropagation() : event.cancelBubble = true;
}
