$(document).ready(function()
{
	//determine which sub menu needs to be open
	var num=$("span.keep_open").attr("id");
	$(".menu_body:eq(" + num + ")").show();
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$("#firstpane p.menu_head").click(function()
    {
		$(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
	});
});

