(function(f){var n=!1,i=!1,m=5E3,k=2E3,o=function(){var e=document.getElementsByTagName("script"),e=e[e.length-1].src.split("?")[0];return 0<e.split("/").length?e.split("/").slice(0,-1).join("/")+"/":""}(),l=function(e,d){var b=this;this.version="2.6.5";this.name="nicescroll";this.me=d;this.opt={doc:f("body"),win:!1,zindex:9E3,cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#000",cursorwidth:"5px",cursorborder:"1px solid #000",cursorborderradius:"0px",scrollspeed:60,mousescrollstep:10,touchbehavior:!1,
hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:20,preservenativescrolling:!0,railoffset:!1,bouncescroll:!1};if(e)for(var h in b.opt)"undefined"!=typeof e[h]&&(b.opt[h]=e[h]);this.id=b.opt.doc?b.opt.doc.eq(0).id||"":"";this.doc=b.opt.doc;this.ispage=/BODY|HTML/.test(b.doc[0].nodeName);this.haswrapper=!1!==b.opt.win;this.win=b.opt.win||(this.ispage?f(window):this.doc);this.docscroll=
this.ispage?f(window):this.win;this.iframe=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.page=this.view=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.scrollmom=!1;do this.id="ascrail"+k++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=
this.zoomactive=this.zoom=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.locked=!1;b.nativescrollingarea=!1;this.events=[];this.saved={};var j=document.createElement("DIV");this.isopera="opera"in window;this.isieold=(this.isie="all"in document&&"attachEvent"in j&&!this.isopera)&&!("msInterpolationMode"in j.style);this.isie7=this.isie&&!this.isieold&&(!("documentMode"in document)||7==document.documentMode);this.isie8=this.isie&&"documentMode"in document&&8==document.documentMode;
this.isie9=this.isie&&"performance"in window&&9<=document.documentMode;this.ismozilla="MozAppearance"in j.style;this.ischrome="chrome"in window;this.isios4=(this.isios=(this.cantouch="ontouchstart"in document.documentElement)&&/iphone|ipad|ipod/i.test(navigator.platform))&&!("seal"in Object);if(b.opt.hwacceleration){if((this.trstyle=window.opera?"OTransform":document.all?"msTransform":void 0!==j.style.webkitTransform?"webkitTransform":void 0!==j.style.MozTransform?"MozTransform":!1)&&"undefined"==
typeof j.style[this.trstyle])this.trstyle=!1;if(this.hastransform=!1!=this.trstyle)j.style[this.trstyle]="translate3d(1px,2px,3px)",this.hastranslate3d=/translate3d/.test(j.style[this.trstyle]);this.transitionstyle=!1;this.prefixstyle="";this.transitionend=!1;var l="transition,webkitTransition,MozTransition,OTransition,msTransition,KhtmlTransition".split(","),p=",-webkit-,-moz-,-o-,-ms-,-khtml-".split(","),u="transitionEnd,webkitTransitionEnd,transitionend,oTransitionEnd,msTransitionEnd,KhtmlTransitionEnd".split(",");
for(h=0;h<l.length;h++)if(l[h]in j.style){this.transitionstyle=l[h];this.prefixstyle=p[h];this.transitionend=u[h];break}this.hastransition=this.transitionstyle}else this.transitionend=this.hastransition=this.transitionstyle=this.hastranslate3d=this.hastransform=this.trstyle=!1;this.cursorgrabvalue="";if(b.opt.grabcursorenabled&&b.opt.touchbehavior)this.cursorgrabvalue=function(){if(!b.ischrome&&(!b.isie||b.isie9))for(var c=["grab","-moz-grab","-webkit-grab"],g=0;g<c.length;g++){var d=c[g];j.style.cursor=
d;if(j.style.cursor==d)return d}return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}();j=null;this.ishwscroll=b.hastransform&&b.opt.hwacceleration&&b.haswrapper;this.css=function(c,g){for(var d in g)b.saved.css.push([c,d,c.css(d)]),c.css(d,g[d])};this.scrollTop=function(c){return"undefined"==typeof c?b.getScrollTop():b.setScrollTop(c)};this.ishwscroll?(b.doc.translate={x:0,y:0},this.getScrollTop=function(){return b.doc.translate.y},this.notifyScrollEvent=document.createEvent?
function(b){var g=document.createEvent("UIEvents");g.initUIEvent("scroll",!1,!0,window,1);b.dispatchEvent(g)}:document.fireEvent?function(b){var g=document.createEventObject();b.fireEvent("onscroll");g.cancelBubble=!0}:function(){},this.setScrollTop=this.hastranslate3d?function(c,g){b.doc.css(b.trstyle,"translate3d(0px,"+-1*c+"px,0px)");b.doc.translate.y=c;g||b.notifyScrollEvent(b.win[0])}:function(c,g){b.doc.css(b.trstyle,"translate(0px,"+-1*c+"px)");b.doc.translate.y=c;g||b.notifyScrollEvent(b.win[0])}):
(this.getScrollTop=function(){return b.docscroll.scrollTop()},this.setScrollTop=function(c){return b.docscroll.scrollTop(c)});this.getTarget=function(b){return!b?!1:b.target?b.target:b.srcElement?b.srcElement:!1};this.hasParent=function(b,g){if(!b)return!1;for(var d=b.target||b.srcElement||b||!1;d&&d.id!=g;)d=d.parentNode||!1;return!1!==d};this.updateScrollBar=function(c){if(b.ishwscroll)b.rail.css({height:b.win.innerHeight()});else{var d=b.win.offset();d.top+=2;var e=(b.win.outerWidth()-b.win.innerWidth())/
2;d.left+=b.win.innerWidth()+e-b.rail.width-1;if(e=b.opt.railoffset)e.top&&(d.top+=e.top),e.left&&(d.left+=e.left);b.rail.css({top:d.top,left:d.left,height:c?c.h:b.win.innerHeight()});b.zoom&&b.zoom.css({top:d.top+1,left:d.left-20})}};var q=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||!1,s=window.cancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||
window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||!1;b.hasanimationframe=q;b.hascancelanimationframe=s;b.hasanimationframe?b.hascancelanimationframe||(s=function(){b.cancelAnimationFrame=!0}):(q=function(b){return setTimeout(b,1E3/60)},s=clearInterval);this.init=function(){b.saved.css=[];if(!b.ispage||!b.cantouch&&!b.isieold){b.ispage?b.css(b.doc,{"overflow-y":"hidden"}):b.css(b.docscroll,{"overflow-y":"hidden"});b.ispage&&b.isie7&&"BODY"==b.win[0].nodeName&&b.css(f("html"),
{"overflow-y":"hidden"});var c=f(document.createElement("div"));c.css({position:"relative",top:0,"float":"right",width:b.opt.cursorwidth,height:"0px","background-color":b.opt.cursorcolor,border:b.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.opt.cursorborderradius,"-moz-border-radius":b.opt.cursorborderradius,"border-radius":b.opt.cursorborderradius});c.hborder=parseFloat(c.outerHeight()-c.innerHeight());b.cursor=c;var d=f(document.createElement("div"));d.attr("id",b.id);
d.width=1+Math.max(parseFloat(b.opt.cursorwidth),c.outerWidth());d.css({"padding-left":"0px","padding-right":"1px",width:d.width+"px",zIndex:b.ispage?b.opt.zindex:b.opt.zindex+2,background:b.opt.background});d.append(c);b.rail=d;c=!1;if(b.opt.boxzoom&&!b.ispage&&!b.isieold&&(c=document.createElement("div"),b.bind(c,"click",b.doZoom),b.zoom=f(c),b.zoom.css({cursor:"pointer","z-index":b.opt.zindex,backgroundImage:"url("+o+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),b.opt.dblclickzoom&&
b.bind(b.win,"dblclick",b.doZoom),b.cantouch&&b.opt.gesturezoom))b.ongesturezoom=function(c){1.5<c.scale&&b.doZoomIn(c);0.8>c.scale&&b.doZoomOut(c);return b.cancelEvent(c)},b.bind(b.win,"gestureend",b.ongesturezoom);b.ispage?(d.css({position:"fixed",top:"0px",right:"0px",height:"100%"}),f("body").append(d)):b.ishwscroll?("static"==b.win.css("position")&&b.css(b.win,{position:"relative"}),b.zoom&&(b.zoom.css({position:"absolute",top:1,right:0,"margin-right":d.width+4}),b.win.append(b.zoom)),d.css({position:"absolute",
top:0,right:0}),b.win.append(d)):(d.css({position:"absolute"}),b.zoom&&b.zoom.css({position:"absolute"}),b.updateScrollBar(),f("body").append(d),b.zoom&&f("body").append(b.zoom));if(!1===b.opt.autohidemode)b.autohidedom=!1;else if(!0===b.opt.autohidemode)b.autohidedom=b.rail;else if("cursor"==b.opt.autohidemode)b.autohidedom=b.cursor;b.bind(window,"resize",b.onResize);b.bind(window,"orientationchange",b.onResize);!b.ispage&&!b.haswrapper&&b.bind(b.win,b.isie&&!b.isie9?"propertychange":"DOMAttrModified",
b.onAttributeChange);!b.ispage&&b.opt.boxzoom&&b.bind(window,"resize",b.resizeZoom);b.istextarea&&b.bind(b.win,"mouseup",b.onResize);b.onResize();b.cantouch||b.opt.touchbehavior?(b.scrollmom={y:new r(b)},b.onmousedown=function(c){if(!b.locked&&(b.cancelScroll(),b.rail.drag={x:c.screenX,y:c.screenY,sx:b.scroll.x,sy:b.scroll.y,st:b.getScrollTop()},b.hasmoving=!1,b.scrollmom.y.reset(c.screenY),!b.cantouch))return b.cancelEvent(c)},b.onmouseup=function(c){if(b.rail.drag&&(b.scrollmom.y.doMomentum(),b.rail.drag=
!1,b.hasmoving))return b.hasmoving=!1,b.cancelEvent(c)},b.onmousemove=function(c){if(b.rail.drag){b.hasmoving=!0;var d=c.screenY,g=b.rail.drag.st-(c.screenY-b.rail.drag.y);if(b.ishwscroll)0>g?(g=Math.round(g/2),d=0):g>b.page.maxh&&(g=b.page.maxh+Math.round((g-b.page.maxh)/2),d=0);else if(0>g&&(g=0),g>b.page.maxh)g=b.page.maxh;b.showCursor(g);b.prepareTransition&&b.prepareTransition(0);b.setScrollTop(g);b.scrollmom.y.update(d);return b.cancelEvent(c)}},b.cursorgrabvalue&&(b.css(b.win,{cursor:b.cursorgrabvalue}),
b.css(b.rail,{cursor:b.cursorgrabvalue}))):(b.onmousedown=function(c){if(b.locked)return b.cancelEvent(c);b.cancelScroll();b.rail.drag={x:c.screenX,y:c.screenY,sx:b.scroll.x,sy:b.scroll.y};return b.cancelEvent(c)},b.onmouseup=function(c){if(b.rail.drag)return b.rail.drag=!1,b.cancelEvent(c)},b.onmousemove=function(c){if(b.rail.drag){b.scroll.y=b.rail.drag.sy+(c.screenY-b.rail.drag.y);if(0>b.scroll.y)b.scroll.y=0;var d=b.scrollvaluemax;if(b.scroll.y>d)b.scroll.y=d;b.showCursor();b.cursorfreezed=!0;
b.doScroll(Math.round(b.scroll.y*b.scrollratio.y));return b.cancelEvent(c)}b.checkarea=!0});(b.cantouch||b.opt.touchbehavior)&&b.bind(b.win,"mousedown",b.onmousedown);b.bind(b.win,"mouseup",b.onmouseup);b.bind(b.cursor,"mousedown",b.onmousedown);b.bind(b.cursor,"mouseup",function(c){b.rail.drag=!1;b.hasmoving=!1;b.hideCursor();return b.cancelEvent(c)});b.bind(document,"mouseup",b.onmouseup);b.bind(document,"mousemove",b.onmousemove);b.cantouch||(b.rail.mouseenter(function(){b.showCursor();b.rail.active=
!0}),b.rail.mouseleave(function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}),b.isiframe||b.bind(b.isie&&b.ispage?document:b.docscroll,"mousewheel",b.onmousewheel),b.bind(b.rail,"mousewheel",b.onmousewheel));b.zoom&&(b.zoom.mouseenter(function(){b.showCursor();b.rail.active=!0}),b.zoom.mouseleave(function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}));!b.ispage&&!b.cantouch&&(b.win.attr("tabindex")||b.win.attr({tabindex:m++}),b.win.focus(function(c){n=b.getTarget(c).id||!0;b.hasfocus=!0;b.noticeCursor()}),
b.win.blur(function(){n=!1;b.hasfocus=!1}),b.win.mouseenter(function(c){i=b.getTarget(c).id||!0;b.hasmousefocus=!0;b.noticeCursor()}),b.win.mouseleave(function(){i=!1;b.hasmousefocus=!1}));b.onkeypress=function(c){var c=c?c:window.e,d=b.getTarget(c);if(d&&/INPUT|TEXTAREA|SELECT/.test(d.nodeName)&&(!d.getAttribute("type")&&!d.type||!/submit|button|cancel/i.tp))return!0;if(b.hasfocus||b.hasmousefocus&&!n||b.ispage&&!n&&!i){d=c.keyCode;if(b.locked&&27!=d)return b.cancelEvent(c);var g=!1;switch(d){case 38:case 63233:b.doScrollBy(72);
g=!0;break;case 40:case 63235:b.doScrollBy(-72);g=!0;break;case 33:case 63276:b.doScrollBy(b.view.h);g=!0;break;case 34:case 63277:b.doScrollBy(-b.view.h);g=!0;break;case 36:case 63273:b.doScrollTo(0);g=!0;break;case 35:case 63275:b.doScrollTo(b.page.maxh);g=!0;break;case 27:b.zoomactive&&(b.doZoom(),g=!0)}if(g)return b.cancelEvent(c)}};b.bind(document,b.isopera?"keypress":"keydown",b.onkeypress)}if("IFRAME"==this.doc[0].nodeName){var e=function(){b.iframexd=!1;try{var c="contentDocument"in this?
this.contentDocument:this.contentWindow.document}catch(d){b.iframexd=!0,c=!1}if(b.iframexd)return!0;if(b.isiframe)b.docscroll=f(c),b.iframe={html:b.doc.contents().find("html")[0],body:b.doc.contents().find("body")[0]};if(b.opt.iframeautoresize&&!b.isiframe){b.win.scrollTop(0);b.doc.height("");var g=Math.max(c.getElementsByTagName("html")[0].scrollHeight,c.body.scrollHeight);b.doc.height(g)}b.onResize();b.isie7&&b.css(f(c).find("html"),{"overflow-y":"hidden"});b.css(f(c.body),{"overflow-y":"hidden"});
"contentWindow"in this?b.bind(this.contentWindow,"scroll",b.onscroll):b.bind(c,"scroll",b.onscroll);b.bind(c,"mouseup",b.onmouseup);b.bind(c,"mousewheel",b.onmousewheel);b.bind(c,b.isopera?"keypress":"keydown",b.onkeypress);if(b.cantouch||b.opt.touchbehavior)b.bind(c,"mousedown",b.onmousedown),b.cursorgrabvalue&&b.css(f(c),{cursor:b.cursorgrabvalue});b.bind(c,"mousemove",b.onmousemove);b.zoom&&(b.opt.dblclickzoom&&b.bind(c,"dblclick",b.doZoom),b.ongesturezoom&&b.bind(c,"gestureend",b.ongesturezoom))};
this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){e.call(b.doc[0],!1)},500);b.bind(this.doc,"load",e)}};this.showCursor=function(c){if(b.cursortimeout)clearTimeout(b.cursortimeout),b.cursortimeout=0;if(b.rail){b.autohidedom&&b.autohidedom.stop().css({opacity:b.opt.cursoropacitymax});if("undefined"!=typeof c)b.scroll.y=Math.round(1*c/b.scrollratio.y);b.cursor.css({height:b.cursorheight,top:b.scroll.y});b.zoom&&b.zoom.stop().css({opacity:b.opt.cursoropacitymax})}};this.hideCursor=
function(c){if(!b.cursortimeout&&b.rail&&b.autohidedom)b.cursortimeout=setTimeout(function(){b.rail.active||(b.autohidedom.stop().animate({opacity:b.opt.cursoropacitymin}),b.zoom&&b.zoom.stop().animate({opacity:b.opt.cursoropacitymin}));b.cursortimeout=0},c||400)};this.noticeCursor=function(c){b.showCursor();b.hideCursor(c)};this.getContentSize=function(){return b.ispage?{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}:
b.haswrapper?{w:b.doc.outerWidth()+parseInt(b.win.css("paddingLeft"))+parseInt(b.win.css("paddingRight")),h:b.doc.outerHeight()+parseInt(b.win.css("paddingTop"))+parseInt(b.win.css("paddingBottom"))}:b.iframe?{w:Math.max(b.iframe.html.scrollWidth,b.iframe.body.scrollWidth),h:Math.max(b.iframe.html.scrollHeight,b.iframe.body.scrollHeight)}:{w:b.docscroll[0].scrollWidth,h:b.docscroll[0].scrollHeight}};this.onAttributeChange=function(c){if(c&&c.target){if(c.target!==b.win[0]&&c.target!==b.doc[0])return!0;
if((c="attrChange"in c?c.attrName:"propertyName"in c?c.propertyName:!1)&&/width|height|style|block/i.test(c)){if(b.lastattributechange)b.lastattributechange=clearTimeout(b.lastattributechange);b.lastattributechange=setTimeout(function(){b.lastattributechange=0;b.onResize()},60)}}};this.resize=this.onResize=function(){if(!b.haswrapper&&!b.ispage){var c="none"!=b.win.css("display");c&&!b.visibility&&b.show();!c&&b.visibility&&b.hide();if(!b.visibility)return!1}b.view={w:b.ispage?b.win.width():b.win.innerWidth(),
h:b.ispage?b.win.height():b.win.innerHeight()};b.page=b.getContentSize();b.page.maxh=Math.max(0,b.page.h-b.view.h);if(0==b.page.maxh)return b.hide(),b.scrollvaluemax=0,b.scroll.y=0,b.scrollratio={x:0,y:0},b.cursorheight=0,b.locked=!0,b.setScrollTop(0),!1;b.visibility||b.show();b.locked=!1;b.istextarea&&b.win.css("resize")&&"none"!=b.win.css("resize")&&(b.view.h-=20);b.ispage||b.updateScrollBar(b.view);b.cursorheight=Math.min(b.view.h,Math.round(b.view.h*(b.view.h/b.page.h)));b.cursorheight=Math.max(b.opt.cursorminheight,
b.cursorheight);b.scrollvaluemax=b.view.h-b.cursorheight-b.cursor.hborder;b.scrollratio={x:0,y:b.page.maxh/b.scrollvaluemax};b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor();return b};this._bind=function(c,d,e,f){b.events.push({e:c,n:d,f:e});c.addEventListener?c.addEventListener(d,e,f||!1):c.attachEvent?c.attachEvent("on"+d,e):c["on"+d]=e};this.bind=function(c,d,e,f){var h="jquery"in c?c[0]:c;h.addEventListener?(b.cantouch&&/mouseup|mousedown|mousemove/.test(d)&&b._bind(h,
"mousedown"==d?"touchstart":"mouseup"==d?"touchend":"touchmove",function(b){if(2>b.touches.length){var c=0<b.touches.length?b.touches[0]:b;c.original=b;e.call(this,c)}},f||!1),b._bind(h,d,e,f||!1),"mousewheel"==d&&b._bind(h,"DOMMouseScroll",e,f||!1),b.cantouch&&"mouseup"==d&&b._bind(h,"touchcancel",e,f||!1)):b._bind(h,d,function(c){if(c=c||window.event||!1){if(c.srcElement)c.target=c.srcElement;if("screenY"in c)c.pageX=c.screenX,c.pageY=c.screenY}return!1===e.call(h,c)||!1===f?b.cancelEvent(c):!0})};
this._unbind=function(b,d,e){b.removeEventListener?b.removeEventListener(d,e,!1):b.detachEvent?b.detachEvent("on"+d,e):b["on"+d]=!1};this.unbindAll=function(){for(var c=0;c<b.events.length;c++){var d=b.events[c];b._unbind(d.e,d.n,d.f)}};this.cancelEvent=function(c){c=b.cantouch?c.original?c.original:c||!1:c?c:window.event||!1;if(!c)return!1;c.stopPropagation&&c.stopPropagation();c.preventDefault&&c.preventDefault();c.cancelBubble=!0;c.cancel=!0;return c.returnValue=!1};this.show=function(){b.visibility=
!0;b.rail.css("display","block");return b};this.hide=function(){b.visibility=!1;b.rail.css("display","none");return b};this.remove=function(){b.doZoomOut();b.unbindAll();b.events=[];b.rail.remove();b.zoom&&b.zoom.remove();b.cursor=!1;b.rail=!1;b.zoom=!1;for(var c=0;c<b.saved.css.length;c++){var d=b.saved.css[c];d[0].css(d[1],"undefined"==typeof d[2]?"":d[2])}b.saved=!1;b.me.data("__nicescroll","");return b};this.isScrollable=function(b){for(b=b.target?b.target:b;b&&b.nodeName&&!/BODY|HTML/.test(b.nodeName);){var d=
f(b);if(/scroll|auto/.test(d.css("overflowY")||d.css("overflow")||""))return b.clientHeight!=b.scrollHeight;b=b.parentNode?b.parentNode:!1}return!1};this.onmousewheel=function(c){if(b.opt.preservenativescrolling&&b.checkarea)b.checkarea=!1,b.nativescrollingarea=b.isScrollable(c);if(b.nativescrollingarea)return!0;if(b.locked)return b.cancelEvent(c);if(b.rail.drag)return b.cancelEvent(c);var d=0;if(d=c.detail?-1*c.detail:c.wheelDelta/40)b.scrollmom&&b.scrollmom.y.stop(),b.doScrollBy(d*b.opt.mousescrollstep);
return b.cancelEvent(c)};this.stop=function(){b.cancelScroll();b.scrollmon&&b.scrollmon.stop();b.cursorfreezed=!1;b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor();return b};b.ishwscroll&&b.hastransition&&b.opt.usetransition?(this.prepareTransition=function(c){var d=Math.round(10*b.opt.scrollspeed),c=Math.min(d,Math.round(c/20*b.opt.scrollspeed)),c=20<c?b.prefixstyle+"transform "+c+"ms ease-out 0s":"";if(!b.lasttransitionstyle||b.lasttransitionstyle!=c)b.lasttransitionstyle=
c,b.doc.css(b.transitionstyle,c)},this.doScroll=function(c){var d=b.getScrollTop();if(0>c&&0>=d)return b.noticeCursor();if(c>b.page.maxh&&d>=b.page.maxh)return b.noticeCursor();b.newscrolly=c;if(b.timer)return!1;if(!b.scrollendtrapped)b.scrollendtrapped=!0,b.bind(b.doc,b.transitionend,b.onScrollEnd,!1);b.timer=setTimeout(function(){var c=b.getScrollTop(),c=Math.abs(c-b.newscrolly);b.prepareTransition(c);b.timer=setTimeout(function(){if(0>b.newscrolly&&!b.opt.bouncescroll)b.newscrolly=0;else if(b.newscrolly>
b.page.maxh&&!b.opt.bouncescroll)b.newscrolly=b.page.maxh;b.newscrolly==b.getScrollTop()?(b.timer=0,b.onScrollEnd()):(b.setScrollTop(b.newscrolly),b.timer=0)},15)},b.opt.scrollspeed);b.noticeCursor()},this.cancelScroll=function(){b.scrollendtrapped=!1;b._unbind(b.doc,b.transitionend,b.onScrollEnd);var c=b.getScrollTop();b.prepareTransition(0);b.setScrollTop(c);b.noticeCursor();return b},this.onScrollEnd=function(){b.scrollendtrapped=!1;b._unbind(b.doc,b.transitionend,b.onScrollEnd);var c=b.getScrollTop();
0>c?b.doScroll(0):c>b.page.maxh&&b.doScroll(b.page.maxh)}):(this.doScroll=function(c){function d(){if(b.cancelAnimationFrame)return!0;h=(new Date).getTime();if(h<j)return b.timer=q(d)||1;j=Math.floor(h+i);h=0;var c=b.getScrollTop(),e=0;if(b.newspeedy)if(c+=b.newspeedy.v,e=b.newspeedy.v,0<b.newspeedy.v){if(c>=b.newspeedy.x)b.newspeedy=!1}else{if(c<=b.newspeedy.x)b.newspeedy=!1}else e=b.newscrolly-b.getScrollTop(),c=(e=0<e?Math.ceil(e*f):Math.floor(e*f))?b.getScrollTop()+e:b.newscrolly;if(0>e&&c<b.newscrolly||
0<e&&c>b.newscrolly)c=b.newscrolly;b.setScrollTop(c);c==b.newscrolly?(b.timer=0,b.cursorfreezed=!1,0>c?b.doScroll(0):c>b.page.maxh&&b.doScroll(b.page.maxh)):b.timer=q(d)||1}var e=b.getScrollTop();b.newscrolly=c;e=c-e;b.newspeedy={x:c-Math.round(e/4),v:Math.round(e/12)};if(5>Math.abs(b.newspeedy.v))b.newspeedy={x:c-Math.round(e/4),v:Math.round(3*(e/4))};if(0==b.newspeedy.v)b.newspeedy=!1;if(!b.bouncescroll)if(0>b.newscrolly){if(b.newspeedy)b.newspeedy.x=0;b.newscrolly=0}else if(b.newscrolly>b.page.maxh){if(b.newspeedy)b.newspeedy.x=
b.page.maxh;b.newscrolly=b.page.maxh}if(!b.timer){var f=0.25,h=0,j=0,i=b.opt.scrollspeed/2;b.cancelAnimationFrame=!1;b.timer=q(d)||1;b.noticeCursor()}},this.cancelScroll=function(){b.timer&&s(b.timer);b.timer=0;return b});this.doScrollBy=function(c,d){var e=0,e=d?Math.floor((b.scroll.y-c)*b.scrollratio.y):(b.timer?b.newscrolly:b.getScrollTop())-c;if(b.bouncescroll){var f=Math.round(b.view.h/2);e<-f?e=-f:e>b.page.maxh+f&&(e=b.page.maxh+f)}b.cursorfreezed=!1;b.doScroll(e)};this.doScrollTo=function(c,
d){d&&Math.round(c*b.scrollratio.y);b.cursorfreezed=!1;b.doScroll(c)};b.onscroll=function(){var c=(new Date).getTime();if(!b.lastcontentcheck||b.lastcontentcheck<c)if(b.lastcontentcheck=c+500,b.getContentSize().h!=b.page.h)b.onResize();if(!b.rail.drag){if(!b.cursorfreezed)b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor()}};b.bind(b.docscroll,"scroll",b.onscroll);this.doZoomIn=function(c){if(!b.zoomactive){b.zoomactive=!0;b.zoomrestore={style:{}};var d="position,top,left,zIndex,backgroundColor,marginTop,marginBottom,marginLeft,marginRight".split(","),
e=b.win[0].style,h;for(h in d){var j=d[h];b.zoomrestore.style[j]="undefined"!=typeof e[j]?e[j]:""}b.zoomrestore.style.width=b.win.css("width");b.zoomrestore.style.height=b.win.css("height");b.zoomrestore.padding={w:b.win.outerWidth()-b.win.width(),h:b.win.outerHeight()-b.win.height()};if(b.isios4)b.zoomrestore.scrollTop=f(window).scrollTop(),f(window).scrollTop(0);b.win.css({position:b.isios4?"absolute":"fixed",top:0,left:0,"z-index":b.opt.zindex+100,margin:"0px"});d=b.win.css("backgroundColor");
(""==d||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(d))&&b.win.css("backgroundColor","#fff");b.rail.css({"z-index":b.opt.zindex+110});b.zoom.css({"z-index":b.opt.zindex+112});b.zoom.css("backgroundPosition","0px -18px");b.resizeZoom();return b.cancelEvent(c)}};this.doZoomOut=function(c){if(b.zoomactive)return b.zoomactive=!1,b.win.css("margin",""),b.win.css(b.zoomrestore.style),b.isios4&&f(window).scrollTop(b.zoomrestore.scrollTop),b.rail.css({"z-index":b.ispage?b.opt.zindex:b.opt.zindex+
2}),b.zoom.css({"z-index":b.opt.zindex}),b.zoomrestore=!1,b.zoom.css("backgroundPosition","0px 0px"),b.onResize(),b.cancelEvent(c)};this.doZoom=function(c){return b.zoomactive?b.doZoomOut(c):b.doZoomIn(c)};this.resizeZoom=function(){if(b.zoomactive){var c=b.getScrollTop();b.win.css({width:f(window).width()-b.zoomrestore.padding.w+"px",height:f(window).height()-b.zoomrestore.padding.h+"px"});b.onResize();b.setScrollTop(Math.min(b.page.maxh,c))}};this.init()},r=function(e){var d=this;this.nc=e;this.lasttime=
this.speedy=this.lasty=0;this.snapy=!1;this.timer=this.demuly=0;this.time=function(){return(new Date).getTime()};this.reset=function(b){d.stop();d.lasttime=d.time();d.speedy=0;d.lasty=b};this.update=function(b){d.lasttime=d.time();var f=b-d.lasty,j=e.getScrollTop()+f;d.snapy=0>j||j>d.nc.page.maxh;d.speedy=f;d.lasty=b};this.stop=function(){if(d.timer)clearTimeout(d.timer),d.timer=0};this.doSnapy=function(b){0>b?d.nc.doScrollTo(0,!0):b>d.nc.page.maxh&&d.nc.doScrollTo(d.nc.page.maxh,!0)};this.doMomentum=
function(){var b=d.lasttime,e=d.time();d.speedy=Math.min(60,d.speedy);if(d.speedy&&b&&50>=e-b&&d.speedy){var f=e-b,i=d.nc.page.maxh;d.demuly=0;var l=function(){var b=Math.floor(d.nc.getScrollTop()-d.speedy*(1-d.demuly));d.demuly=0>b||b>i?d.demuly+0.08:d.demuly+0.01;d.nc.setScrollTop(b);d.nc.showCursor(b);1>d.demuly?d.timer=setTimeout(l,f):(d.timer=0,d.nc.hideCursor(),d.doSnapy(b))};l()}else d.snapy&&d.doSnapy(d.nc.getScrollTop())}},p=jQuery.fn.scrollTop;f.cssHooks.scrollTop={get:function(e){var d=
f.data(e,"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollTop():p.call(e)},set:function(e,d){var b=f.data(e,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(d)):p.call(e,d);return this}};f.fx.step.scrollTop=function(e){if(""==e.start)e.start=f.cssHooks.scrollTop.get(e.elem);f.cssHooks.scrollTop.set(e.elem,e.now+e.unit)};jQuery.fn.scrollTop=function(e){if("undefined"==typeof e){var d=f.data(this[0],"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollTop():p.call(this)}return this.each(function(){var b=
f.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(e)):p.call(f(this),e)})};var t=function(e){var d=this;this.length=0;this.name="nicescrollarray";this.each=function(b){for(var e=0;e<d.length;e++)b.call(d[e]);return d};this.push=function(b){d[d.length]=b;d.length++};this.eq=function(b){return d[b]};if(e)for(a=0;a<e.length;a++){var b=f.data(e[a],"__nicescroll")||!1;b&&(this[this.length]=b,this.length++)}return this};(function(e,d,b){for(var f=0;f<d.length;f++)b(e,d[f])})(t.prototype,
"show,hide,onResize,resize,remove,stop".split(","),function(e,d){e[d]=function(){return this.each(function(){this[d].call()})}});jQuery.fn.getNiceScroll=function(e){return"undefined"==typeof e?new t(this):f.data(this[e],"__nicescroll")||!1};jQuery.extend(jQuery.expr[":"],{nicescroll:function(e){return f.data(e,"__nicescroll")?!0:!1}});f.fn.niceScroll=function(e,d){"undefined"==typeof d&&"object"==typeof e&&!("jquery"in e)&&(d=e,e=!1);var b=new t;"undefined"==typeof d&&(d={});if(e)d.doc=f(e),d.win=
f(this);var h=!("doc"in d);if(!h&&!("win"in d))d.win=f(this);this.each(function(){var e=f(this).data("__nicescroll")||!1;if(!e)d.doc=h?f(this):d.doc,e=new l(d,f(this)),f(this).data("__nicescroll",e);b.push(e)});return 1==b.length?b[0]:b}})(jQuery);$(document).ready(function(){$("html").niceScroll();$("textarea").niceScroll()});
(function(f){var n=[];f.loadImages=function(i,m){i instanceof Array||(i=[i]);for(var k=i.length,o=0,l=k;l--;){var r=document.createElement("img");r.onload=function(){o++;o>=k&&f.isFunction(m)&&m()};r.src=i[l];n.push(r)}}})(jQuery);
eval(function(f,n,i,m,k,o){k=function(f){return(62>f?"":k(parseInt(f/62)))+(35<(f%=62)?String.fromCharCode(f+29):f.toString(36))};if(0=="0".replace(0,k)){for(;i--;)o[k(i)]=m[i];m=[function(f){return o[f]||f}];k=function(){return"([237-9n-zA-Z]|1\\w)"};i=1}for(;i--;)m[i]&&(f=f.replace(RegExp("\\b"+k(i)+"\\b","g"),m[i]));return f}("(s(m){3.fn.pngFix=s(c){c=3.extend({P:'blank.gif'},c);8 e=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 5.5\")!=-1);8 f=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 6.0\")!=-1);p(3.browser.msie&&(e||f)){3(2).B(\"img[n$=.C]\").D(s(){3(2).7('q',3(2).q());3(2).7('r',3(2).r());8 a='';8 b='';8 g=(3(2).7('E'))?'E=\"'+3(2).7('E')+'\" ':'';8 h=(3(2).7('F'))?'F=\"'+3(2).7('F')+'\" ':'';8 i=(3(2).7('G'))?'G=\"'+3(2).7('G')+'\" ':'';8 j=(3(2).7('H'))?'H=\"'+3(2).7('H')+'\" ':'';8 k=(3(2).7('V'))?'float:'+3(2).7('V')+';':'';8 d=(3(2).parent().7('href'))?'cursor:hand;':'';p(2.9.v){a+='v:'+2.9.v+';';2.9.v=''}p(2.9.w){a+='w:'+2.9.w+';';2.9.w=''}p(2.9.x){a+='x:'+2.9.x+';';2.9.x=''}8 l=(2.9.cssText);b+='<y '+g+h+i+j;b+='9=\"W:X;white-space:pre-line;Y:Z-10;I:transparent;'+k+d;b+='q:'+3(2).q()+'z;r:'+3(2).r()+'z;';b+='J:K:L.t.M(n=\\''+3(2).7('n')+'\\', N=\\'O\\');';b+=l+'\"></y>';p(a!=''){b='<y 9=\"W:X;Y:Z-10;'+a+d+'q:'+3(2).q()+'z;r:'+3(2).r()+'z;\">'+b+'</y>'}3(2).hide();3(2).after(b)});3(2).B(\"*\").D(s(){8 a=3(2).11('I-12');p(a.A(\".C\")!=-1){8 b=a.13('url(\"')[1].13('\")')[0];3(2).11('I-12','none');3(2).14(0).15.J=\"K:L.t.M(n='\"+b+\"',N='O')\"}});3(2).B(\"input[n$=.C]\").D(s(){8 a=3(2).7('n');3(2).14(0).15.J='K:L.t.M(n=\\''+a+'\\', N=\\'O\\');';3(2).7('n',c.P)})}return 3}})(3);",
[],68,"||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle".split("|"),0,{}));
