/* --- Javascript Defibrillateur Public --- */
$(document).ready(function() {
     var imgH = $(".postContent img:first").attr("height");
     $(".player").css('top', imgH + 116);
     
     $(".postContent p:first").addClass('noMargin');
     
     $(".over").mouseover( function () {
            var newSrc  =  $(this).attr('src').replace('.png','-on.png');
            $(this).attr('src', newSrc);
     });
     $(".over").mouseout( function () {
            var newSrc  =  $(this).attr('src').replace('-on.png','.png');
            $(this).attr('src', newSrc);
     });
     
     
     if ( $(".pad").children("table").length > 0 )
     {
            $(".pad tbody tr").each( function() {
                  if ( $(this).children("td").length == 2 )
                  {
                        $(this).children("td:first").addClass('leftCol');
                        $(this).children("td:last").addClass('rightCol');
                  }
                  
            });
     }
     
});
