;(function($,window,document,undefined){var defaults={};function HashScroll(element,options){this.element=$(element);this.settings=$.extend({},defaults,options);this._defaults=defaults;this.init();} HashScroll.prototype={init:function(){var self=this;$(this.element).on('click',function(e){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$('[name='+ this.hash.slice(1)+']');if(target.length){$('html,body').animate({scrollTop:target.offset().top},350);e.preventDefault();}}});}};$.fn.hashscroll=function(options){this.each(function(){if(!$.data(this,'plugin_hashscroll')){$.data(this,'plugin_hashscroll',new HashScroll(this,options));}});return this;};})(jQuery,window,document);