$(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();
	});
	
	
	//When mouse rolls over 
	$("li.menu0").mouseover(function(){
		$(".window1").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});	
		
	$("li.menu1").mouseover(function(){
		$(".window2").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});
	
	$("li.menu2").mouseover(function(){
		$(".window3").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});
	
	$("li.menu3").mouseover(function(){
		$(".window4").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$("li.menu4").mouseover(function(){
		$(".window5").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$("li.menu5").mouseover(function(){
		$(".window6").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$("li.menu6").mouseover(function(){
		$(".window7").stop().animate({height:'320px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$(".cube1").mouseover(function(){
		$(".cubeInfo1").stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$(".cube2").mouseover(function(){
		$(".cubeInfo2").stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
		
	$(".cube3").mouseover(function(){
		$(".cubeInfo3").stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
		
	
	//When mouse is removed
	
	$("li.menu0").mouseout(function(){
		$(".window1").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});

	$("li.menu1").mouseout(function(){
		$(".window2").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});
	
	$("li.menu2").mouseout(function(){
		$(".window3").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});

	$("li.menu3").mouseout(function(){
		$(".window4").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});
	
	$("li.menu4").mouseout(function(){
		$(".window5").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});
	
	$("li.menu5").mouseout(function(){
		$(".window6").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});
	
	$("li.menu6").mouseout(function(){
		$(".window7").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})
	});
	
	$(".cube1").mouseout(function(){
		$(".cubeInfo1").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$(".cube2").mouseout(function(){
		$(".cubeInfo2").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
	
	$(".cube3").mouseout(function(){
		$(".cubeInfo3").stop().animate({height:'0px'},{queue:false, duration:600, easing: 'easeOutQuint'})	
	});	
		
	
	//When mouse clicked
	$("li").click(function(){
		$(this).stop().animate({},{queue:false, duration:600, easing: 'easeOutQuint'})
	});
	
	
	
	
	
});
