function mail(adres){
	var strmail = "@"+"metropool"+".nl";	
	return adres + strmail;
}

function mailt(adres){
	var strmail = "@"+"metropool"+".nl";	
	return "mailto:"+adres + strmail;
}

function validateEmail(elementValue) {
    var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
    return emailPattern.test(elementValue);
}

$(function() {
    $(".kop").click(function() {

        var V = $(this).next();

        if ($(V).is(":visible")) {
            V.find(".grijze-hoekje, .grijze-hoekje-vervolg, .weg-slideup, .witte-hoekje").hide();
            V.slideUp();
        }
        else {
            $(V).slideDown(function() {
                V.find(".grijze-hoekje, .grijze-hoekje-vervolg,  .weg-slideup, .witte-hoekje").show();
            });
        }
    });

    $(".grijze-hoekje, .witte-hoekje").click(function() {
        $(this).hide();
        $(this).parent().slideUp();
    });

    $("#zoekterm").focus(function() {
        if ($(this).val() == "Geef uw zoekterm") {
            $(this).val("");
        }
    }).blur(function() {
        if ($(this).val() == "") {
            $(this).val("Geef uw zoekterm");
        }
    });

    $("#nieuwsbrief-email").focus(function() {
        if ($(this).val() == "Emailadres invullen") {
            $(this).val("");
        }
    }).blur(function() {
        if ($(this).val() == "") {
            $(this).val("Emailadres invullen");
        }
    });

    $(".cufon-hover").hover(
      function() {
          $(this).find(".cufon-tekst").hide().end().find(".cufon-tekst-hover").show();
      },
      function() {
          $(this).find(".cufon-tekst").show().end().find(".cufon-tekst-hover").hide();
      }
    );

    $("#kickstart-submenu-logo").mouseover(
      function() {
          $("#kickstart-submenu").addClass("open");
      }
    );

      $("#content").mouseover(function() {
        $("#kickstart-submenu").removeClass("open");
    })
});