function bindMenu() {
	$('menu').childElements().each(function(child) {
		var ul = child.down('ul');
		if (ul) {
			var hideSubMenu = function() { ul.hide(); };
			var showSubMenu = function() { ul.show(); };
			Event.observe(child, 'mouseover', showSubMenu);
			Event.observe(child, 'mouseout', hideSubMenu);
		}
	});
} // bindMenu

document.observe('dom:loaded', bindMenu);

