window._trackScroll=function(e,c){function f(a,b){var d;d=(d||100)/(b||1);return Math.round(a*d)/d}function g(){return Math.max.apply(Math,arguments)}function i(){var a=e.pageYOffset||c.body.scrollTop||c.documentElement.scrollTop,b;b=c.body;var d=c.documentElement;b=c.height||g(g(b.scrollHeight,d.scrollHeight),g(b.offsetHeight,d.offsetHeight),g(b.clientHeight,d.clientHeight));var d=e.innerHeight||c.body.clientHeight||c.documentElement.clientHeight,l=a-(i.y||0);i.y=a;if(l<0)return!1;b=100-f(f((b-a-
d)/b,5)*100,1);return a==0?"0% (top)":b+"%"+(b==100?" (bottom)":"")}function j(){h&&clearTimeout(h);h=setTimeout(function(){var a=i(),b=k||null;h=null;if(a&&b&&b.call)return b.call(this,a);else if(a&&console&&console.info)return console.info("scroll",a)},m)}var k=null,h=null,m=800;j.handler=function(a){a&&a.call&&(k=a)};(function(a,b,d,c){c=!!c;if(a.addEventListener)return a.addEventListener(b,d,c),d;else if(a.attachEvent)return c=function(b){d.call(a,b||window.event)},a.attachEvent("on"+b,c)&&c})(e,
"scroll",function(){j.call(this)});return j}(window,document);window._trackScroll.handler(function(e){var c=(document.location.host+"/"+document.location.pathname).replace(/\/+/g,"/"),f=e.replace(/^([0-9]+)%\s*(\([a-z]+\))?$/,"$1");window._gaq.push(["analyticspros._setCustomVar",1,"Scroll",e,3]);window._gaq.push(["analyticspros._trackEvent","Engagement", "Scroll", e, Number(f)])});


