var _gaCustom={fileTypes:RegExp(/\.(docx*|xlsx*|pptx*|exe|zip|pdf|jpg|png|txt)$/i),initialize:function(a){if(window._gaq===undefined)a<5E3&&setTimeout("_gaCustom.initialize("+(a+200)+")",200);else if(document.getElementsByTagName){a=document.getElementsByTagName("a");for(var b=0,c=a.length;b<c;b++)if(this.fileTypes.test(a[b].pathname))this.addEvent(a[b],"click",function(d){_gaCustom.trackDownload(d)});else a[b].hostname!=location.hostname&&this.addEvent(a[b],"click",function(d){_gaCustom.trackExternalLink(d)})}}, trackDownload:function(a){evt=a||event;if(a=evt.srcElement||evt.target)for(;a.tagName!="A";)a=a.parentNode;else a=this;a=a.pathname.replace(/^\/+/,"");_gaq.push(["_trackPageview","/download/"+a])},trackExternalLink:function(a){evt=a||event;if(a=evt.srcElement||evt.target)for(;a.tagName!="A";)a=a.parentNode;else a=this;if(/http/.test(a.protocol)){url=a.href.match(/\/\/(.+)$/)[1];_gaq.push(["_trackPageview","/exit/"+url])}else if(a.protocol=="mailto:"){url=a.href.match(/mailto:(.+)$/)[1];_gaq.push(["_trackPageview", "/mailto/"+url])}},trackOnSiteCampaign:function(a){(a=this.getQueryParam(a))&&_gaq.push(["_setCustomVar",1,"on-site campaign",a,2])},getQueryParam:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href);return a==null?"":a[1]},addEvent:function(){if(window.addEventListener)return function(a,b,c){a.addEventListener(b,c,false)};else if(window.attachEvent)return function(a,b,c){a.attachEvent("on"+b,function(){c.call(a,window.event)})}}()}; _gaCustom.addEvent(window,"load",function(){_gaCustom.initialize(0)});
