// JavaScript Document

function toggle_menu(){
	$("#sidebar ul li").slideToggle("slow");
}

$(document).ready(function(){  
	//$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)  

	$("#sidebar ul li").hoverIntent(function(event) { //When trigger is clicked...  

		// removed the specific call to the a and left it to the li
		
		//Following events are applied to the subnav itself (moving subnav up and down)  
		$(this).addClass("active");
		$(this).find("div.holders").slideDown('fast').show(); //Drop down the subnav on click  
		}, function(event){  
				$(this).removeClass("active");
				$(this).find("div.holders").slideUp('fast').hide(); //When the mouse hovers out of the subnav, move it back up  
	});
});
