$(document).ready(function(){
	$("#leftHome").hover(
		
		function() {
			$('#overLeft').stop().animate({"opacity": "0"} , "slow");
			$('#leftHome').stop().animate({width:'603px'} , "slow");
			$('#rightHome').stop().animate({width:'259px'} , "slow");

		},
	
		function() {
			$('#overLeft').stop().animate({"opacity": "1"}, "slow");
			$('#leftHome').stop().animate({width:'430px'} , "slow");
			$('#rightHome').stop().animate({width:'430px'} , "slow");
	
		});
		
	$("#rightHome").hover(
		function() {
			$('#overRight').stop().animate({"opacity": "0"} , "slow");
			$('#rightHome').stop().animate({width:'603px'} , "slow");
			$('#leftHome').stop().animate({width:'259px'} , "slow");

		},
	
		function() {
			$('#overRight').stop().animate({"opacity": "1"}, "slow");
			$('#rightHome').stop().animate({width:'430px'} , "slow");
			$('#leftHome').stop().animate({width:'430px'} , "slow");
	
		});
		
	$("#leftHome").click(function() { window.location ="showPage.php?template=cantine&id=1"; });
	$("#rightHome").click(function() { window.location = "showPage.php?template=cantine&id=2"; });
});

