$(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();
	});
	
	/////Actualités > bleu
	
	//When mouse rolls over
	$("#jli1").mouseover(function(){
		$(this).stop().animate({height:document.getElementById('jli1').getAttribute('hauteur')},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#jli1").mouseout(function(){
		$(this).stop().animate({height:'25px'},{queue:false, duration:400, easing: 'easeOutQuad'})
	});	
	
	/////apprentissage > jaune
	
	//When mouse rolls over
	$("#jli2").mouseover(function(){
		$(this).stop().animate({height:document.getElementById('jli2').getAttribute('hauteur')},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#jli2").mouseout(function(){
		$(this).stop().animate({height:'25px'},{queue:false, duration:400, easing: 'easeOutQuad'})
	});	
	

	/////Espace jeunes > Rouge
	
	//When mouse rolls over
	$("#jli3").mouseover(function(){
		//$(this).stop().animate({height:'105px'},{queue:false, duration:600, easing: 'easeOutBounce'})
		$(this).stop().animate({height:document.getElementById('jli3').getAttribute('hauteur')},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#jli3").mouseout(function(){
		$(this).stop().animate({height:'25px'},{queue:false, duration:400, easing: 'easeOutQuad'})
	});
	
	
	/////Espace entreprise > Vert
	
	//When mouse rolls over
	$("#jli4").mouseover(function(){
		$(this).stop().animate({height:document.getElementById('jli4').getAttribute('hauteur')},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#jli4").mouseout(function(){
		$(this).stop().animate({height:'25px'},{queue:false, duration:400, easing: 'easeOutQuad'})
	});	
	
	/////Contact > Violet
	
	//When mouse rolls over
	$("#jli5").mouseover(function(){
		$(this).stop().animate({height:document.getElementById('jli5').getAttribute('hauteur')},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$("#jli5").mouseout(function(){
		$(this).stop().animate({height:'25px'},{queue:false, duration:400, easing: 'easeOutQuad'})
	});
	
});
