Cufon.replace('p,.homeTekstRechts,.contactGegevens ul li', { fontFamily: 'Colaborate',textShadow: '#2e3337 0px 1px'}); Cufon.replace('h1,h2,h3,.homePortfolioSpan, .homeContactSpan,.contactFormTop label,#contactFormBottom label,.dateMaand,.dateJaar', { fontFamily: 'Fontin'}); Cufon.replace('h1#homePayoff', { fontFamily: 'Fontin', textShadow: '#344b44 0px 1px'}); Cufon.replace('#tagDiv a', { fontFamily: 'Colaborate',hover:true,hoverables:{a: true} }); $(function() { $("input[type=text]").focus(function(){this.select();}); $("#submitContact").click(function() { $('#contactLoading').fadeIn(100).show(); var naam = $("input#naam").val(); var email = $("input#email").val(); var telefoon = $("input#telefoon").val(); var bedrijf = $("input#bedrijf").val(); var bericht = $("textarea#bericht").val(); var dataString = 'naam='+ naam + '&email='+ email + '&telefoon='+ telefoon + '&bedrijf='+ bedrijf + '&bericht='+ bericht; if(naam=='' || email=='' || bericht=='') { $('#contactLoading').hide(); $('#errorContact').fadeIn(500).show(); } else { $.ajax({ type: "POST", url: "http://www.sbschepens.nl/wp-content/themes/sbs/ajax/contactForm.php", data: dataString, success: function() { $('#contactLoading').hide(); $("input#naam").val(''); $("input#email").val(''); $("input#telefoon").val(''); $("input#bedrijf").val(''); $("textarea#bericht").val(''); $('#submitContact').hide(); $('#errorContact').hide(); $('#succesContact').fadeIn(500).show(); } }); } return false; }); $('#fotoHolder').after('
').cycle({ fx: 'fade', speed: 1000, timeout: 3000, pager: '#faderNav', pagerEvent: 'mouseover', pauseOnPagerHover: true, before: function() { if (window.console) console.log(this.src); }, pagerAnchorBuilder: function(idx, slide) { return ''; } }); });