$(document).ready(function(){

	$(document.getElementById("icon1")).mousedown(function(){
		window.location.href = "../accueil/index_new.php";
	});

	$(document.getElementById("icon3")).mousedown(function(){
		window.location.href = "../calendrier/index_new.php";
	});
	
	$(document.getElementById("icon4")).mousedown(function(){
		window.location.href = "../tarifs/index_new.php";
	});
	
	$(document.getElementById("icon5")).mousedown(function(){
		window.location.href = "../recettes/index_new.php";
	});
	
	$(document.getElementById("icon7")).mousedown(function(){
		window.location.href = "../contacts/index_new.php";
	});
	
	$(document.getElementById("icon8")).mousedown(function(){
		window.location.href = "../partenaires/index_new.php";
	});
	
	nslog("document.body.id:"+document.body.id);
	if(document.body.id != "Accueil")
	{
		$("#icon1").mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	
		$("#icon1").mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		$("#icon1").attr("src",'../rw_common/themes/seasonal/images/button_1_hover.png');
		$("#icon1").css("height",'130px');
	}

	
	if(document.body.id != "Calendrier")
	{
		$("#icon3").mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$("#icon3").mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		$("#icon3").attr("src",'../rw_common/themes/seasonal/images/button_3_hover.png');
		$("#icon3").css("height",'130px');
	}

	if(document.body.id != "Tarifs")
	{	
		$("#icon4").mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$("#icon4").mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		$("#icon4").attr("src",'../rw_common/themes/seasonal/images/button_4_hover.png');
		$("#icon4").css("height",'130px');
	}
			
	if(document.body.id != "Recettes")
	{
		$("#icon5").mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$("#icon5").mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		nslog("icon5");
		$("#icon5").attr("src",'../rw_common/themes/seasonal/images/button_5_hover.png');
		$("#icon5").css("height",'130px');
	}
	
	if(document.body.id != "Contacts")
	{
		$("#icon7").mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$("#icon7").mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		nslog("icon7");
		$("#icon7").attr("src",'../rw_common/themes/seasonal/images/button_7_hover.png');
		$("#icon7").css("height",'130px');
	}
	
	if(document.body.id != "Partenaires")
	{
		$("#icon8").mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$("#icon8").mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		nslog("icon8");
		$("#icon8").attr("src",'../rw_common/themes/seasonal/images/button_8_hover.png');
		$("#icon8").css("height",'130px');
	}
});
