$(document).observe("dom:loaded", function() {
	
	if(Prototype.Browser.IE) {
		sOverListener = "mouseenter";
		sOutListener = "mouseleave";
	} else {
		sOverListener = "mouseover";
		sOutListener = "mouseout";
	}

	$$("DIV#menuhaut > UL > LI").each(function(oLi) {
		Event.observe(
			oLi,
			sOverListener,
			function(event) {
				rollover(this);
			}.bindAsEventListener(oLi)
		);

		Event.observe(
			oLi,
			sOutListener,
			function(event) {
				hidemenu(this);
			}.bindAsEventListener(oLi)
		);

		oLi.select("UL > LI").each(function(oSubLi) {
			Event.observe(
				oSubLi,
				sOverListener,
				function(event) {
					rollover2(this);
				}.bindAsEventListener(oSubLi)
			);

			Event.observe(
				oSubLi,
				sOutListener,
				function(event) {
					hide2(this);
				}.bindAsEventListener(oSubLi)
			);
		});
	});
});