 
 
// Initialisation des fonctions 
$(document).ready(function() {


 
 
/* ---------------------------- GESTION DU MENU PRINCIPAL ----------------------------- */ 
$('.header ul li a').hover(function() {
								 
	$(this).parent().next().addClass('redlosange'); },function() {
	$(this).parent().next().removeClass('redlosange');

}); 

$('.header ul li.current-cat a').parent().next().addClass('redlosange'); 



/* ---------------------------- GESTION DES DATES ----------------------------- */ 
$("a").each(function () {
$(this).html($(this).html().replace('July','Juillet'));
$(this).html($(this).html().replace('August','Ao&ucirc;t'));
$(this).html($(this).html().replace('September','Septembre'));
$(this).html($(this).html().replace('October','Octobre'));
$(this).html($(this).html().replace('November','Novembre'));
$(this).html($(this).html().replace('December','D&eacute;cembre'));
$(this).html($(this).html().replace('January','Janvier'));
$(this).html($(this).html().replace('February','F&eacute;vrier'));
$(this).html($(this).html().replace('March','Mars'));
$(this).html($(this).html().replace('April','Avril'));
$(this).html($(this).html().replace('May','Mai'));
$(this).html($(this).html().replace('June','Juin'));
});
 


/* ---------------------------- GESTION POST ACCUEIL  ----------------------------- */ 

$('.entry:last').css({"background-image":"none"});


/* ---------------------------- SHARE  ----------------------------- */ 

$('.share_tips').hide();


$(".sharelink").click(function () {
        if ( $(this).next('.share_tips').is(":hidden")) 
		{ 
		$(this).next('.share_tips').slideDown("slow");
		} else {
		$(this).next('.share_tips').slideUp("Slow");}
      return false;
	 
    }); 

$("body").click(function () {
			$('.share_tips').hide();			  
}); 


$("#show-partage").click(function () {
        if ( $('.shareblock').is(":hidden")) 
		{ 
		$('.shareblock').show();
		} else {
		$('.shareblock').hide();}
      return false;
	 
    }); 





/* ------------------------ GESTION FORMULAIRE--------------------- */ 
 
    $('input[type="text"]').focus(function() {  
        if (this.value == this.defaultValue){  
            this.value = '';  
        }  
		
        if(this.value != this.defaultValue){  
           this.select(); 		     
      	} 
	});
	 
	$("textarea").click(function(){ $(this).empty(); });
	



}); 



