$(document).ready(function(){
	$('a[href^=#]').click(function(){
		cible=$(this).attr('href');
		if($(cible).length>=1){
			hauteur=$(cible).offset().top;
		}
		else{
			hauteur=$("a[id="+cible.substr(1,cible.length-1)+"]").offset().top;
		}

		if( $(this).attr('href') != '#inline1' && $(this).attr('href') != '#inline2'){
			if( $(this).attr('href') == '#formations' ){
				$('html,body').animate({scrollTop:hauteur-200},1000,'easeOutQuint');
				return false;
			}else{
				$('html,body').animate({scrollTop:hauteur-160},1000,'easeOutQuint');
				return false;
			}
		}
		else{
			$('html,body').animate({scrollTop:hauteur},1000,'easeOutQuint');
			return false;
		}
	});
	
	

	
});


