if(typeof jQuery=="undefined")jQuery=function(){};if(typeof jQuery.classBehaviours=="undefined")jQuery.classBehaviours=function(){};if(typeof jQuery.classBehaviours.handlers=="undefined")jQuery.classBehaviours.handlers=function(){};jQuery.classBehaviours.handlers.googleEventTracker={name:"googleEventTracker",domains:["www.nederlandenergie.nl","www.nlenergie"],binaries:[".pdf","doc.ashx"],start:function(b){allLinks=b.getElementsByTagName("A");for(var a=0;a<allLinks.length;a++)if(allLinks[a].onclick==null)allLinks[a].onclick=this.clicked},clicked:function(d){var b=typeof this.nodeName=="undefined"?d:this,c=jQuery.classBehaviours.handlers.googleEventTracker;localDomain=false;a=0;while(!localDomain&&a<c.domains.length){if(b.getAttribute("href")!=null)localDomain=b.getAttribute("href").indexOf("http://")<0||b.href.toLowerCase().indexOf(c.domains[a])>-1?true:localDomain;a++}binaryDownload=false;a=0;while(!binaryDownload&&a<c.binaries.length){binaryDownload=b.href.toLowerCase().indexOf(c.binaries[a])>-1?true:binaryDownload;a++}if(!localDomain)pageTracker!=null&&pageTracker._trackEvent("outbound","link",b.href);else if(binaryDownload)pageTracker!=null&&pageTracker._trackEvent("downloads","pdf",b.innerHTML)}};if(typeof jQuery.fn!="undefined"){jQuery.fn.googleEventTracker=function(){return this.each(function(){jQuery.classBehaviours.handlers.googleEventTracker.start(this)})};$(document).ready(function(){$(".googleEventTracker").googleEventTracker()})}