sfHover = function() {
	var sfEls = document.getElementById("header").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


$(document).ready(function() {
	/*standard input values*/
	var dutch = true
	var val = ""
	
	if ($("#hidden").val() == "en"){dutch = false;}
 
    $('#frmSearch #zoekwoord').focus(function(e) {
		if (dutch == true) { val = "zoek...";} else { val = "search...";}
		if ($(this).val() == val) {
            $(this).val("");
            $(this).toggleClass("hide");
        }
    });
    $('#frmSearch #zoekwoord').blur(function(e) {
		if (dutch == true) { val = "zoek...";} else { val = "search...";}
        if ($(this).val() == "") {
            $(this).val(val);
            $(this).toggleClass("hide");
        }
    });
	
	 $('#frmNewsletter #naam').focus(function(e) {
		if (dutch == true) { val = "naam...";} else { val = "your name...";}
		if ($(this).val() == val) {
            $(this).val("");
            $(this).toggleClass("hide");
        }
    });
    $('#frmNewsletter #naam').blur(function(e) {
		if (dutch == true) { val = "naam...";} else { val = "your name...";}
        if ($(this).val() == "") {
            $(this).val(val);
            $(this).toggleClass("hide");
        }
    });
	
	 $('#frmNewsletter #email').focus(function(e) {
		if (dutch == true) { val = "e-mail...";} else { val = "your e-mail...";}
		if ($(this).val() == val) {
            $(this).val("");
            $(this).toggleClass("hide");
        }
    });
    $('#frmNewsletter #email').blur(function(e) {
		if (dutch == true) { val = "e-mail...";} else { val = "your e-mail...";}
        if ($(this).val() == "") {
            $(this).val(val);
            $(this).toggleClass("hide");
        }
    });
	
	 $('#frmLogin #naamlogin').focus(function(e) {
		if (dutch == true) { val = "gebruikersnaam...";} else { val = "username...";}
		if ($(this).val() == val) {
            $(this).val("");
            $(this).toggleClass("hide");
        }
    });
    $('#frmLogin #naamlogin').blur(function(e) {
		if (dutch == true) { val = "gebruikersnaam...";} else { val = "username..";}
        if ($(this).val() == "") {
            $(this).val(val);
            $(this).toggleClass("hide");
        }
    });
	
	 $('#frmLogin #emaillogin').focus(function(e) {
		if (dutch == true) { val = "wachtwoord...";} else { val = "password...";}
		if ($(this).val() == val) {
            $(this).val("");
            $(this).toggleClass("hide");
        }
    });
	/*er... is dit username password of username emailaddress of emailaddress password? */
    $('#frmLogin #emaillogin').blur(function(e) {
		if (dutch == true) { val = "wachtwoord...";} else { val = "password..";}
        if ($(this).val() == "") {
            $(this).val(val);
            $(this).toggleClass("hide");
        }
    });
	
});
