$(document).ready(function (){
    /* SLIDESHOW HOME */   
    //Par défaut, affichage du premier bloc
    $('#slideshow #zoneSlideshow #bloc1,#bloc2,#bloc3,#bloc4,#bloc5').hide();
    $('#slideshow #zoneSlideshow #bloc1').show();
	
    $('#slideshow #indexation li').click(function(){
        var sectionUne = $(this).attr('id');
        $('#slideshow #indexation li').removeClass('actifIndex');
        $(this).addClass('actifIndex');
        $('#slideshow #bloc1,#bloc2,#bloc3,#bloc4,#bloc5').fadeOut();
        $('#zoneSlideshow #bloc'+sectionUne).delay(500).fadeIn();
    });
    
    $('.placeholder').focus(function(){
        if($(this).val() == $(this).attr('alt')){
            $(this).val('');
        };
    });
    $('.placeholder').blur(function(){
        if($(this).val() == ""){
            $(this).val($(this).attr('alt'));
        }
    });
    
    var adherent = $("#adherents").children('li').children("a");
    
    if (adherent) {
        adherent.bind("click", function() {
            $("#adherents").children("li").children("ul:visible").each(function() {
                $(this).hide();
            });
            $(this).parent("li").children('ul').toggle();
        })
    }
    
    
});

