jQuery.extend( jQuery.easing, {
def: 'easeOutExpo',
easeOutExpo: function (x, t, b, c, d) {
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
}
});
$(document).ready(function(){
$("a[href^=#]").click(function() {
var localHash = this.hash;
if(!localHash || localHash == "#") return false;
$($.browser.safari ? 'body' : 'html')
.animate({scrollTop: $(localHash).offset().top}, 700, "easeOutExpo");
return false;
});
});
