 $(document).ready(function() {
lang=$("#lang_id").val();

if(lang=="1")
{
email="Uw e-mailadres";
search="Zoekopdracht";
}
else
{
email="Your email address";
search="Search";
}

    // Define what happens when the textbox comes under focus
    // Remove the watermark class and clear the box
    $("#zoeken").focus(function() {

        $(this).filter(function() {

            // We only want this to apply if there's not
            // something actually entered
            return $(this).val() == "" || $(this).val() == search

        }).removeClass("watermarkOn").val("");

    });
	
	$("#nieuwsbrief").focus(function() {

        $(this).filter(function() {

            // We only want this to apply if there's not
            // something actually entered
            return $(this).val() == "" || $(this).val() == email

        }).removeClass("watermarkOn").val("");

    });

    // Define what happens when the textbox loses focus
    // Add the watermark class and default text
    $("#zoeken").blur(function() {

        $(this).filter(function() {

            // We only want this to apply if there's not
            // something actually entered
            return $(this).val() == ""

        }).addClass("watermarkOn").val(search);

    });
	
	$("#nieuwsbrief").blur(function() {

        $(this).filter(function() {

            // We only want this to apply if there's not
            // something actually entered
            return $(this).val() == ""

        }).addClass("watermarkOn").val(email);

    });


});