$(window).load(function() {
		$("#slide").animate({
			marginLeft:"-8px"
		}, 800);
});

$(document).ready(function() {
	
    $('#gallery a').lightBox();
	
	$('#galerie a').lightBox();
	
	$('a.light').lightBox();
	
	$("#accordeon_content").css("display", "none");				 
   
    if(!$.fontAvailable('century')) {
		Cufon.replace('h2');
	}
	
	var vert = '#84aa1b';
	var rose = '#9c126d';
	var gris = '#cecfcf';
	var speed = 200;
	
	$("#a_restaurant").hover(function() {
    	$("#s_restaurant").animate({ color: vert}, speed);
    },function() {
    	$("#s_restaurant").animate({ color: gris }, speed);
    });
	
	$("#a_carte").hover(function() {
    	$("#s_carte").animate({ color: rose}, speed);
    },function() {
    	$("#s_carte").animate({ color: gris }, speed);
    });
	
	$("#a_traiteur").hover(function() {
    	$("#s_traiteur").animate({ color: vert}, speed);
    },function() {
    	$("#s_traiteur").animate({ color: gris }, speed);
    });
	
	$("#a_acces").hover(function() {
    	$("#s_acces").animate({ color: rose}, speed);
    },function() {
    	$("#s_acces").animate({ color: gris }, speed);
    });
	
	$("#a_reservation").hover(function() {
    	$("#s_reservation").animate({ color: vert}, speed);
    },function() {
    	$("#s_reservation").animate({ color: gris }, speed);
    });
	
	$("#a_galerie").hover(function() {
    	$("#s_galerie").animate({ color: rose}, speed);
    },function() {
    	$("#s_galerie").animate({ color: gris }, speed);
    });
	
	var tailleMoveSlide=357;
	var vitesseSlide='slow';
			
	$(".slide1").click(function(){	
		$(".slidebox")
		.animate({right: "0"}, vitesseSlide)
		return false;	
	});
	
	$(".slide2").click(function(){
		$(".slidebox")
		.animate({right: tailleMoveSlide}, vitesseSlide)
		return false;				
	});
	
	$(".box img").hover(function() {
    	$(this).animate({ opacity: 1}, speed);
    },function() {
    	$(this).animate({ opacity: 0.5 }, speed);
    });
	
});
