/*	var li = null;
	function remove_over(){
		
		li.className = "menuparent";
	}

function IEHoverPseudo() {
 
	var navItems = document.getElementById("nav").getElementsByTagName("li");
	
	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "menuparent") {
			navItems[i].onmouseover=function() { if (li != null) li.className = "menuparent";
												$$('.menuparent').removeClass('over');
												this.className += " over"; 
												
												}
			//navItems[i].onmouseout=function() { this.className = "menuparent"; }
			navItems[i].onmouseout=function() { //if (li != null) li.className = "menuparent";
												li = this;
												if ($$('.menuAct_sub').getParents('.menuparent').length == 0)												
												window.setTimeout("remove_over()",1000);
												
												 }
		}
	}
	if ($$('.menuAct_sub').getParents('.menuparent').length > 0)
		$$('.menuAct_sub').getParents('.menuparent')[0][0].addClass('over');
 
}*/

function remove_menu(){
	jQuery('#headerpic').mouseover(function(){
		jQuery('.menuparent').children('ul').fadeOut('slow');
	})
}

function hideMenu(){
	jQuery('.menuparent').children('ul').css('display','none');
	jQuery('.menuparent').hover(function(){
		var parent = jQuery(this).parents('.menuparent').length;
		if (parent==0){
			jQuery('.menuparent').children('ul').css('display','none');
		};
		jQuery(this).children('ul').css('display','block');
		
	});
	jQuery('#nav').children('li').hover(function(){
		if (jQuery(this).children('ul').length==0){
			jQuery('.menuparent').children('ul').css('display','none');
		}
	});
	jQuery('#headerpic').mouseover(function(){
			window.setTimeout("remove_menu()",'1000');
	});
}
window.onload = hideMenu;
