jQuery(document).ready(function(){
   var opts =
      // horizontal Dock with images expanding downwards in the vertical axis...
      { align: 'top'
      // set the maximum minor axis (vertical) image dimension to 48px
      , size: 44
      // add labels..
      , labels: true
      // swap the GIF extension for PNG extension for the larger image...
      , source: function(i){ return this.src.replace(/gif$/,'png'); }
      };
   $('#dock').jqDock(opts);

/* --- Aligne verticalement les titre du module actus de la page d accueil --- */

    $("#defiliste ul li a strong").each(function() {
        if($(this).html().length > 28) {
            $(this).parents("li").first().addClass("double");
        }
    });

    $("#defiliste ul li a strong").each(function() {
        if($(this).html().length > 40) {
            $(this).parents("li").first().removeClass("double").addClass("triple");
        }
    });


});
