/**
 * jQuery.LocalScroll - Animated scrolling navigation, using anchors.
 * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
 * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php).
 * Date: 1/4/2008
 * @author Ariel Flesler
 * @version 1.1.3
 **/
;(function($){$.localScroll=function(a){$('body').localScroll(a)};$.localScroll.defaults={target:null,filter:null,duration:1000,axis:'y',event:'click',persistent:false,cancel:true};$.fn.localScroll=function(b){b=$.extend({},$.localScroll.defaults,b);return(b.persistent)?this.bind(b.event,function(e){var a=$([e.target,e.target.parentNode]).filter(filter)[0];return a&&scroll.call(a,e)}):this.find('a').filter(filter).bind(b.event,scroll).end().end();function scroll(e){var a=this.hash.slice(1),q=document.getElementById(a)||$('[name='+a+']')[0];if(q){if(b.onBefore)b.onBefore.call(this,e,q,$(b.target||window));if(b.target)$(b.target).scrollTo(q,b);else $.scrollTo(q,b);return!b.cancel}};function filter(){return local(this)&&(!b.filter||$(this).is(b.filter))}};function local(a){return!!a.hash&&location.href.replace(/#.*/,'')==a.href.replace(a.hash,'')}})(jQuery);
