<!--

	$(function() {

		//alert(page)

		
		$(".menu a[href='" + page + "']").parent().addClass("actief")

		$(".submenu > a").click(function(){
			$(".submenu ul").slideUp();										 
			$(this).parents("li").find("ul").slideDown();
			return false;
		});	
		
		$("a[href='" + page + "']").parents("ul").show();
		$("a[href='" + page + "']").parents("li").addClass("actief");

		$.each($(".email-form input[type=text], .email-form textarea"),function(){
			var orig = $(this).val();			
			$(this).attr("orig",orig);
		});
	
		$(".email-form input, .email-form textarea").focus(function(){
			var orig = $(this).attr("orig");
			if($(this).val() + "" == orig + "") {
				$(this).val("");
			}
		});
	
		$(".email-form input, .email-form textarea").blur(function(){
			var orig = $(this).attr("orig");
			if($(this).val() + "" == "") {
				$(this).val(orig);
			}
		});
	
		$(".email-form").submit(function(){
			var id = $(this).attr("id");									 	
			var controle = true;
			var strFout = "";
			
			//alert(id);
			
			$.each($("#" + id + " .verplicht"),function(){
				$(this).removeClass("fout");
				if($(this).val() == "" || $(this).val() + "" == $(this).attr("orig")) {
					controle = false;
					strFout = strFout += $(this).attr("fout") + "\n";
					$(this).addClass("fout");
				}
			});
	
			if(!controle) alert(strFout);
	
			if(controle) {
				//alert(id);
				var email = $("#" + id + " .email").val();
				if(email !== undefined) {
					if(isValidEmailAddress(email)) {
						controle = true;
					} else {	
						controle = false;
						$("#" + id + " .email").addClass("fout");
						alert("Geen geldig e-mail adres");							
					}
				}
			}
		
			return controle;
		});
		
		function isValidEmailAddress(elementValue){
			var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
			return emailPattern.test(elementValue);
		}	


		$(".productgroep_old").hover(function(){
			if(!$(this).hasClass("tourfoto")) {									   
				$(this).find(".titel").animate({
					"height" : "58px",
					marginTop : "130px"
				},200,function(){
					//$(this).find("span").show();
				});							   
			}
		},function(){
			if(!$(this).hasClass("tourfoto")) {									   
				$(this).find(".titel").animate({
					"height" : "31px",
					marginTop : "157px"										   
				},350,function(){
					//$(this).find("span").hide();
				});							   
			}
		});	

		$(".prod").hover(function(){
			$(this).find("h1").stop().animate({
				marginTop : "250px"
			},180,function(){
				//$(this).find("span").show();
			});							   
		},function(){
			$(this).find("h1").stop().animate({
				marginTop : "278px"										   
			},350,function(){
				//$(this).find("span").hide();
			});							   
		});	

		
		$(".productgroep, .prod").click(function(){
			var a = $(this).find("a");
			document.location.href = a.attr("href");
			return false;
		});	
		
		if($(".newproducts .productgroep").length > 0) {
			$(".newproducts .productgroep").shuffle();
		}
			
	});
	
-->
