var ss={smoothScroll:function(a){try{anchor=a.substr(1);destinationLink=document.getElementById(anchor);var c=destinationLink.offsetLeft;var b=destinationLink.offsetTop;var d=destinationLink;while(d.offsetParent&&(d.offsetParent!=document.body)){d=d.offsetParent;c+=d.offsetLeft;b+=d.offsetTop}clearInterval(ss.INTERVAL);cypos=ss.getCurrentYPos();ss_stepsize=parseInt((b-cypos)/ss.STEPS);ss.INTERVAL=setInterval("ss.scrollWindow("+ss_stepsize+","+b+',"'+anchor+'")',10);if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(a&&a.preventDefault&&a.stopPropagation){a.preventDefault();a.stopPropagation()}}catch(a){}},scrollWindow:function(a,b,c){wascypos=ss.getCurrentYPos();isAbove=(wascypos<b);window.scrollTo(0,wascypos+a);iscypos=ss.getCurrentYPos();isAboveNow=(iscypos<b);if((isAbove!=isAboveNow)||(wascypos==iscypos)){window.scrollTo(0,b);clearInterval(ss.INTERVAL);location.hash=c}},getCurrentYPos:function(){if(document.body&&document.body.scrollTop){return document.body.scrollTop}if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}if(window.pageYOffset){return window.pageYOffset}return 0}};ss.STEPS=25;if(typeof(Sys)!="undefined"&&typeof(Sys.Application)!="undefined"){Sys.Application.notifyScriptLoaded()};
