$(document).ready(function(){
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});
	
	
	//main menu
	$("#main-menu ul li").mouseenter(function(){
		$(this).find('ul').stop().animate({height:30},'fast');	
		
	});
	
	//When mouse is removed
	$("#main-menu ul li ul").mouseleave(function(){
		$(this).stop().animate({height:0},'fast');
		//$(this).hide('fast');
	});
	$("#main-menu ul li").mouseleave(function(){
		$(this).find('ul').stop().animate({height:0},'fast');
		//$(this).find('ul').hide('fast');
	});
	
	/*$("a").click(function(){
		$(this).blur();
	});
	
	//When mouse rolls over
	$("li").mouseover(function(){
		$(this).stop().animate({height:'150px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("li").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});*/
	
});
