// animation archives
$(function() {
ascenseur.init('.widget_archive h2','.widget_archive ul');
 /* fluid scroll */
$('a[href^=#]').click(function() {
cible=$(this).attr('href');
 if($(cible).length>=1){
hauteur=$(cible).offset().top;
 } 
 else{
hauteur=$("a[name="+cible.substr(1,cible.length-1)+"]").offset().top;
 }
 $('html,body').animate({scrollTop: hauteur}, 1000);
 return false;
});
});

ascenseur = {
init : function(btn,acacher){
$(acacher).hide();
 $(btn).click(function(){
 $(acacher).slideToggle(500);
 return false; 
  });
 },
}
// Animation menu
$(function() {
	$("#menu ul li").hover(function(){
		$(this).animate({backgroundPosition:'0 -156px'}, 600);
	},function(){
		$(this).animate({backgroundPosition:'0 156px'}, 600);
		});
});
// Animation Bouton social
$(function() {
	$('#sociale ul li a').hover(function(){
		$(this).addClass("bouton-up");
		$('.bouton-up').stop().animate({top:'-35px'}, 300);
	},function(){
		$('.bouton-up').stop().animate({top:'0px'}, 200);
		$(this).removeClass("bouton-up");
});
});