jQuery(window).load(function () {


		var bigH = 0;
    $("#profils .contentCible").each(function(){
      var H = $(this).height();
      if(H > bigH){
        bigH = H;
			}
		});
    $("#profils .contentCible").height(bigH);

 	$("#profils > li:first .profil-content > div").not(":first").hide();
  $("#tabnavigation > li:first > a").addClass("actif");
  $("#tabnavigation > li > a").click(function(){
		$(this).addClass("actif");
		$("#tabnavigation > li > a").not($(this)).removeClass("actif");
    $("#profils > li:first > .profil-content > div").hide();
    $("div"+$(this).attr("href")).show();
    return false;   
  });
  
  

  $("#profils li .profil-content").each(function(){
    var _this = $(this);
    var baseHeight = _this.height();
    _this.height(22);
    _this.children("h3").click(function(){
        $(this).addClass("actif");
        $("#profils li .profil-content h3").not($(this)).removeClass("actif");
        $("#profils li .profil-content").not(_this).animate({height:22},500);
        _this.animate({height:baseHeight},500);
        return false;
    });
  });

});