
	// jquery scripts
	$(document).ready(function () {

		// lightbox laten werken
		$('a.lightbox').lightBox();
		
		// slideshow
		$('#slideshow').cycle({ 
		    fx:    'fade', 
		    speed:  3000,
		    pause: 	1 
		 });		


		//$("ul.sf-menu").supersubs({ 
					
       //     minWidth:    12,   // minimum width of sub-menus in em units 
       //     maxWidth:    27,   // maximum width of sub-menus in em units 
       //     extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
       // })
		//$("ul.sf-menu").superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason.

	


	});	
	
	// voor het gebruik van exotische font gebruiken we Cufon
	// Cufon('h1')('h2')('#mainmenu ul li a')('#submenu ul li a');	
	
//		function makeTall(){  $(this).animate({"height":75},200);}
//		function makeShort(){ $(this).animate({"height":50},200);}	
	
	
		function makeTall(){  $(this).fadeIn(); }
		function makeShort(){ $(this).fadeOut(); }		
	
	// validatie functies
	function postcodeCheck(postcode) {
		var result 	= false;
		var filter  = /^[0-9]{4}[ A-Za-z]{2,3}$/;
		
		if ((postcode.length) > 0) {
			if (filter.test(postcode)) {
				result = true;
			}
		}
		return result
	}	

	function emailCheck(addres) {
		
		var result 	= false;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		
		if ((addres.length) > 0) {
			if (filter.test(addres)) {
				result = true;
			}
		}
		return result;
	}
	
	function notEmpty(str) {
		
		var result 	= false;
		//var filter  = /^[a-zA-Z0-9_\-,\.\'']{255}$/;
		
		if ((str.length) > 0) {
			//if (filter.test(str)) {
				result = true;
			//}
		}
		return result;
	}	
	
	function isDate(date) {
		
		var result 	= false;
		var filter  = /^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$/;
		
		if ((date.length) > 0) {
			if (filter.test(date)) {
				result = true;
			}
		}
		return result;
	}	

	// velden aanduiden of ze verplicht zijn
	function outlineInput(id, status){
		if(status){
			$('#'+id).addClass('outline');
			$('#'+id).focus();
		} else {
			$('#'+id).removeClass('outline');
		}
	}	
