new function(){function e(a){function i(a,b,c){setTimeout(function(){if(c=="up"&&a>=b){a=a-(a-b)/20-1;window.scrollTo(0,a);i(a,b,c)}else if(c=="down"&&a<=b){a=a+(b-a)/20+1;window.scrollTo(0,a);i(a,b,c)}else{scrollTo(0,b)}return},10)}if(c.getElementById(a.rel.replace(/.*\#/,""))){var b=c.getElementById(a.rel.replace(/.*\#/,""))}else{return}var d=b.offsetTop;var e=c.documentElement.scrollHeight;var f=window.innerHeight||c.documentElement.clientHeight;if(e-f<d){var d=e-f}var g=window.pageYOffset||c.documentElement.scrollTop||c.body.scrollTop||0;var h=d<g?"up":"down";i(g,d,h)}function d(a,b,c){try{a.addEventListener(b,c,false)}catch(d){a.attachEvent("on"+b,function(){c.apply(a,arguments)})}}var a="data-tor-smoothScroll";var b=/noSmooth/;var c=document;d(window,"load",function(){var d=c.getElementsByTagName("a");for(var f=0,g=d.length;f<g;f++){if(!b.test(d[f].getAttribute(a))&&d[f].href.replace(/\#[a-zA-Z0-9_]+/,"")==location.href.replace(/\#[a-zA-Z0-9_]+/,"")){d[f].rel=d[f].href;d[f].href="javascript:void(0)";d[f].onclick=function(){e(this)}}}})}
