$(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()
	});
	//Hover für Angebote
	$("li.hover").css('height', '30px');
	//Mouseover bei Hauptmenu
	$("li#angebote").mouseover(function(){					 
		$(this).stop().animate({height:'300px'},{queue:false, duration:600, easing: 'easeOutBounce'})
		$("li#angebote ul.subtext").css('display' , 'block');
	});
	
	//Mouseout bei Hauptmenu
	$("li#angebote").mouseout(function(){					
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	//Hover für Über uns
	//Mouseover bei Hauptmenu
	$("li#ueberuns").mouseover(function(){					 
		$(this).stop().animate({height:'300px'},{queue:false, duration:600, easing: 'easeOutBounce'})
		$("li#ueberuns ul.subtext").css('display' , 'block');
	});
	
	//Mouseout bei Hauptmenu
	$("li#ueberuns").mouseout(function(){					
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
		//Hover für service
	//Mouseover bei Hauptmenu
	$("li#service").mouseover(function(){					 
		$(this).stop().animate({height:'300px'},{queue:false, duration:600, easing: 'easeOutBounce'})
		$("li#service ul.subtext").css('display' , 'block');
	});
	
	//Mouseout bei Hauptmenu
	$("li#service").mouseout(function(){					
		$(this).stop().animate({height:'30px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	
});
