function makeExcerptLinks (parent_element, mouseover_styleClass) {
	
	var $kids = $(parent_element).children();
	
	jQuery.each($kids, function() {
		
		var theUrl = $(this).find("a:first").attr("href");
		
		$(this).bind("mouseover", function(e) { $(this).addClass(mouseover_styleClass) });
		$(this).bind("mouseout", function(e) { $(this).removeClass(mouseover_styleClass) });
		$(this).bind("click", function(e) { window.location.href = theUrl });
		
	});
	
}

function resetMenu () {

	//alert(theTarget + "-" + theMenuId);

	//var theParentId = $("#" + theTarget).parent().attr("id");

	//alert(theParentId);

	$("div.nav-menu").hide();

}

function toggleMenu (theMenuId) {

	//if (this == event.target){reset();}

	$("div.nav-menu").hide();



	if (theMenuId) {

		$("div#" + theMenuId).show();

	};

}


$(document).ready(function(){

	//$("#menu_1").mouseleave(function(){resetMenu();});
	//$("#menu_2").mouseleave(function(){resetMenu();});
	// $(".nav-menu").mouseleave(function(){resetMenu();});
	$("#content").mouseenter(function(){resetMenu();});
	
	
	//$("#masthead").hover(function () {}, function () {resetMenu();});
	
	
	
	
});



