$(document).ready(function(){
	$("#menu li ul").hide();
	$("#menu li.active ul").show();	

	$("#menu a + ul").parent("li").addClass("haschildren");
	$("#menu li.haschildren").children("a").click(function(){
		$(this).next("ul").slideToggle(200);
		return false;
	});
	
	$("#maphowto div.text").hide();
	$("#maphowto a").click(function(){
		$("#maphowto div.text").slideToggle(200);
	});

	// this could be used to set active menu items
	// $("#menu a[href="+request.activeUrl+"]").css("background","red");
	
	if(self.load) load();
});
