<!--
	$(function() {
		
		$(".lightbox").lightBox();
		
		if(page == "ligging.asp" || page == "bedrijfsprofiel.asp" || page == "daeldenkt.asp" || page == "jobs.asp") {
			$(".overons").addClass("actief");	
		}
		
		/* SUBMENU */
		$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

		$("ul.topnav li a").hover(function() { 
			$(this).parents("li").find("span").click();
		});

		$("ul.topnav li span").hover(function() { 
			$(this).click();
		});
										   
		$("ul.topnav li span").click(function() { //When trigger is clicked...
			//Following events are applied to the subnav itself (moving subnav up and down)
			$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
	 
			$(this).parent().hover(function() {
			}, function(){	
				$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			});
	 
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() { 
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
		});		
		/* EINDE SUBMENU */
		
		/* SLIDER */		
		if($(".slider").length > 0) {
			if($(".slider li").length < 2) {
				$(".prevBtn, .nextBtn").hide();	
			} else {
				$(".slider").sudoSlider({
					auto: false,
					pause: 3000,
					continuous: true,
					controlsShow: true,
					controlsFade: false
				});
			}
		}



		if($(".thumbslider").length > 0) {
			$(".thumbslider").sudoSlider({
				auto: false,
				pause: 3000,
				continuous: false,
				controlsShow: true
			});
			
			aantal = 0;
			
			setInterval(function(){
				if(aantal < 5) {								 	
					var ypos = $(".thumbslider").position();
					waar = ypos.top;
					waar = waar + 265;

					var next = $(".nextBtn, .prevBtn");
					next.css("position","absolute");
					next.css("top",waar + "px");

					aantal++;
				}
			},500);
		}
		
		/* END SLIDER */
		
		$(".toggleThumbs").click(function(){
			$(".thumbs").slideToggle();
			return false;
		});
		
		$(".showRef").click(function(){
			$(".thumbs .thumb a").eq(0).click();
			$(".thumbs").slideToggle();
			return false;
		});

		$(".items .item").click(function(){
			var href = $(this).attr("href");
			document.location.href = href;
	    });

		$(".items .item").hover(function(){
			$(this).find("h2").addClass("hover");
			$(this).find(".overlay").slideDown(500);
		},function(){
			$(this).find("h2").removeClass("hover");						  
			$(this).find(".overlay").slideUp(500);
		});
		
		$(".rood").hover(function(){
			$(this).find("h2").css("background-color","#e13e37");						  
		},function(){
			$(this).find("h2").css("background-color","#85b916");						  
		});
		
		function isValidEmailAddress(elementValue){
			var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
			return emailPattern.test(elementValue);
		}		
		
		$("#contactfrm").submit(function(){
			var controle = true;
			var strFout = "";
			
			$.each($(".verplicht"),function(){
				$(this).removeClass("fout");
				if($(this).val() == "") {
					controle = false;
					strFout = strFout += $(this).attr("fout") + "\n";
					$(this).addClass("fout");
				}
			});
		
			if(!controle) {
				alert(strFout);
			}
		
			if(controle) {
				var email = $("#contactfrm .email").val();
				if(isValidEmailAddress(email)) {
					controle = true;
				} else {	
					controle = false;
					$("#email-form .email").addClass("fout");
					alert("Gelieve ook een geldig e-mail adres in te voeren");							
				}
			}
			
			if(controle) {
				var titel = $(".frmtitel").val();
				$.post("telling.asp",{wat:titel},function(data){
				});
			}
		
			return controle;
		});

		$("#frmftp").submit(function(){
			var controle = true;
			var strFout = "";
			
			$.each($(".verplicht"),function(){
				$(this).removeClass("fout");
				if($(this).val() == "") {
					controle = false;
					strFout = strFout += $(this).attr("name") + " is vereist in te vullen!\n";
					$(this).addClass("fout");
				}
			});
		
			if(!controle) {
				alert(strFout);
			}
					
			return controle;
		});

	});
	
-->
