$(document).ready(function() {

    // Rollover du logo
    $("img#logo").hover(function(){
        var logo_on = $(this).attr("src").replace(/.png$/gi, "-over.png");
        $(this).attr("src", logo_on);
    },function(){
        var logo_off = $(this).attr("src").replace(/-over.png$/gi, ".png");
        $(this).attr("src", logo_off);
    });

    // Changement des champs au focus
    $('input[type="text"],textarea').focus(function() {  
        $(this).addClass("focus");  
    });  
    $('input[type="text"],textarea').blur(function() {  
        $(this).removeClass("focus");  
    });  

    // Correction du bouton atReply
    $('span.commentAuthor').parent().find("a[href='#'] img").parent().each(function()
    { 
        $(this).find("img").css("vertical-align","bottom").css("margin-left","5px");
        //var author = $(this).parent().find("span.commentAuthor");
        //$(this).insertAfter(author);
        $(this).insertAfter($(this).parent().find("span.commentAuthor"));
    });

});
