/* 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 3125 2007-09-06 20:39:42Z kelvin.luck $
 */

/**
 * Replace the vertical scroll bars on any matched elements with a fancy
 * styleable (via CSS) version. With JS disabled the elements will
 * gracefully degrade to the browsers own implementation of overflow:auto.
 * If the mousewheel plugin has been included on the page then the scrollable areas will also
 * respond to the mouse wheel.
 *
 * @example jQuery(".scroll-pane").jScrollPane();
 *
 * @name jScrollPane
 * @type jQuery
 * @param Object	settings	hash with options, described below.
 *								scrollbarWidth	-	The width of the generated scrollbar in pixels
 *								scrollbarMargin	-	The amount of space to leave on the side of the scrollbar in pixels
 *								wheelSpeed		-	The speed the pane will scroll in response to the mouse wheel in pixels
 *								showArrows		-	Whether to display arrows for the user to scroll with
 *								arrowSize		-	The height of the arrow buttons if showArrows=true
 *								animateTo		-	Whether to animate when calling scrollTo and scrollBy
 *								dragMinHeight	-	The minimum height to allow the drag bar to be
 *								dragMaxHeight	-	The maximum height to allow the drag bar to be
 *								animateInterval	-	The interval in milliseconds to update an animating scrollPane (default 100)
 *								animateStep		-	The amount to divide the remaining scroll distance by when animating (default 3)
 *								maintainPosition-	Whether you want the contents of the scroll pane to maintain it's position when you re-initialise it - so it doesn't scroll as you add more content (default true)
 * @return jQuery
 * @cat Plugins/jScrollPane
 * @author Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7.1j={1q:[]};7.2a.1j=9(Y){Y=7.2b({1a:10,1r:5,1D:18,1E:1b,1e:0,1F:1b,1G:1,1H:2c,1I:1s,1J:3,1K:1L},Y);1c 12.2d(9(){6 f=7(12);13(7(12).1l().2e(\'.1M\')){6 g=Y.1K?f.1t({1N:7(12).1l()[0]}).15:0;6 h=7(12).1l();6 i=h.1O();6 j=h.1P();6 k=j;13(h.1Q){h.1Q()}7(\'>.1m, >.1u, >.1v\',h).2f();f.Z({\'15\':0})}1k{6 g=0;12.1R=f.Z(\'2g\')+\' \'+f.Z(\'1w\')+\' \'+f.Z(\'2h\')+\' \'+f.Z(\'1S\');12.1x=(1y(f.Z(\'1S\'))||0)+(1y(f.Z(\'1w\'))||0);6 i=f.1O();6 j=f.2i();6 k=j;f.2j(7(\'<16></16>\').1f({\'1g\':\'1M\'}).Z({\'1d\':j+\'11\',\'17\':i+\'11\'}));7(1z).14(\'2k\',9(e,a,b){f.1j(Y)})}6 p=12.1x;f.Z({\'1d\':\'2l\',\'17\':i-Y.1a-Y.1r-p+\'11\',\'1w\':Y.1r+\'11\'});6 l=f.1P();6 m=j/l;13(m<.2m){6 n=f.1l();n.1n(7(\'<16></16>\').1f({\'1g\':\'1m\'}).Z({\'17\':Y.1a+\'11\'}).1n(7(\'<16></16>\').1f({\'1g\':\'1T\'}).Z({\'17\':Y.1a+\'11\'}).1n(7(\'<16></16>\').1f({\'1g\':\'2n\'}).Z({\'17\':Y.1a+\'11\'}),7(\'<16></16>\').1f({\'1g\':\'2o\'}).Z({\'17\':Y.1a+\'11\'}))));6 o=7(\'>.1m\',n);6 q=7(\'>.1m .1T\',n);13(Y.1E){6 r;6 s;6 t;6 u;6 v=9(){13(u>4||u%4==0){K(D+s*C)}u++};6 w=9(a){7(\'19\').1h(\'1i\',w);r.2p(\'1U\');1A(t)};6 x=9(){7(\'19\').14(\'1i\',w);r.2q(\'1U\');u=0;v();t=1B(v,1s)};n.1n(7(\'<a></a>\').1f({\'1V\':\'1W:;\',\'1g\':\'1u\'}).Z({\'17\':Y.1a+\'11\'}).1X(\'1Y 2r\').14(\'1o\',9(){r=7(12);s=-1;x();12.1Z();1c 1b}),7(\'<a></a>\').1f({\'1V\':\'1W:;\',\'1g\':\'1v\'}).Z({\'17\':Y.1a+\'11\'}).1X(\'1Y 2s\').14(\'1o\',9(){r=7(12);s=1;x();12.1Z();1c 1b}));13(Y.1e){k=j-Y.1e-Y.1e;o.Z({\'1d\':k+\'11\',15:Y.1e+\'11\'})}1k{6 y=7(\'>.1u\',n).1d();Y.1e=y;k=j-y-7(\'>.1v\',n).1d();o.Z({\'1d\':k+\'11\',15:y+\'11\'})}}6 z=7(12).Z({\'2t\':\'2u\',\'2v\':\'2w\'});6 A;6 B;6 C;6 D=0;6 E=m*j/2;6 F=9(a,c){6 p=c==\'X\'?\'2x\':\'2y\';1c a[\'2z\'+c]||(a[\'2A\'+c]+(1z.2B[\'1C\'+p]||1z.19[\'1C\'+p]))||0};6 G=9(){1c 1b};6 H=9(){W();A=q.1t(1b);A.15-=D;B=k-q[0].2C;C=2*Y.1D*B/l};6 I=9(a){H();E=F(a,\'Y\')-D-A.15;7(\'19\').14(\'1i\',J).14(\'1p\',L);13(7.20.21){7(\'19\').14(\'22\',G).14(\'23\',G)}1c 1b};6 J=9(){7(\'19\').1h(\'1i\',J).1h(\'1p\',L);E=m*j/2;13(7.20.21){7(\'19\').1h(\'22\',G).1h(\'23\',G)}};6 K=9(a){a=a<0?0:(a>B?B:a);D=a;q.Z({\'15\':a+\'11\'});6 p=a/B;z.Z({\'15\':((j-l)*p)+\'11\'});f.2D(\'1C\')};6 L=9(e){K(F(e,\'Y\')-A.15-E)};6 M=24.2E(24.2F(m*(j-Y.1e*2),Y.1H),Y.1G);q.Z({\'1d\':M+\'11\'}).14(\'1o\',I);6 N;6 O;6 P;6 Q=9(){13(O>8||O%4==0){K((D-((D-P)/2)))}O++};6 R=9(){1A(N);7(\'19\').1h(\'1i\',R).1h(\'1p\',S)};6 S=9(a){P=F(a,\'Y\')-A.15-E};6 T=9(a){H();S(a);O=0;7(\'19\').14(\'1i\',R).14(\'1p\',S);N=1B(Q,1s);Q()};o.14(\'1o\',T);13(n.25){n.25(9(a,b){H();W();6 d=D;K(D-b*C);6 c=d!=D;1c!c},1b)}6 U;6 V;9 26(){6 a=(U-D)/Y.1J;13(a>1||a<-1){K(D+a)}1k{K(U);W()}}6 W=9(){13(V){1A(V);2G U}};6 X=9(a,b){13(2H a=="2I"){$e=7(a,12);13(!$e.27)1c;a=$e.1t({1N:12}).15}W();6 c=-a/(j-l)*B;13(!b||Y.1F){U=c;V=1B(26,Y.1I)}1k{K(c)}};f[0].28=X;f[0].29=9(a){6 b=-1y(z.Z(\'15\'))||0;X(b+a)};H();X(-g,1L);7.1j.1q.2J(f[0])}1k{f.Z({\'1d\':j+\'11\',\'17\':i-12.1x+\'11\',\'2K\':12.1R})}})};7(2L).14(\'2M\',9(){6 a=7.1j.1q;2N(6 i=0;i<a.27;i++){a[i].28=a[i].29=2O}});',62,175,'||||||var|jQuery||function||||||||||||||||||||||||||||||||||||||||||||||||||||css||px|this|if|bind|top|div|width||body|scrollbarWidth|false|return|height|arrowSize|attr|className|unbind|mouseup|jScrollPane|else|parent|jScrollPaneTrack|append|mousedown|mousemove|active|scrollbarMargin|100|offset|jScrollArrowUp|jScrollArrowDown|paddingRight|originalSidePaddingTotal|parseInt|document|clearInterval|setInterval|scroll|wheelSpeed|showArrows|animateTo|dragMinHeight|dragMaxHeight|animateInterval|animateStep|maintainPosition|true|jScrollPaneContainer|relativeTo|innerWidth|outerHeight|unmousewheel|originalPadding|paddingLeft|jScrollPaneDrag|jScrollActiveArrowButton|href|javascript|html|Scroll|blur|browser|msie|dragstart|selectstart|Math|mousewheel|animateToPosition|length|scrollTo|scrollBy|fn|extend|99999|each|is|remove|paddingTop|paddingBottom|innerHeight|wrap|emchange|auto|99|jScrollPaneDragTop|jScrollPaneDragBottom|removeClass|addClass|up|down|position|absolute|overflow|visible|Left|Top|page|client|documentElement|offsetHeight|trigger|max|min|delete|typeof|string|push|padding|window|unload|for|null'.split('|'),0,{}))