$(document).ready(function(){Cufon.replace('.menu-item',{hover:true});Cufon.replace('h3',{hover:true});Cufon.replace('.title',{hover:true});Cufon.replace('.title2',{hover:true});Cufon.replace('.title3',{hover:true});$('.brands_unhover').hover(function(){var fade=$('> .brands_hover',this);fade.fadeIn(500);},function(){var fade=$('> .brands_hover',this);fade.fadeOut(500);});$(".project_btn").css("opacity","0.7");$(".project_btn").hover(function(){$(this).stop().animate({opacity:1.0},"normal");var images=this.parentNode.getElementsByTagName("img");$(images[0]).stop().animate({opacity:1.0},"normal");},function(){$(this).stop().animate({opacity:0.7},"normal");var images=this.parentNode.getElementsByTagName("img");$(images[0]).stop().animate({opacity:0.7},"normal");});$(".dall_fadeimg").css("opacity","0.7");$(".dall_fadeimg").hover(function(){$(this).stop().animate({opacity:1.0},"normal");var curli=this.parentNode.parentNode.parentNode;var divs=curli.getElementsByTagName("div");$(divs[divs.length-1]).stop().animate({opacity:1.0},"normal");},function(){$(this).stop().animate({opacity:0.7},"normal");var curli=this.parentNode.parentNode.parentNode;var divs=curli.getElementsByTagName("div");$(divs[divs.length-1]).stop().animate({opacity:0.7},"normal");});$(".stdbtn").css("opacity","0.7");$(".stdbtn").hover(function(){$(this).stop().animate({opacity:1.0},"normal");},function(){$(this).stop().animate({opacity:0.7},"normal");});$(".stdbtnselected").css("opacity","1");$('a[href*=#]:not([href=#])').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var $target=$(this.hash);$target=$target.length&&$target||$('[name='+this.hash.slice(1)+']');if($target.length){var targetOffset=$target.offset().top;$('html,body').animate({scrollTop:targetOffset},500);return false;}}});});function isnull(val){if(val==null||val==""||val==0){return true;}else{return false;}}
function validateEmail(email){var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;var address=email;if(reg.test(address)==false){return false;}else{return true;}}
function checkFormNL(formvar){var contactemail=formvar.contactemail.value;if(validateEmail(contactemail)==true){return true;}else{alert('Ongeldig e-mail adres!');return false;}}
