(function(b,a){var c=[];var d;function e(){d=hashGet();b.setInterval(hashCheck,5);hashAddListener(function(f){if(f=="libExists"){hashSet("libExists-yes");return(false)}})}b.hashAddListener=function(f){c.push(f)};b.hashRemoveListener=function(f){alert("removing hash listener not support yet")};b.hashGet=function(){return(a.hash.replace("#",""))};b.hashCheck=function(){newHash=hashGet();if(newHash!=d){for(i in c){if(c[i](newHash)==false){break}}}d=newHash};b.hashSet=function(g,f){if(!f){d=g}a.hash=g};e()})(window,location);(function(){hashDelay=500;var a;function b(c){if(c){document.body.scrollTop=0}else{document.body.scrollTop+=document.body.clientHeight-50}thisScrollTop=document.body.scrollTop;if(thisScrollTop==a){a=-1;window.setTimeout(function(){hashSet("end-"+document.height+"-"+document.width)},hashDelay)}else{hashSet("screen-"+thisScrollTop);window.setTimeout(b,hashDelay)}a=thisScrollTop}hashAddListener(function(c){if(c=="start"){b(true)}})})();