$(document).ready(function(){

	$(document).pngFix(); 

	$(".emailinput").focus(function()
	{
	  if ($(this).attr("value") == "Inschrijven nieuwsbrief...")
	  {
	    $(this).attr("value", "");
	  }
	  $(this).css("color", "#000");
	});
	$(".emailinput").blur(function()
	{
	  if ($(this).attr("value") == "")
	  {
	    $(this).attr("value", "Inschrijven nieuwsbrief...");
	  }
	  $(this).css("color", "#555");
	});

	$("#menu ul li img.hover").hover(
	      function () {
	      	var current = $(this).attr("src");
	      	var other = $(this).attr("alt");				      	
			$(this).attr("alt", current);
			$(this).attr("src", other);						
	      }, 
		  function () {
			var current = $(this).attr("src");
			var other = $(this).attr("alt");				      	
			$(this).attr("alt", current);
			$(this).attr("src", other);	
	   }
	);
	$('a[rel*=facebox]').facebox();
});
		

function CheckMultiple299(frm, name) {
	for (var i=0; i < frm.length; i++)
	{
		fldObj = frm.elements[i];
		fldId = fldObj.id;
		if (fldId) {
			var fieldnamecheck=fldObj.id.indexOf(name);
			if (fieldnamecheck != -1) {
				if (fldObj.checked) {
					return true;
				}
			}
		}
	}
	return false;
}
function CheckForm299(f) {
	var email_re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i;
	if (!email_re.test(f.email.value)) {
		alert("Please enter your email address.");
		f.email.focus();
		return false;
	}

		return true;
	}
