$(document).ready(function(){

	// $("a[href^=#]").click(function(){
		// cible = $(this).attr("href");
		// if($(cible).length >= 1){
			// largeur = $(cible).offset().top;
		// } else {
			// largeur = $("a[name="+cible.substr(1, cible.length-1)+"]").offset().top;
		// }
		// $("html, body").animate({scrollTop:largeur}, 1000, 'easeOutBounce');
		// $("html, body").animate({scrollTop:largeur}, 1000, 'easeOutQuint');
		// return false;
	// });

	$("a[href^=#]").click(function(){
		cible = $(this).attr("href");
		if($(cible).length >= 1){
			largeur = $(cible).offset().left;
		} else {
			largeur = $("a[name="+cible.substr(1, cible.length-1)+"]").offset().left;
		}
		// $("html, body").animate({scrollLeft:-274+largeur}, 1000, 'easeOutBounce');
		$("html, body").animate({scrollLeft:-274+largeur}, 1000, 'easeOutQuint');
		return false;
	});
	
});
