$(document).ready(function(){
	
	$('img').ifixpng();

	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});

	//News - When mouse rolls over
	$("li.red").mouseover(function(){
		$(this).stop().animate({height:'106px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//News - When mouse is removed
	$("li.red").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//Encyclopaedia - When mouse rolls over
	$("li.pink").mouseover(function(){
		$(this).stop().animate({height:'115px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//Encyclopaedia - When mouse is removed
	$("li.pink").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//Songs - When mouse rolls over
	$("li.purple").mouseover(function(){
		$(this).stop().animate({height:'162px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//Songs - When mouse is removed
	$("li.purple").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});	


	//Links - When mouse rolls over
	$("li.yellow").mouseover(function(){
		$(this).stop().animate({height:'215px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//Links - When mouse is removed
	$("li.yellow").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//Stars - When mouse rolls over
	$("li.blue").mouseover(function(){
		$(this).stop().animate({height:'250px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//Stars - When mouse is removed
	$("li.blue").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse rolls over
	$("li.green").mouseover(function(){
		$(this).stop().animate({height:'180px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//When mouse is removed
	$("li.green").mouseout(function(){
		$(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	

});