jQuery(document).ready(function(){

	if (jQuery.browser.msie) {
		if(parseInt(jQuery.browser.version) == 7) {
				var IE7 = true;
		}
	}
	
	//Disable empty menu items in nav
  jQuery(".page-item-360 > a").click(function(e) {
		e.preventDefault();
	});
	jQuery(".page-item-26 > a").click(function(e) {
		e.preventDefault();
	});
	
	jQuery(".page-item-360:not(.current_page_parent):not(.current_page_ancestor)").mouseenter( function(){		
		if(!IE7){
			jQuery(".page-item-360 ul").stop('true', 'true').hide().slideDown('slow');
		}else{
			jQuery(".page-item-360 ul").hide().slideDown('slow');
		}
	});
	jQuery(".page-item-360:not(.current_page_parent):not(.current_page_ancestor)").mouseleave( function(){
		if(!IE7){
			jQuery(".page-item-360 ul").stop('true', 'true').hide().slideUp('slow');
		}else{
			jQuery(".page-item-360 ul").hide().slideUp('slow');
		}
	});

	jQuery(".page-item-26:not(.current_page_parent):not(.current_page_ancestor)").mouseenter( function(){
		if(!IE7){
			jQuery(".page-item-26 ul").stop('true', 'true').hide().slideDown('slow');
		}else{
			jQuery(".page-item-26 ul").hide().slideDown('slow');
		}
	});
	jQuery(".page-item-26:not(.current_page_parent):not(.current_page_ancestor)").mouseleave( function(){
		if(!IE7){
			jQuery(".page-item-26 ul").stop('true', 'true').hide().slideUp('slow');
		}else{
			jQuery(".page-item-26 ul").hide().slideUp('slow');
		}
	});
	
	//jQuery(".current_page_item ul:first").show();
	
	//jQuery(".current_page_item").parents("ul, li")
				//.map(function () { 
			  
					//jQuery(this).show();

				//});

// hack to highlight NEWS in menu when viewing a single news post
	if (jQuery('#page-news').length != 0){
    jQuery(".page-item-353").addClass("current_page_item"); 
	}

}); 