var _gaCustom={fileTypes:RegExp(/\.(docx*|xlsx*|pptx*|exe|zip|pdf|jpg|png|txt)$/i),initialize:function(a){if(window._gaq===void 0)a<5E3&&setTimeout("_gaCustom.initialize("+(a+200)+")",200);else if(document.getElementsByTagName)for(var a=document.getElementsByTagName("a"),b=0,c=a.length;b<c;b++)this.fileTypes.test(a[b].pathname)?this.addEvent(a[b],"click",function(a){_gaCustom.trackDownload(a)}):a[b].hostname!=location.hostname&&this.addEvent(a[b],"click",function(a){_gaCustom.trackOutbound(a)})}, 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])},trackOutbound:function(a){evt=a||event;if(a=evt.srcElement||evt.target)for(;a.tagName!="A";)a=a.parentNode;else a=this;/http/.test(a.protocol)?(url=a.href.match(/\/\/(.+)$/)[1],_gaq.push(["_trackEvent","outbound","click",url])):a.protocol=="mailto:"&&(url=a.href.match(/mailto:(.+)$/)[1],_gaq.push(["_trackEvent", "mailto","click",url]))},addEvent:function(){if(window.addEventListener)return function(a,b,c){a.addEventListener(b,c,!1)};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)});
