var _gaq;var Frisbee={options:{ga_profile:null,ga_domain:"none",ga_allow_hash:false,tag_outgoing:true,tag_files:true,tag_file_extensions:["pdf","txt","exe","dmg"]},init:function(a){if(typeof a=="object"){this.options=this.extend(this.options,a)}this.initGoogleAnalytics()},initGoogleAnalytics:function(){_gaq=_gaq||[];_gaq.push(["_setAccount",Frisbee.options.ga_profile]);_gaq.push(["_setDomainName",this.options.ga_domain]);_gaq.push(["_setAllowHash",this.options.ga_allow_hash]);_gaq.push(["_setAllowLinker",true]);(function(){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();this.tagLinks()},trackEvent:function(b,c,d,a){_gaq.push(["_trackEvent",b,c,d,a])},trackPageview:function(a){_gaq.push(["_trackPageview",a])},tagLinks:function(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(this.options.tag_outgoing&&window.location.hostname!=b[a].hostname&&b[a].href.substring(0,10).toLowerCase()!="javascript"){if(b[a].addEventListener){b[a].addEventListener("click",function(){Frisbee.trackPageview("/outbound/"+this.href.replace(this.protocol+"//",""))},true)}else{if(b[a].attachEvent){b[a].attachEvent("onclick",function(){Frisbee.trackPageview("/outbound/"+this.href.replace(this.protocol+"//",""))})}}}else{if(this.options.tag_files){}}}},link:function(a,b){tracker=_gat._getTracker();location.href=tracker._getLinkerUrl(a,b)},log:function(a){console.error(a)},extend:function(b,a){for(name in a){b[name]=a[name]}return b}};
