(function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=Array.prototype.slice;window.Backbone.Analytics=function(){function c(b){b==null&&(b={}),this.trackNavigate=a(this.trackNavigate,this),this.setCustomVar=a(this.setCustomVar,this),this.trackSocial=a(this.trackSocial,this),this.trackEvent=a(this.trackEvent,this),this.trackPageview=a(this.trackPageview,this),this.setAccount=a(this.setAccount,this),this.push=a(this.push,this),this.queue=a(this.queue,this),this.script=a(this.script,this),this.protocol=a(this.protocol,this),this.loadScript=a(this.loadScript,this),this.initialize=a(this.initialize,this),this.code=b.code,this.debug=b.debug,b.setAccount!==!1&&this.setAccount(),b.loadScript!==!1&&this.loadScript(),this.initialize.apply(this,arguments),b.initialPageview!==!1&&this.trackPageview(),b.trackNavigate!==!1&&this.trackNavigate()}return c.prototype.initialize=function(){},c.prototype.loadScript=function(){var a,b;return a=document.createElement("script"),a.type="text/javascript",a.async=!0,a.src=this.protocol()+this.script(),b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)},c.prototype.protocol=function(){return document.location.protocol==="https:"?"https://ssl":"http://www"},c.prototype.script=function(){return this.debug===!0?".google-analytics.com/u/ga_debug.js":".google-analytics.com/ga.js"},c.prototype.queue=function(){return window._gaq||(window._gaq=[])},c.prototype.push=function(a){return this.queue().push(a)},c.prototype.setAccount=function(){if(this.code!=null)return this.push(["_setAccount",this.code]);throw new Error("Cannot Set Google Analytics Account: No Tracking Code Provided")},c.prototype.trackPageview=function(a){var b;return b=["_trackPageview"],a!=null&&b.push(a),this.push(b)},c.prototype.trackEvent=function(){var a;return a=1<=arguments.length?b.call(arguments,0):[],this.push(["_trackEvent"].concat(a))},c.prototype.trackSocial=function(){var a;return a=1<=arguments.length?b.call(arguments,0):[],this.push(["_trackSocial"].concat(a))},c.prototype.setCustomVar=function(){var a;return a=1<=arguments.length?b.call(arguments,0):[],this.push(["_setCustomVar"].concat(a))},c.prototype.trackNavigate=function(){var a,b;return b=this.trackPageview,a=window.Backbone.History.prototype.navigate,window.Backbone.History.prototype.navigate=function(c,d){return b(c),a.apply(this,arguments)}},c}()}).call(this)