// GA Functions 1.4.0 http://murak.net/ MIT License
var gaFunc=gaFunc||{};
jQuery(function(b){function h(){return parseInt(((new Date).getTime()-k)/1E3)}function f(e,b,c,f,d){if(e)_gaq.push([l+"_trackEvent",b,c,f,d]);else try{_gat._getTrackerByName(a.tracker)._trackEvent(b,c,f,d)}catch(g){}}function m(e,b){if(e)_gaq.push([l+"_trackPageview",b]);else try{_gat._getTrackerByName(a.tracker)._trackPageview(b)}catch(c){}}var a=b.extend({tracker:"",outbound:!0,outboundEvent:!0,outboundAsync:!1,outboundSelector:'a[href^="http"]:not([href*="//'+location.host+'"])',outboundPrefix:"/outbound/",
download:!0,downloadEvent:!0,downloadAsync:!1,downloadSelector:"a",downloadTypes:"pdf|zip|jpe?g|png|gif|mpd?|mpe?g|flv|wmv|docx?|pptx?|xlsx?",downloadPrefix:"/download/",mailto:!0,input:!0,inputSelector:"form",inputFocus:!1,inputChange:!0,inputClick:!0,inputReset:!0,stay:!1,staySec:60,scroll:!0,scrollAsync:!0,scrollClientRatio:150,xdomain:!1,xdomainDomain:"othersite1.com|othersite2.com",locationSearch:!1},gaFunc),l=a.tracker?a.tracker+".":"",i=location.pathname+(a.locationSearch?location.search:""),
k=(new Date).getTime(),n=k;if(a.outbound){var c=a.outboundSelector;a.outboundEvent?b(c).live("click",function(){var e=this.href.match(/\/\/([^\/]+)/)[1];f(a.outboundAsync,"Outbound",e,this.href,h())}):b(c).live("click",function(){var e=a.outboundPrefix+this.href.replace(/^.*\/\//,"");m(a.outboundAsync,e)})}if(a.download){var o=RegExp(".("+a.downloadTypes+")$","i");b(a.downloadSelector).each(function(){this.href.match(o)&&(a.downloadEvent?b(this).click(function(){var e=this.href.match(o)[1].toUpperCase();
f(a.downloadAsync,"Download",e,this.href,h())}):b(this).click(function(){var e=a.downloadPrefix+this.href.replace(/^.*\/\//,"");m(a.downloadAsync,e)}))})}a.mailto&&b('a[href^="mailto:"]').live("click",function(){f(!0,"Email","mailto",this.href)});if(a.input){var c=b(a.inputSelector),d=function(a,b,c){var b=i+"#"+b.join("#"),d=(new Date).getTime(),g=parseInt((d-n)/1E3);n=d;f(c,"Input",a,b,g)};a.inputFocus&&c.find(":text,:password,:radio,:checkbox,:file,select,textarea").focus(function(){d("focus",
[b(this).attr("type")||this.tagName,this.id||this.name],!0)});a.inputChange&&c.find(":text,:password,:radio,:checkbox,:file,select,textarea").change(function(){d("change",[b(this).attr("type")||this.tagName,this.id||this.name],!0)});a.inputClick&&c.find(":submit,:image,:button").click(function(){d("click",[b(this).attr("type")||this.tagName,this.id||this.name],!0)});a.inputReset&&c.find(":reset").click(function(){d("reset",["reset",this.id||this.name],!0)})}a.stay&&0<a.staySec&&setTimeout(function(){f(!0,
"Reading","stay",i,h())},1E3*a.staySec);if(a.scroll){var c=b("html,body"),g=0;b(window).scroll(function(){var a=b(window).scrollTop(),d=c.attr("clientHeight"),a=a+d;a>g&&(g=a)});b(window).unload(function(){var b=c.attr("clientHeight");0<a.scrollClientRatio&&100*g>=b*a.scrollClientRatio&&(b=c.attr("scrollHeight"),b=parseInt(100*(g/b)),f(a.scrollAsync,"Reading","scroll",i,b))})}if(a.xdomain){for(var p=a.xdomainDomain.split("|"),c=[],j=0;j<p.length;j++)c.push('a[href*="'+p[j]+'"]');var q=a.xdomainDomain.replace(/\./g,
"\\.");b(c.join(",")).live("click",function(){if(this.href.match(RegExp("^https?://[^/]*("+q+")")))this.href=_gat._getTrackerByName(a.tracker)._getLinkerUrl(this.href)})}});
