$(document).ready(function() {
	$('#menu .menu_child').css({'display':'none'});
	$('#menu .active>ul').css({'display':'block'});
	
	$('.menu_child .active > a').css({'color':'#353C43'});
	
	$('.Lightbox').fancybox({
		'hideOnContentClick': false, 'fixedNavigation':true,'overlayShow': true	, 'overlayOpacity':0.7	
	});
	
	$('.fotobox1').cycle({ 
	    fx:      'fade', 
	    speed:    1500, 
	    timeout:  8000,
	    delay :  -4000 
	});
	$('.fotobox2').cycle({ 
	    fx:      'fade', 
	    speed:    1500, 
	    timeout:  8000,
	    delay :  4000 
	});
	$('.fotobox3').cycle({ 
	    fx:      'fade', 
	    speed:    1500, 
	    timeout:  8000
	});
});

function isEmail(elm) {
	if (elm.value.indexOf("@") + "" != "-1" &&
		elm.value.indexOf(".") + "" != "-1" &&
		elm.value != "") 
	return true;
	else 
	return false;
}

function isReady(form){
	// is het achternaam veld ingevuld?
		if (mailform.achternaam.value == "") {
		alert( "Vul uw achternaam in." );
		mailform.achternaam.focus();
		return false ;
	}
	// is het emailadres veld ingevuld?
	if (isEmail(mailform.emailadres) == false) { 
		alert("Vul uw e-mail adres in.");
		mailform.emailadres.focus();
		return false;
	}	
	return true ;
}

