<!--

	$(function() {
		
		$(".nb_email").focus(function(){
			var val = $(this).val();
			if(val + "" == "your email adress") {
				$(this).val("")	
			}
		});
		
		$(".nb_email").blur(function(){
			var val = $(this).val();
			if(val + "" == "") {
				$(this).val("your email adress")	
			}
		});		
		
		$(".mail_form").submit(function(){
			var ok = true;
			var email = $(".nb_email").val();
			var inp = $(".nb_email");
			
			if(email + "" == "your email adress" || email + "" == "") {
				ok = false;
				alert("Please provide a valid e-mail address");
				inp.focus();
			} 
										
			if(ok) {
				if(isValidEmailAddress(email)) {
					ok = true;
				} else {	
					ok = false
					alert("Pleaeese provide a valid e-mail address");	
					inp.focus();
				}
			}
			
			return ok;
		});
				
		function isValidEmailAddress(elementValue){
		   var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
		   return emailPattern.test(elementValue);
		 }

		$(".menubull").hide();

		switch(from) {
			case "index.asp" :
				setAt(122);
				break;
			case "projects.asp" :
				setAt(178);
				break;
			case "poplight.asp" :
				setAt(254);
				break;
			case "eventfurniture.asp" :
				setAt(330);
				break;
			case "displays.asp" :
				setAt(410);
				break;
			case "sheets.asp":
				setAt(510);
				break;
			case "profiles.asp":
				setAt(510);
				break;
			case "contact.asp" :
				setAt(615);
				break;
			case "download.asp" :
				setAt(694);
				break;
			default:
				setAt(122);
				break;
		}
		
		function setAt(wat) {
			$(".menubull").css("margin-left",wat + "px");
			$(".menubull").fadeIn();
		}

		function goto(wat) {		
			$(".menubull").animate({ marginLeft: wat + "px" }, 500 );
		}

		switch(page) {
			case "index.asp" :
				goto(122);
				break;
			case "projects.asp" :
				goto(178);
				break;
			case "poplight.asp" :
				goto(254);
				break;
			case "eventfurniture.asp" :
				goto(330);
				break;
			case "displays.asp" :
				goto(410);
				break;
			case "sheets.asp" :
				goto(510);
				break;
			case "profiles.asp" :
				goto(510);
				break;
			case "contact.asp" :
				goto(615);
				break;
			case "download.asp" :
				goto(694);
				break;
			default:
				goto(122);
				break;
		}
		
		$(".logo").click(function() {
			document.location.href = 'index.asp'							
		})			   
		
		var h = $(document).height() - $(".header").height();
		h = h - 5
		$(".links, .rechts").height(h);
	
	});
	
-->
