$(document).ready(function() {
	
	//flash embedden
	$("#OuwerkerkLogo").flash(
	{
		src: 'http://www.ouwerkerk.tv/ouwerkerk_logo.swf',
		width: 120,
		height: 11
	});

	//lightboxen
	$(function() {
		$('.contentplaatje').lightBox({fixedNavigation:true});
	});

	//menu hover veranderen 
	/*
	$("#nav a").hover(
	function()
	{
		var bgpos1 = $(this).css("background-position");
	    var bgpos2 = bgpos1.replace('-35px','0px');
    	$(this).css("background-position",""+bgpos2+""); //schakelt regulier :hover gedrag uit 
		$(this).addClass("jsHover");
		
		//de goeie css zetten voor de jsHover class
		$(".jsHover").css(
		{
			"width": ""+$(this).css("width")+"",
			"height": ""+$(this).css("height")+"",
			"background-image": ""+$(this).css("background-image")+"",
			"background-position": ""+bgpos1+""
		}).fadeIn("slow");
	},
	function()
	{
		$(this).removeClass(".jsHover");
	});
	*/
	
});

function checkEmail(inputobj) 
{
	var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(inputobj.value)) 
	{
		alert('Uw E-mailadres is ongeldig.\nEen geldig e-mailadres heeft als formaat:\naccount@domein.ext');
		return false;
	}
	else return true;
}
