$(document).ready(function(){

	$.smoothAnchors(700, "swing", true);
	
	
	$(".flecheDroite, #nouvelles p a")
	.css({backgroundPosition: "0 center"})
	.hover(function(){
		$(this).stop().animate({backgroundPosition: "3px center"}, 200);
		}, function() {
		
		$(this).stop().animate({backgroundPosition: "0px center"}, 200);
	});
	
	//Calcule la largeur de l'image
    var imgWidth = $("#galerie img").outerWidth();
	
	//Rend <a> ajustable en hauteur et largeur et l'ajuste selon la largeur de l'image
	$("#galerie a").css({
	display:"inline-block",
	verticalAlign:"top",
	textDecoration:"none",
	cursor:"pointer",
	width: imgWidth
	});
	
	//Rend <span> ajustable en hauteur et largeur
	$("#galerie span").css({
	display:"inline-block"
	});
	
	//effet hover
	$("#galerie img").css({opacity:"1"});
	$("#galerie a")
	.hover(function(){
		$(this).find("img").animate({opacity:"0.7"}, 200);
		}, function() {
		$(this).find("img").animate({opacity:"1"}, 200);
	});

});