$(document).ready(function(){

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

	if(document.body.id != "Tarifs")
	{	
		$(document.getElementById("icon4")).mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$(document.getElementById("icon4")).mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		document.getElementById("icon4").src = '../rw_common/themes/seasonal/images/button_4_hover.png';
	}
			
	if(document.body.id != "Recettes")
	{
		$(document.getElementById("icon5")).mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$(document.getElementById("icon5")).mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		document.getElementById("icon5").src = '../rw_common/themes/seasonal/images/button_5_hover.png';
	}
		
	if(document.body.id != "")
	{
		$(document.getElementById("icon6")).mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$(document.getElementById("icon6")).mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		document.getElementById("icon6").src = '../rw_common/themes/seasonal/images/button_6_hover.png';
	}
	
	if(document.body.id != "Contacts")
	{
		$(document.getElementById("icon7")).mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$(document.getElementById("icon7")).mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		document.getElementById("icon7").src = '../rw_common/themes/seasonal/images/button_7_hover.png';
	}
	
	if(document.body.id != "Partenaires")
	{
		$(document.getElementById("icon8")).mouseover(function(){
			$(this).stop().animate({height:'130px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
		
		$(document.getElementById("icon8")).mouseout(function(){
			$(this).stop().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutElastic'});
		});
	}
	else
	{
		document.getElementById("icon8").src = '../rw_common/themes/seasonal/images/button_8_hover.png';
	}
	
	$('#stage').hide();
	$('#stage').delay(500).slideDown('normal').load('../emails/stage.php');

});
