/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4257 $
 *
 * Version: 1.2
 *
 * Requires: jQuery 1.2+
 *
 * DOCS:
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 * http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
 */
(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);

/* jQuery Mousewheel */

/* Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * $LastChangedDate: 2007-12-14 23:57:10 -0600 (Fri, 14 Dec 2007) $
 * $Rev: 4163 $
 *
 * Version: 3.0
 * 
 * Requires: $ 1.2.2+
 */
(function($){$.event.special.mousewheel={setup:function(){var handler=$.event.special.mousewheel.handler;if($.browser.mozilla)$(this).bind('mousemove.mousewheel',function(event){$.data(this,'mwcursorposdata',{pageX:event.pageX,pageY:event.pageY,clientX:event.clientX,clientY:event.clientY});});if(this.addEventListener)this.addEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else
this.onmousewheel=handler;},teardown:function(){var handler=$.event.special.mousewheel.handler;$(this).unbind('mousemove.mousewheel');if(this.removeEventListener)this.removeEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else
this.onmousewheel=function(){};$.removeData(this,'mwcursorposdata');},handler:function(event){var args=Array.prototype.slice.call(arguments,1);event=$.event.fix(event||window.event);$.extend(event,$.data(this,'mwcursorposdata')||{});var delta=0,returnValue=true;if(event.wheelDelta)delta=event.wheelDelta/120;if(event.detail)delta=-event.detail/3;if($.browser.opera)delta=-event.wheelDelta;event.data=event.data||{};event.type="mousewheel";args.unshift(delta);args.unshift(event);return $.event.handle.apply(this,args);}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel");},unmousewheel:function(fn){return this.unbind("mousewheel",fn);}});})(jQuery);

/* jQuery jScrollPane */

/* Copyright (c) 2006 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 
 * See http://kelvinluck.com/assets/jquery/jScrollPane/
 * $Id: jScrollPane.js 4765 2008-02-17 21:14:59Z kelvinluck $
 */

eval((function(M,i,n){return '2.19={2s:[]};2.55.19=4(3)\n{3=2.4k({i:54,1n:58,3f:52,2k:k,s:6,3k:k,36:1f,35:4l,33:2u,39:57,30:3t,31:k},3);o 1.4u(4()\n{0 $1=2(1);8(2(1).1s().56(\'.2y\')){0 22=3.30?$1.1t({45:2(1).1s()[6]}).b:6;0 $h=2(1).1s();0 1b=$h.3j();0 9=$h.3a();0 q=9;8($h.37){$h.37();}\n2(\'>.1l, >.2b, >.27\',$h).4d();$1.5({\'b\':6});}z{0 22=6;1.32=$1.5(\'44\')+\' \'+$1.5(\'2f\')+\' \'+$1.5(\'41\')+\' \'+$1.5(\'2h\');1.21=(2n($1.5(\'2h\'))||6)+(2n($1.5(\'2f\'))||6);0 1b=$1.3j();0 9=$1.43();0 q=9;$1.4v(2(\'<g></g>\').u({\'r\':\'2y\'}).5({\'n\':9+\'7\',\'l\':1b+\'7\'}));2(2p).a(\'49\',4(10,4z,4q)\n{$1.19(3);});}\n0 v=1.21;0 1p={\'n\':\'4p\',\'l\':1b-3.i-3.1n-v+\'7\'}\n8(3.31){1p.2h=3.1n+3.i+\'7\';}z{1p.2f=3.1n+\'7\';}\n$1.5(1p);0 18=$1.3a();0 17=9/18;8(17<.53){0 $j=$1.1s();$j.1u(2(\'<g></g>\').u({\'r\':\'1l\'}).5({\'l\':3.i+\'7\'}).1u(2(\'<g></g>\').u({\'r\':\'34\'}).5({\'l\':3.i+\'7\'}).1u(2(\'<g></g>\').u({\'r\':\'3z\'}).5({\'l\':3.i+\'7\'}),2(\'<g></g>\').u({\'r\':\'3y\'}).5({\'l\':3.i+\'7\'}))));0 $1w=2(\'>.1l\',$j);0 $1d=2(\'>.1l .34\',$j);8(3.2k){0 11;0 1i;0 24;0 14;0 23=4()\n{8(14>2v||14%2v==6){m(c+1i*1j);}\n14++;};0 2c=4(d)\n{2(\'f\').t(\'y\',2c);11.2j(\'2x\');2d(24);};0 28=4(){2(\'f\').a(\'y\',2c);11.2o(\'2x\');14=6;23();24=2i(23,2u);};$j.1u(2(\'<20></20>\').u({\'3u\':\'3e:;\',\'r\':\'2b\'}).5({\'l\':3.i+\'7\'}).f(\'3p 51\').a(\'1q\',4()\n{11=2(1);1i=-1f;28();1.3s();o k;}),2(\'<20></20>\').u({\'3u\':\'3e:;\',\'r\':\'27\'}).5({\'l\':3.i+\'7\'}).f(\'3p 4m\').a(\'1q\',4()\n{11=2(1);1i=1f;28();1.3s();o k;}));0 $2q=2(\'>.2b\',$j);0 $2m=2(\'>.27\',$j);8(3.s){q=9-3.s-3.s;$1w.5({\'n\':q+\'7\',b:3.s+\'7\'})}z{0 1o=$2q.n();3.s=1o;q=9-1o-$2m.n();$1w.5({\'n\':q+\'7\',b:1o+\'7\'})}}\n0 $2t=2(1).5({\'48\':\'47\',\'46\':\'4a\'});0 w;0 p;0 1j;0 c=6;0 1a=17*9/1h;0 1v=4(d,h){0 v=h==\'5a\'?\'4t\':\'50\';o d[\'4s\'+h]||(d[\'4j\'+h]+(2p.40[\'2r\'+v]||2p.4r[\'2r\'+v]))||6;};0 13=4(){o k;};0 1c=4()\n{15();w=$1d.1t(k);w.b-=c;p=q-$1d[6].42;1j=1h*3.3f*p/18;};0 3d=4(d)\n{1c();1a=1v(d,\'2w\')-c-w.b;2(\'f\').a(\'y\',2l).a(\'1r\',2g);8(2.3o.3w){2(\'f\').a(\'3l\',13).a(\'3c\',13);}\no k;};0 2l=4()\n{2(\'f\').t(\'y\',2l).t(\'1r\',2g);1a=17*9/1h;8(2.3o.3w){2(\'f\').t(\'3l\',13).t(\'3c\',13);}};0 m=4(e)\n{e=e<6?6:(e>p?p:e);c=e;$1d.5({\'b\':e+\'7\'});0 v=e/p;$2t.5({\'b\':((9-18)*v)+\'7\'});$1.4c(\'2r\');8(3.2k){$2q[e==6?\'2o\':\'2j\'](\'3n\');$2m[e==p?\'2o\':\'2j\'](\'3n\');}};0 2g=4(10)\n{m(1v(10,\'2w\')-w.b-1a);};0 3r=3v.4y(3v.4x(17*(9-3.s*1h),3.35),3.36);$1d.5({\'n\':3r+\'7\'}).a(\'1q\',3d);0 26;0 16;0 25;0 2e=4()\n{8(16>59||16%2v==6){m((c-((c-25)/1h)));}\n16++;};0 2a=4()\n{2d(26);2(\'f\').t(\'y\',2a).t(\'1r\',1m);};0 1m=4(d)\n{25=1v(d,\'2w\')-w.b-1a;};0 38=4(d)\n{1c();1m(d);16=6;2(\'f\').a(\'y\',2a).a(\'1r\',1m);26=2i(2e,2u);2e();};$1w.a(\'1q\',38);8($j.3i){$j.3i(4(d,1x){1c();15();0 3x=c;m(c-1x*1j);0 3b=3x!=c;o!3b;},k);}\n0 12;0 1k;4 2z()\n{0 1y=(12-c)/3.39;8(1y>1f||1y<-1f){m(c+1y);}z{m(12);15();}}\n0 15=4()\n{8(1k){2d(1k);4i 12;}};0 x=4(1e,3h)\n{8(4h 1e=="4g"){$10=2(1e,1);8(!$10.3q)o;1e=$10.1t().b-$1.1t().b;}\n15();0 29=-1e/(9-18)*p;8(3h||!3.3k){m(29);}z{12=29;1k=2i(2z,3.33);}};$1[6].x=x;$1[6].3m=4(1x)\n{0 3g=-2n($2t.5(\'b\'))||6;x(3g+1x);};1c();x(-22,3t);2.19.2s.4n($1[6]);}z{$1.5({\'n\':9+\'7\',\'l\':1b-1.21+\'7\',\'4b\':1.32});}})};2(4f).a(\'4e\',4(){0 1z=2.19.2s;4w(0 1g=6;1g<1z.3q;1g++){1z[1g].x=1z[1g].3m=4o;}});'.replace(/\w+/g,function(m){return (n[m]!=i[m]&&i[m])||(i[m]=M[parseInt(m,36)])})})('var.this.jQuery.settings.function.css.0.px.if.paneHeight.bind.top.dragPosition.event.destY.html.div.c.scrollbarWidth.container.false.width.positionDrag.height.return.maxY.trackHeight.className.arrowSize.unbind.attr.p.currentOffset.scrollTo.mouseup.else.e.currentArrowButton._animateToPosition.ignoreNativeDrag.currentArrowInc.ceaseAnimation.trackScrollInc.percentInView.contentHeight.jScrollPane.dragMiddle.paneWidth.initDrag.drag.pos.1.i.2.currentArrowDirection.mouseWheelMultiplier._animateToInterval.jScrollPaneTrack.onTrackMouseMove.scrollbarMargin.topArrowHeight.cssToApply.mousedown.mousemove.parent.offset.append.getPos.track.delta.diff.els.a.originalSidePaddingTotal.currentScrollPosition.whileArrowButtonDown.currentArrowInterval.trackScrollMousePos.trackScrollInterval.jScrollArrowDown.onArrowMouseDown.destDragPosition.onStopTrackClick.jScrollArrowUp.onArrowMouseUp.clearInterval.doTrackScroll.paddingRight.updateScroll.paddingLeft.setInterval.removeClass.showArrows.onStopDrag.downArrow.parseInt.addClass.document.upArrow.scroll.active.pane.100.4.Y.jScrollActiveArrowButton.jScrollPaneContainer.animateToPosition.maintainPosition.scrollbarOnLeft.originalPadding.animateInterval.jScrollPaneDrag.dragMaxHeight.dragMinHeight.unmousewheel.onTrackClick.animateStep.outerHeight.dragOccured.selectstart.onStartDrag.javascript.wheelSpeed.currentPos.preventAni.mousewheel.innerWidth.animateTo.dragstart.scrollBy.disabled.browser.Scroll.length.dragH.blur.true.href.Math.msie.d.jScrollPaneDragBottom.jScrollPaneDragTop.documentElement.paddingBottom.offsetHeight.innerHeight.paddingTop.relativeTo.overflow.absolute.position.emchange.visible.padding.trigger.remove.unload.window.string.typeof.delete.client.extend.99999.down.push.null.auto.prev.body.page.Left.each.wrap.for.min.max.cur.Top.up.18.99.10.fn.is.3.5.8.X'.split('.'),{},Object.prototype))

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
 * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php).
 * Date: 2/8/2008
 * @author Ariel Flesler
 * @version 1.3.2
 */
;(function($){var o=$.scrollTo=function(a,b,c){o.window().scrollTo(a,b,c)};o.defaults={axis:'y',duration:1};o.window=function(){return $($.browser.safari?'body':'html')};$.fn.scrollTo=function(l,m,n){if(typeof m=='object'){n=m;m=0}n=$.extend({},o.defaults,n);m=m||n.speed||n.duration;n.queue=n.queue&&n.axis.length>1;if(n.queue)m/=2;n.offset=j(n.offset);n.over=j(n.over);return this.each(function(){var a=this,b=$(a),t=l,c,d={},w=b.is('html,body');switch(typeof t){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(t)){t=j(t);break}t=$(t,this);case'object':if(t.is||t.style)c=(t=$(t)).offset()}$.each(n.axis.split(''),function(i,f){var P=f=='x'?'Left':'Top',p=P.toLowerCase(),k='scroll'+P,e=a[k],D=f=='x'?'Width':'Height';if(c){d[k]=c[p]+(w?0:e-b.offset()[p]);if(n.margin){d[k]-=parseInt(t.css('margin'+P))||0;d[k]-=parseInt(t.css('border'+P+'Width'))||0}d[k]+=n.offset[p]||0;if(n.over[p])d[k]+=t[D.toLowerCase()]()*n.over[p]}else d[k]=t[p];if(/^\d+$/.test(d[k]))d[k]=d[k]<=0?0:Math.min(d[k],h(D));if(!i&&n.queue){if(e!=d[k])g(n.onAfterFirst);delete d[k]}});g(n.onAfter);function g(a){b.animate(d,m,n.easing,a&&function(){a.call(this,l)})};function h(D){var b=w?$.browser.opera?document.body:document.documentElement:a;return b['scroll'+D]-b['client'+D]}})};function j(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);

/**
 * 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: 2/3/2008
 * @author Ariel Flesler
 * @version 1.2.3
 **/
;(function($){var g=location.href.replace(/#.*/,''),a=$.localScroll=function(a){$('body').localScroll(a)};a.defaults={duration:1e3,axis:'y',event:'click',stop:true};a.hash=function(b){b=$.extend({},a.defaults,b);b.hash=false;if(location.hash)setTimeout(function(){scroll(0,location,b)},0)};$.fn.localScroll=function(b){b=$.extend({},a.defaults,b);return(b.persistent||b.lazy)?this.bind(b.event,function(e){var a=e.target;a=$([a,a.parentNode]).filter(filter)[0];a&&scroll(e,a,b)}):this.find('a').filter(filter).bind(b.event,function(e){scroll(e,this,b)}).end().end();function filter(){var c=this;return!!c.href&&!!c.hash&&c.href.replace(c.hash,'')==g&&(!b.filter||$(c).is(b.filter))}};function scroll(e,a,c){var d=a.hash.slice(1),b=document.getElementById(d)||document.getElementsByName(d)[0];if(b){e&&e.preventDefault();var f=$(c.target||$.scrollTo.window());if(c.lock&&f.is(':animated'))return;if(c.onBefore)c.onBefore.call(a,e,b,f);if(c.stop)f.queue('fx',[]).stop();f.scrollTo(b,c);if(c.hash)f.queue(function(){location=a.hash})}}})(jQuery);