text: (function($){$.fn.scrollTo=function(options){var settings={offset:0,speed:"slow",override:null,easing:null,linking:false,callback:function(){}};if(options){if(options.override){options.override=(override("#")!=-1)?options.override:"#"+options.override}$.extend(settings,options)}return this.each(function(i,el){$(el).click(function(e){var idToLookAt;if($(el).attr("href").match(/#/)!==null){e.preventDefault();idToLookAt=(settings.override)?settings.override:$(el).attr("href");if(history.pushState&&settings.linking){history.pushState(null,null,idToLookAt);$("html,body").stop().animate({scrollTop:$(idToLookAt).offset().top+settings.offset},settings.speed,settings.easing,settings.callback)}else{$("html,body").stop().animate({scrollTop:$(idToLookAt).offset().top+settings.offset},settings.speed,settings.easing,function(e){if(settings.linking){window.location.hash=idToLookAt}settings.callback()})}}})})}})(jQuery);