/* jquery.platinum-analytics.js Copyright (C) 2012 Mike Kibbel, MetaMetrics, Inc. https://raw.github.com/skibblenybbles/jquery-platinum/master/src/LICENSE */ (function(j,a,o){var v=a.Array,m=a.Math,w=a.Number,x=a.String,p=function(e){return"number"===typeof e||e instanceof w},y=j.Deferred,z=j.ajax,A=j.extend,q="https:"===o.location.protocol,B="http"+(q?"s":"")+"://",C=function(e){return function(){var d=a.$pt;a.$pt=e;return d}}(a.$pt),l=a.$pt=j.platinum=j.platinum||{};l.noConflict=C;var h,i;(function(){h=function(e,d,b,c){var f=[];i(e,function(b){f.push(b)},d,b,c);return f};i=h.each=function(e,d,b,c,f){var a;a=e.length;f=f||1;b=!p(b)?0b?b+a: b;c=!p(c)?0c?c+a:c;if(0c&&!(a=d.call(null,e[b]),!1===a);b+=f);}};l.array=h})();var g,r,s;(function(){var a=y(),d=a.promise();j(o).ready(function(){a.resolve()});g={hitch:function(b,a){return function(a,b,c){return function(){return b.apply(a,c.concat(h(arguments)))}}(b,a,h(arguments,2))}};r=g.partial=function(a){return function(a,b){return function(){return a.apply(null,b.concat(h(arguments)))}}(a, h(arguments,1))};s=g.delegate=function(a,c){for(var d in c)!(d in a)&&"function"===typeof c[d]&&"constructor"!==d&&(a[d]=g.hitch(c,c[d]))};g.ready=function(){return d};l.lang=g})();var n,t;(function(){n={};t=n.load=function(a,d){d=A(d||{},{dataType:"script",cache:!0,url:a});return z(d)};l.scripts=n})();var k;(function(){var e=[],d={},b=function(a){a!==e&&i(a,function(a){d.hasOwnProperty(a)||(e.push(a),d[a]=!1)});this.trackers=a},c={},f=function(b){return function(b){return function(){var c=h(arguments), e=[];i(this.trackers,function(a){d[a]&&e.push([(0===a.length?"":a+".")+b].concat(c))});a._gaq.push.apply(a._gaq,e);return this}}("_"+b)},j=function(b){return function(b){return function(c){var e=h(arguments,1),f=[];if("function"===typeof c)return i(this.trackers,function(u){d[u]&&f.push(r(function(b,c,d,e){b=a._gat._getTrackerByName(b);d(b[c].apply(b,e),b)},u,b,c,e))}),a._gaq.push.apply(a._gaq,f),this}}("_"+b)},g=null;k=function(){var a=[],c={};if(0===arguments.length)return this;1===arguments.length&& "*"===arguments[0]?a=e:i(arguments,function(b){"string"===typeof b||b instanceof x?c.hasOwnProperty(b)||(a.push(b),c[b]=!0):b instanceof v&&i(b,function(b){c.hasOwnProperty(b)||(a.push(b),c[b]=!0)})});return new b(a)};k.load=function(){if(null===g)a._gaq=a._gaq||[],g=t(B+(q?"ssl":"www")+".google-analytics.com/ga.js").promise();return g};k.promise=function(){return g};i("addIgnoredOrganic,addIgnoredRef,addItem,addOrganic,addTrans,clearIgnoredOrganic,clearIgnoredRef,clearOrganic,cookiePathCopy,deleteCustomVar,setAccount,link,linkByPost,setAllowAnchor,setAllowLinker,setCampContentKey,setCampMediumKey,setCampNameKey,setCampNOKey,setCampSourceKey,setCampTermKey,setCampaignCookieTimeout,setCampaignTrack,setClientInfo,setCookiePath,setCustomVar,setDetectFlash,setDetectTitle,setDomainName,setLocalGifPath,setLocalRemoteServerMode,setLocalServerMode,setReferrerOverride,setRemoteServerMode,setSampleRate,setSiteSpeedSampleRate,setSessionCookieTimeout,setVisitorCookieTimeout,trackEvent,trackPageview,trackSocial,trackTiming,trackTrans".split(","), function(a){c[a]=f(a)});i("getAccount,getClientInfo,getDetectFlash,getDetectTitle,getLinkerUrl,getLocalGifPath,getName,getServiceMode,getVersion,getVisitorCustomVar".split(","),function(a){c[a]=j(a)});c.setAccount=function(a){return function(){k.load();i(this.trackers,function(a){d[a]=!0});return a.apply(this,h(arguments))}}(c.setAccount);b.prototype=c;s(k,new b([""]));l.analytics=k})()})(jQuery,window,document);