/* jquery.nicescroll
-- versione 2.2.0
-- copyright 2011 InuYaksa*2011
-- licensed under the MIT
--
-- http://areaaperta.com/nicescroll
-- https://github.com/inuyaksa/jquery.nicescroll
--
*/
(function(e){var k=false,l=false,n=function(){var e=document.getElementsByTagName("script"),e=e[e.length-1].src.split("?")[0];return e.split("/").length>0?e.split("/").slice(0,-1).join("/")+"/":""}(),m=function(f){var b=this;this.opt={doc:e("body"),win:false,zindex:9E3,cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:48,touchbehavior:false,hwacceleration:true,usetransition:true,boxzoom:false,
dblclickzoom:true,gesturezoom:true,grabcursorenabled:true,autohidemode:true,background:""};if(f)for(var g in b.opt)f[g]!==void 0&&(b.opt[g]=f[g]);this.id=b.opt.doc[0].id||"";this.doc=b.opt.doc;this.ispage=b.doc[0].nodeName=="BODY"||b.doc[0].nodeName=="HTML";this.haswrapper=b.opt.win!==false;this.win=b.opt.win||(this.ispage?e(window):this.doc);this.docscroll=this.ispage?e(window):this.win;this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME";this.istextarea=this.win[0].nodeName==
"TEXTAREA";if(this.doc[0].nodeName=="IFRAME"){var j=function(){var c="contentDocument"in this?this.contentDocument:this.contentWindow.document;if(b.isiframe)b.docscroll=e(c.body);b.onResize();e(c.body).css({"overflow-y":"hidden"});e(c).scroll(b.onscroll);e(c).mouseup(function(){b.rail.drag=false});b.bind(c,"mousewheel",b.onmousewheel);e(c).keydown(b.onkeypress);if(b.cantouch||b.opt.touchbehavior)b.cursorgrabvalue&&e(c).css({cursor:b.cursorgrabvalue}),b.bind(c,"mousedown",function(c){b.rail.drag={x:c.pageX,
y:c.pageY,sx:b.scroll.x,sy:b.scroll.y,st:b.getScrollTop()};return b.cancelEvent(c)}),b.bind(c,"mouseup",function(c){b.rail.drag=false;return b.cancelEvent(c)}),b.bind(c,"mousemove",function(c){if(b.rail.drag)return b.doScrollTo(b.rail.drag.st-(c.pageY-b.rail.drag.y),true),b.cancelEvent(c)});b.zoom&&(b.bind(c,"dblclick",b.doZoom),b.cantouch&&b.opt.gesturezoom&&b.bind(c,"gesturechange",function(c){c.scale>1.5&&b.doZoomIn(c);c.scale<0.8&&b.doZoomOut(c);return b.cancelEvent(c)}))};this.doc[0].readyState&&
this.doc[0].readyState=="complete"?setTimeout(function(){j.call(b.doc[0],false)},1E3):this.doc.load(j)}this.page=this.view=false;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;do this.id="ascrail"+Math.round(Math.random()*99999);while(document.getElementById(this.id));this.locked=this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.cursorfreezed=this.cursor=this.rail=false;var i=document.createElement("DIV");this.isopera="opera"in window;this.isieold=
(this.isie="all"in document&&"attachEvent"in i&&!this.isopera)&&!("msInterpolationMode"in i.style);this.isie7=this.isie&&(!("documentMode"in document)||document.documentMode==7);this.isie8=this.isie&&"documentMode"in document&&document.documentMode==8;this.isie9=this.isie&&"performance"in window&&document.documentMode>=9;this.ismozilla="MozAppearance"in i.style;(this.cantouch="ontouchstart"in document.documentElement)&&/iphone|ipad|ipod/i.test(navigator.platform)?(this.isios=true,this.isios4=!("seal"in
Object)):this.isios4=this.isios=false;if(b.opt.hwacceleration){if((this.trstyle=window.opera?"OTransform":document.all?"msTransform":i.style.webkitTransform!==void 0?"webkitTransform":i.style.MozTransform!==void 0?"MozTransform":false)&&i.style[this.trstyle]===void 0)this.trstyle=false;if(this.hastransform=this.trstyle!=false)i.style[this.trstyle]="translate3d(1px,2px,3px)",this.hastranslate3d=/translate3d/.test(i.style[this.trstyle]);this.transitionstyle=false;this.prefixstyle="";this.transitionend=
false;var f="transition,webkitTransition,MozTransition,OTransition,msTransition,KhtmlTransition".split(","),m=",-webkit-,-moz-,-o-,-ms-,-khtml-".split(","),o="transitionEnd,webkitTransitionEnd,transitionend,oTransitionEnd,msTransitionEnd,KhtmlTransitionEnd".split(",");for(g=0;g<f.length;g++)if(f[g]in i.style){this.transitionstyle=f[g];this.prefixstyle=m[g];this.transitionend=o[g];break}this.hastransition=this.transitionstyle}else this.hastransition=this.transitionstyle=this.hastransform=this.trstyle=
false;this.cursorgrabvalue="";if(b.opt.grabcursorenabled&&b.opt.touchbehavior)this.cursorgrabvalue=function(){if(!b.isie||b.isie9)for(var c=["grab","-moz-grab","-webkit-grab"],d=0;d<c.length;d++){var h=c[d];i.style.cursor=h;if(i.style.cursor==h)return h}return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}();i=null;this.ishwscroll=b.hastransform&&b.opt.hwacceleration&&b.haswrapper;this.scrollTop=function(c){return c===void 0?b.getScrollTop():b.setScrollTop(c)};this.ishwscroll?
(b.doc.translate={x:0,y:0},this.getScrollTop=function(){return b.doc.translate.y},this.setScrollTop=this.hastranslate3d?function(c,d){b.doc.css(b.trstyle,"translate3d(0px,"+c*-1+"px,0px)");b.doc.translate.y=c;if(!d)if(document.createEvent){var h=document.createEvent("UIEvents");h.initUIEvent("scroll",false,true,window,1);b.docscroll[0].dispatchEvent(h)}else h=document.createEventObject(),b.docscroll[0].fireEvent("onscroll"),h.cancelBubble=true}:function(c,d){b.doc.css(b.trstyle,"translate(0px,"+c*
-1+"px)");b.doc.translate.y=c;if(!d)if(document.createEvent){var h=document.createEvent("UIEvents");h.initUIEvent("scroll",false,true,window,1);b.docscroll[0].dispatchEvent(h)}else h=document.createEventObject(),b.docscroll[0].fireEvent("onscroll"),h.cancelBubble=true}):(this.getScrollTop=function(){return b.docscroll.scrollTop()},this.setScrollTop=function(c){return b.docscroll.scrollTop(c)});this.getTarget=function(b){return!b?false:b.target?b.target:b.srcElement?b.srcElement:false};this.hasParent=
function(b,d){if(!b)return false;for(var h=b.target||b.srcElement||b||false;h&&h.id!=d;)h=h.parentNode||false;return h!==false};this.updateScrollBar=function(c){if(b.ishwscroll)b.rail.css({height:b.win.innerHeight()});else{var d=b.win.offset();d.top+=2;d.left+=b.win.outerWidth()-b.rail.width-4;b.rail.css({position:"absolute",top:d.top,left:d.left,height:c?c.h:b.win.outerHeight()});b.zoom&&b.zoom.css({position:"absolute",top:d.top+1,left:d.left-18})}};this.init=function(){if(!b.ispage||!b.cantouch&&
!b.isieold){b.ispage?b.doc.css({"overflow-y":"hidden"}):b.docscroll.css({"overflow-y":"hidden"});b.ispage&&b.isie7&&e("html").css({"overflow-y":"hidden"});var c=e(document.createElement("div"));c.attr("id",b.id);c.width=4+parseFloat(b.opt.cursorwidth);c.css({"padding-left":"2px","padding-right":"1px",width:b.rail.width+"px",zIndex:b.ispage?b.opt.zindex:b.opt.zindex+2,background:b.opt.background});b.rail=c;var d=false;if(b.opt.boxzoom&&!b.ispage&&!b.isieold)d=document.createElement("div"),b.bind(d,
"click",b.doZoom),b.zoom=e(d),b.zoom.css({cursor:"pointer","z-index":b.opt.zindex,backgroundImage:"url("+n+"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.bind(b.win,"gesturechange",function(c){c.scale>1.5&&b.doZoomIn(c);c.scale<0.8&&b.doZoomOut(c);return b.cancelEvent(c)});b.ispage?(c.css({position:"fixed",top:"0px",right:"0px",height:"100%"}),b.doc.append(c)):b.ishwscroll?(b.win.css("position")==
"static"&&b.win.css("position","relative"),b.zoom&&(b.zoom.css({position:"absolute",top:1,right:0,"margin-right":c.width+2}),b.win.append(b.zoom)),c.css({position:"absolute",top:0,right:0}),b.win.append(c)):(b.updateScrollBar(),e("body").append(c),b.zoom&&e("body").append(b.zoom));c=e(document.createElement("div"));c.css({cursor:"pointer",position:"relative",top:0,left:0,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});b.cursor=c;b.rail.append(c);if(b.opt.autohidemode===false)b.autohidedom=false;else if(b.opt.autohidemode===true)b.autohidedom=b.rail;else if(b.opt.autohidemode=="cursor")b.autohidedom=b.cursor;e(window).resize(b.onResize);!b.ispage&&!b.haswrapper&&b.bind(b.win,b.isie&&!b.isie9?"propertychange":"DOMAttrModified",b.onAttributeChange);!b.ispage&&b.opt.boxzoom&&e(window).resize(b.resizeZoom);b.istextarea&&b.win.mouseup(b.onResize);
b.onResize();b.cantouch||b.opt.touchbehavior?(b.bind(b.win,"mousedown",function(c){b.rail.drag={x:c.pageX,y:c.pageY,sx:b.scroll.x,sy:b.scroll.y,st:b.getScrollTop(),lx:c.pageX,ly:c.pageY,nx:c.pageX,ny:c.pageY,tt:(new Date).getTime(),lt:(new Date).getTime()};return b.cancelEvent(c)}),b.bind(b.win,"mouseup",function(c){b.doScrollMomentum(b.rail.drag);b.rail.drag=false;return b.cancelEvent(c)}),b.bind(b.rail,"mousedown",function(c){b.rail.drag={x:c.pageX,y:c.pageY,sx:b.scroll.x,sy:b.scroll.y,st:b.getScrollTop(),
lx:c.pageX,ly:c.pageY,nx:c.pageX,ny:c.pageY,tt:(new Date).getTime(),lt:(new Date).getTime()};return b.cancelEvent(c)}),b.bind(b.rail,"mouseup",function(c){b.rail.drag=false;return b.cancelEvent(c)}),b.bind(document,"mousemove",function(c){if(b.rail.drag){var d=c.pageY-b.rail.drag.y;b.rail.drag.ly=b.rail.drag.ny;b.rail.drag.ny=c.pageY;b.rail.drag.lt=(new Date).getTime();b.scroll.y=Math.round((b.rail.drag.st-d)*(1/b.scrollratio.y));if(b.scroll.y<0)b.scroll.y=0;if(b.scroll.y>b.scrollvaluemax)b.scroll.y=
b.scrollvaluemax;b.showCursor();b.doScrollTo(b.rail.drag.st-d,true);return b.cancelEvent(c)}}),b.cursorgrabvalue&&b.win.css({cursor:b.cursorgrabvalue})):(b.bind(b.rail,"mousedown",function(c){b.rail.drag={x:c.screenX,y:c.screenY,sx:b.scroll.x,sy:b.scroll.y};return b.cancelEvent(c)}),b.bind(b.rail,"mouseup",function(c){b.rail.drag=false;b.hideCursor();return b.cancelEvent(c)}),b.bind(document,"mousemove",function(c){if(b.rail.drag){b.scroll.y=b.rail.drag.sy+(c.screenY-b.rail.drag.y);if(b.scroll.y<
0)b.scroll.y=0;var d=b.scrollvaluemax;if(b.scroll.y>d)b.scroll.y=d;b.showCursor();b.cursorfreezed=true;b.doScroll(Math.round(b.scroll.y*b.scrollratio.y));return b.cancelEvent(c)}}));b.bind(document,"mouseup",function(){b.rail.drag=false;b.hideCursor()});b.cantouch||(b.rail.mouseenter(function(){b.showCursor();b.rail.active=true}),b.rail.mouseleave(function(){b.rail.active=false;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.ispage&&!b.cantouch&&(b.win.attr("tabindex")||b.win.attr({tabindex:(new Date).getTime()}),b.win.focus(function(c){k=b.getTarget(c).id||true;b.hasfocus=true;b.noticeCursor()}),b.win.blur(function(){k=false;b.hasfocus=false}),b.win.mouseenter(function(c){l=b.getTarget(c).id||true;b.hasmousefocus=true;b.noticeCursor()}),b.win.mouseleave(function(){l=false;b.hasmousefocus=false}));b.onkeypress=function(c){var c=c?c:window.e,d=b.getTarget(c);if(!d||!/(INPUT|TEXTAREA|SELECT)/.test(d.nodeName))if(b.hasfocus||
b.hasmousefocus&&!k||b.ispage&&!k&&!l){d=true;switch(c.keyCode){case 38:case 63233:b.doScrollBy(12);d=false;break;case 40:case 63235:b.doScrollBy(-12);d=false;break;case 33:case 63276:b.doScrollBy(b.view.h,true);d=false;break;case 34:case 63277:b.doScrollBy(-b.view.h,true);d=false;break;case 36:case 63273:b.doScrollTo(0,true);d=false;break;case 35:case 63275:b.doScrollTo(b.page.h,true);d=false;break;case 27:b.zoomactive&&(b.doZoom(),d=false)}if(!d)return b.cancelEvent(c)}};b.bind(document,b.isopera?
"keypress":"keydown",b.onkeypress)}};this.showCursor=function(){if(b.cursortimeout)clearTimeout(b.cursortimeout),b.cursortimeout=0;b.rail&&b.autohidedom&&(b.autohidedom.stop().css({opacity:b.opt.cursoropacitymax}),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||800)};this.noticeCursor=function(c){b.showCursor();b.hideCursor(c)};this.getContentSize=function(){var c=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"))}:{w:b.docscroll[0].scrollWidth,h:b.docscroll[0].scrollHeight};c.w-=1;c.h-=1;return c};this.onAttributeChange=function(c){if(c&&c.target){if(c.target!==b.win[0])return true;if(c.target!==b.doc[0])return true;if((c="attrChange"in c?c.attrName:"propertyName"in c?c.propertyName:false)&&/width|height|style/i.test(c)){if(b.lastattributechange)b.lastattributechange=clearTimeout(b.lastattributechange);b.lastattributechange=setTimeout(function(){b.lastattributechange=0;
b.onResize()},60)}}};this.onResize=function(){b.view={w:b.ispage?b.win.width():b.win.innerWidth(),h:b.ispage?b.win.height():b.win.innerHeight()};b.istextarea&&b.win.css("resize")&&b.win.css("resize")!="none"&&(b.view.h-=20);b.ispage||b.updateScrollBar(b.view);b.page=b.getContentSize();b.cursorheight=Math.min(b.view.h,Math.round(b.view.h*(b.view.h/b.page.h)));b.scrollvaluemax=b.view.h-b.cursorheight-2;b.scrollratio={x:0,y:(b.page.h-b.view.h)/b.scrollvaluemax};b.scroll.y=Math.round(b.getScrollTop()*
(1/b.scrollratio.y));b.noticeCursor()};this.bind=function(c,d,e,f){var g=c.length?c[0]:c;g.addEventListener?(b.cantouch&&/mouseup|mousedown|mousemove/.test(d)&&g.addEventListener(d=="mousedown"?"touchstart":d=="mouseup"?"touchend":"touchmove",function(b){if(b.touches.length<2){var c=b.touches.length>0?b.touches[0]:b;c.original=b;e.call(this,c)}},f||false),g.addEventListener(d,e,f||false),d=="mousewheel"&&g.addEventListener("DOMMouseScroll",e,f||false)):g.attachEvent?g.attachEvent("on"+d,function(c){if(c&&
!("pageY"in c)&&"screenY"in c)c.pageX=c.screenX,c.pageY=c.screenY;if(!e.call(g,c)||!f)return b.cancelEvent(c)}):g["on"+d]=function(c){if(!e.call(g,c)||!f)return b.cancelEvent(c)}};this.cancelEvent=function(c){c=b.cantouch?c?c.original:false:c?c:window.event||false;if(!c)return false;c.stopPropagation&&c.stopPropagation();c.preventDefault&&c.preventDefault();c.cancelBubble=true;c.cancel=true;return c.returnValue=false};this.onmousewheel=function(c){c=c?c:window.event;if(b.rail.drag)return b.cancelEvent(c);
var d=0;(d=c.detail?c.detail*-1:c.wheelDelta/40)&&b.doScrollBy(d*b.opt.mousescrollstep,true);return b.cancelEvent(c)};this.stop=function(){b.timer&&clearInterval(b.timer);b.timer=0;b.cursorfreezed=false;b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor()};b.ishwscroll&&b.hastransition&&b.opt.usetransition?(this.prepareTransition=function(c){var d=Math.round(b.opt.scrollspeed*10),c=Math.min(d,Math.round(c/20*b.opt.scrollspeed)),c=c>20?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){b.newscrolly=c;if(!b.timer)b.timer=setTimeout(function(){var c=b.getScrollTop();b.prepareTransition(c>b.newscrolly?c-b.newscrolly:b.newscrolly-c);b.setScrollTop(b.newscrolly);b.timer=0},b.opt.scrollspeed),b.noticeCursor()}):this.doScroll=function(c){b.newscrolly=c;if(!b.timer)b.timer=setInterval(function(){var c=b.newscrolly-b.getScrollTop(),c=c>0?Math.ceil(c/4):
Math.floor(c/4),c=b.getScrollTop()+c;b.setScrollTop(c);if(c==b.newscrolly)clearInterval(b.timer),b.timer=0,b.cursorfreezed=false},b.opt.scrollspeed),b.noticeCursor()};this.doScrollBy=function(c,d){d&&(c=Math.round(c*1/b.scrollratio.y));var e=b.scroll.y-c;e<0&&(e=0);var f=b.scrollvaluemax;e>f&&(e=f);b.cursorfreezed=false;b.doScroll(Math.floor(e*b.scrollratio.y))};this.doScrollTo=function(c,d){ny=d?Math.round(c*1/b.scrollratio.y):c;ny<0&&(c=0);var e=b.scrollvaluemax;ny>e&&(c=d?Math.round(e*b.scrollratio.y):
e);b.cursorfreezed=false;b.doScroll(d?c:Math.round(c*b.scrollratio.y))};this.doScrollMomentum=function(c){var d=c.ly-c.ny,c=(new Date).getTime()-c.lt;Math.abs(d)>1&&c<601&&b.doScrollBy(d,true)};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.docscroll.scroll(function(c){b.onscroll(c)});
this.doZoomIn=function(c){if(!b.zoomactive){b.zoomrestore={style:{}};var d="position,top,left,zIndex,backgroundColor,marginTop,marginBottom,marginLeft,marginRight".split(","),f=b.win[0].style,g;for(g in d){var i=d[g];b.zoomrestore.style[i]=typeof f[i]!="undefined"?f[i]:""}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=e(window).scrollTop(),
e(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.zoomactive=true;b.zoom.css("backgroundPosition","0px -18px");b.resizeZoom();return b.cancelEvent(c)}};this.doZoomOut=function(c){if(b.zoomactive)return b.win.css("margin",
""),b.win.css(b.zoomrestore.style),b.isios4&&e(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.zoomactive=false,b.zoomrestore=false,b.zoom.css("backgroundPosition","0px 0px"),b.win.resize(),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:e(window).width()-b.zoomrestore.padding.w+
"px",height:e(window).height()-b.zoomrestore.padding.h+"px"});b.setScrollTop(c);b.win.resize()}};this.init()};e.fn.niceScroll=function(f,b){typeof f=="object"&&typeof b=="undefined"&&(b=f,f=false);var g=[];typeof b=="undefined"&&(b={});if(f)b.doc=e(f),b.win=e(this);var j=!("doc"in b);this.each(function(){var f=e(this).data("__nicescroll")||false;if(!f)b.doc=j?e(this):b.doc,f=new m(b),e(this).data("__nicescroll",f);g.push(f)});return g.length==1?g[0]:g};var j=jQuery.fn.scrollTop;e.cssHooks.scrollTop=
{get:function(f){var b=e.data(f,"__nicescroll")||false;return b&&b.ishwscroll?b.getScrollTop():j.call(f)},set:function(f,b){var g=e.data(f,"__nicescroll")||false;g&&g.ishwscroll?g.setScrollTop(parseInt(b)):j.call(f,b);return this}};jQuery.fn.scrollTop=function(f){if(typeof f=="undefined"){var b=e.data(this,"__nicescroll")||false;return b&&b.ishwscroll?b.getScrollTop():j.call(this)}else return this.each(function(){var b=e.data(this,"__nicescroll")||false;b&&b.ishwscroll?b.setScrollTop(parseInt(f)):
j.call(e(this),f)})};jQuery.fn.getNiceScroll=function(f){if(typeof f=="undefined"){for(a=0;a<this.length;a++)if(f=e.data(this[a],"__nicescroll")||false)return f;return false}else return f=e.data(this[f],"__nicescroll")||false}})(jQuery);