window.jQuery||alert("The jQuery library must be included before the smoothscroll.js file. The plugin will not work propery."),function(l){var y=l.scrollTo=function(e,t,o){l(window).scrollTo(e,t,o)};function e(e){return"object"==typeof e?e:{top:e,left:e}}y.defaults={axis:"xy",duration:1.3<=parseFloat(l.fn.jquery)?0:1,limit:!0},y.window=function(e){return l(window)._scrollable()},l.fn._scrollable=function(){return this.map(function(){var e=this;if(!(!e.nodeName||-1!=l.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])))return e;var t=(e.contentWindow||e).document||e.ownerDocument||e;return/webkit/i.test(navigator.userAgent)||"BackCompat"==t.compatMode?t.body:t.documentElement})},l.fn.scrollTo=function(t,o,p){return"object"==typeof o&&(p=o,o=0),"function"==typeof p&&(p={onAfter:p}),"max"==t&&(t=9e9),p=l.extend({},y.defaults,p),o=o||p.duration,p.queue=p.queue&&1 ").attr(e,n).css({position:"absolute",top:l(window).scrollTop(),left:l(window).scrollLeft()});r[e]="",l("body").prepend(a),location=t.hash,a.remove(),r[e]=n}i.scrollTo(r,o).trigger("notify.serialScroll",[r])}}}var e=location.href.replace(/#.*/,""),i=l.localScroll=function(e){l("body").localScroll(e)};i.defaults={duration:1e3,axis:"y",event:"click",stop:!0,target:window,reset:!0},i.hash=function(e){if(location.hash){if((e=l.extend({},i.defaults,e)).hash=!1,e.reset){var t=e.duration;delete e.duration,l(e.target).scrollTo(0,e),e.duration=t}r(0,location,e)}},l.fn.localScroll=function(o){function n(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,"")==e&&(!o.filter||l(this).is(o.filter))}return(o=l.extend({},i.defaults,o)).lazy?this.bind(o.event,function(e){var t=l([e.target,e.target.parentNode]).filter(n)[0];t&&r(e,t,o)}):this.find("a,area").filter(n).bind(o.event,function(e){r(e,this,o)}).end().end()}}(jQuery),jQuery(function(e){e.localScroll({filter:".smoothScroll"})});