$(document).ready(function()
{
    //commentInput();
});


/**
 *
 */
function commentInput()
{

    var name = "Navn *";
    var mail = "Mail *";
    var website = "Website";
    var comment = "Kommentar *";

    $("div.input-wrapper p").hide();
    $("div#respond input#author").val(name);
    $("div#respond input#email").val(mail);
    $("div#respond input#url").val(website);
    $("div#respond textarea#comment").val(comment);

    $("div.input-wrapper .input").focus(function()
    {
        var val = $(this).val();

        if (val == name || val == mail || val == website || val == comment)
            $(this).val("");
        else
            return;
    });

    $("div.input-wrapper .input").blur(function()
    {
        var val = $(this).val();

        if (val == "")
        {
            if ($(this).attr("id") == "author") {$(this).val(name);}
            if ($(this).attr("id") == "email") {$(this).val(mail);}
            if ($(this).attr("id") == "url") {$(this).val(website);}
            if ($(this).attr("id") == "comment") {$(this).val(comment);}
        }
    });
}
