Effect.Transitions.customExponentialEaseOut=function(a){if(a==0){return 0}if(a==1){return 1
}a+=a*3;return -Math.pow(2,-10*a)+1};AC.AnchorPageScroller=Class.create();Object.extend(AC.AnchorPageScroller.prototype,AC.ViewMaster.Viewer.prototype);
Object.extend(AC.AnchorPageScroller.prototype,{triggerClassName:"scrollToAnchor",_triggerClicked:function(a){var c=a.element();
if(AC.Detector.isIEStrict()&&a.type==="mouseup"){if(c&&c.nodeName.toLowerCase()==="a"){c=c.down("."+this.triggerClassName)
}}else{while(c&&c.nodeName.toLowerCase()!="a"&&c.nodeName.toLowerCase()!="body"){c=c.parentNode
}}if(c&&c.href&&Element.Methods.hasClassName(c,this.triggerClassName)){var d=c.href.split("#");
if(d.length===2){Event.stop(a);this._currentDestination=d[1];var b={duration:1.5,transition:Effect.Transitions.customExponentialEaseOut,afterFinish:this.afterScroll.bind(this)};
new Effect.ScrollTo(this._currentDestination,b);this.trackClick()}}},afterScroll:function(){var a=window.location.href.split("#");
a[1]=this._currentDestination;window.location.href=(a[0]+"#"+a[1]);delete this._currentDestination
},sectionWithId:function(a){return null},trackClick:function(){var a="Page Scroller - "+AC.Tracking.pageName()+" - "+this._currentDestination;
AC.Tracking.trackClick({prop3:a},this,"o",a)}});Event.onDOMReady(function(){AC.AnchorPageScroller.defaultAnchorScroller=new AC.AnchorPageScroller()
});
