


    $(document).ready(function(){  
							 
     
       $("ul.navbar li").click(function() { //When trigger is clicked...  
     
         //Following events are applied to the subnav itself (moving subnav up and down)
		$(this).find("ul.subnav").stop().slideDown('fast').show('slow', function(){
			$(this).height("auto");
		});
		
		//Drop down the subnav on click  
  
           $(this).hover(function() {  
           }, function(){  
               $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up  
           });  
		   
       });  
	   
	  
	 
   });  
	
	
