(function(n,t){var i=new function(){function u(){var r=t.documentElement.scrollTop?t.documentElement.scrollTop:t.body.scrollTop;++r,t.documentElement.clientHeight>800&&(r+=3),n.scroll(0,r),r!=(t.documentElement.scrollTop?t.documentElement.scrollTop:t.body.scrollTop)&&i.over()}var i=this,r=null;return i.reset=function(n){i.over();var t=n;t>0&&config("scrollsec",t,!0),i.scroll()},i.over=function(){clearInterval(r),r=null},i.scroll=function(){if(r==null){var n=parseInt(config("scrollsec","5"));r=setInterval(function(){u()},n)}else i.over()},i.scrollIng=function(){return r!=null},i};n.scrollIng=scroll.scrollIng,n.scrollReset=i.reset,n.scrollPage=i.scroll})(window,document)