$(document).ready(function() {
   // if (!(jQuery.browser.msie && jQuery.browser.version <= 6))
   // {
        // Call to a simple jQuery plugin that vertically centers elements.
//Ne fonctionne pas très bien et faisait bugué l'icon de liveperson
       // $("#header-right").vCenter();
   // }

    $("#question-details-wrapper").addClass("shadow");
    //$("#questions :text, #questions textarea").wrap("<span class=\"shadow\"></span>");

    // Bind click event on the continue button of the question section    
    $("#question-more").click(function(e) {
        e.stopPropagation();
        $("#question-details-wrapper").slideDown(200);
    });
    $(document).click(function(e) {
        var elem = $(e.target);
        if (!(elem.is("#questions") || elem.parents().is("#questions")))
            $("#question-details-wrapper").slideUp(200);
    });

    // Bind click on element with class "toggle-next-content"
    $(".toggle-next-content").click(function() {$(this).toggleClass("toggle-next-content-closed").next("div").slideToggle("fast");});

    // We want all "toggable" elements to be closed first.
    $(".toggle-next-content").addClass("toggle-next-content-closed").next("div").hide();
});

function buildStats(id)
{

 pageTracker._trackPageview(id);

}



