$(document).ready(function() {

$("#bloc_b").hide();
$("#bloc_c").hide();
$("#grp2").hide();

$(".lettres > a").click(function() {
	if($("#bloc_b").is(":hidden")) {
			$("#bloc_b").BlindDown(500);
	}
});

$("#adherents > a").hover(function() { this.style.background="#eef4ff"; 
$(this).find(".avatar_small").each(function() { 
this.src="../media/adherent/avatar_small_on.gif"; }); }, function() { 
this.style.background=""; $(this).find(".avatar_small").each(function() { 
this.src="../media/adherent/avatar_small.gif"; }); 
$(".link_active").each(function() { 
$(this).find(".avatar_small").each(function() { 
this.src="../media/adherent/avatar_small_active.gif"; }); }); });

$("#adherents > a").click(function() {
	$("#adherents > a").each(function() { $(this).removeClass("link_active") });
	$(this).addClass("link_active");
	$(".avatar_small").each(function() { this.src="../media/adherent/avatar_small.gif"; });
	$(this).find(".avatar_small").each(function() { this.src="../media/adherent/avatar_small_active.gif"; });
	if($("#bloc_c").is(":hidden")) {
		$("#bloc_c").BlindRight(500);
	}
	$(this).find(".avatar_small").TransferTo({to:'avatar', className:'transfer', duration: 500, complete: function() { $("#avatar").each(function() { this.style.background="url(../media/adherent/avatar.jpg) top left no-repeat"; }); } });
});

$("#show_lettres2").click(function() {
	if($("#grp2").is(":hidden")) {
		$("#grp1").SlideOutLeft(500);
		$("#grp2").SlideInRight(500);
	}
});

$("#show_lettres1").click(function() {
	if($("#grp1").is(":hidden")) {
		$("#grp2").SlideOutRight(500);
		$("#grp1").SlideInLeft(500);
	}
});

});
  
