/* == jquery mousewheel plugin == version: 3.1.11, license: mit license (mit) */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jquery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheeldelta"in g&&(m=g.wheeldelta),"wheeldeltay"in g&&(m=g.wheeldeltay),"wheeldeltax"in g&&(l=-1*g.wheeldeltax),"axis"in g&&g.axis===g.horizontal_axis&&(l=-1*m,m=0),j=0===m?l:m,"deltay"in g&&(m=-1*g.deltay,j=m),"deltax"in g&&(l=g.deltax,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltamode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltamode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=math.max(math.abs(m),math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=math[j>=1?"floor":"ceil"](j/f),l=math[l>=1?"floor":"ceil"](l/f),m=math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeoffset&&this.getboundingclientrect){var s=this.getboundingclientrect();o=b.clientx-s.left,p=b.clienty-s.top}return b.deltax=l,b.deltay=m,b.deltafactor=f,b.offsetx=o,b.offsety=p,b.deltamode=0,h.unshift(b,j,l,m),e&&cleartimeout(e),e=settimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustolddeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","dommousescroll","mozmousepixelscroll"],h="onwheel"in document||document.documentmode>=9?["wheel"]:["mousewheel","dommousescroll","mozmousepixelscroll"],i=array.prototype.slice;if(a.event.fixhooks)for(var j=g.length;j;)a.event.fixhooks[g[--j]]=a.event.mousehooks;var k=a.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addeventlistener)for(var c=h.length;c;)this.addeventlistener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getlineheight(this)),a.data(this,"mousewheel-page-height",k.getpageheight(this))},teardown:function(){if(this.removeeventlistener)for(var c=h.length;c;)this.removeeventlistener(h[--c],b,!1);else this.onmousewheel=null;a.removedata(this,"mousewheel-line-height"),a.removedata(this,"mousewheel-page-height")},getlineheight:function(b){var c=a(b)["offsetparent"in a.fn?"offsetparent":"parent"]();return c.length||(c=a("body")),parseint(c.css("fontsize"),10)},getpageheight:function(b){return a(b).height()},settings:{adjustolddeltas:!0,normalizeoffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); /* == malihu jquery custom scrollbar plugin == version: 3.0.4, license: mit license (mit) */ (function(b,a,c){(function(d){d(jquery)}(function(j){var g="mcustomscrollbar",d="mcs",m=".mcustomscrollbar",h={setwidth:false,setheight:false,settop:0,setleft:0,axis:"y",scrollbarposition:"inside",scrollinertia:950,autodraggerlength:true,autohidescrollbar:false,autoexpandscrollbar:false,alwaysshowscrollbar:0,snapamount:null,snapoffset:0,mousewheel:{enable:true,scrollamount:"auto",axis:"y",preventdefault:false,deltafactor:"auto",normalizedelta:false,invert:false,disableover:["select","option","keygen","datalist","textarea"]},scrollbuttons:{enable:false,scrolltype:"stepless",scrollamount:"auto"},keyboard:{enable:true,scrolltype:"stepless",scrollamount:"auto"},contenttouchscroll:25,advanced:{autoexpandhorizontalscroll:false,autoscrollonfocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateoncontentresize:true,updateonimageload:true,updateonselectorchange:false},theme:"light",callbacks:{onscrollstart:false,onscroll:false,ontotalscroll:false,ontotalscrollback:false,whilescrolling:false,ontotalscrolloffset:0,ontotalscrollbackoffset:0,alwaystriggeroffsets:true,onoverflowy:false,onoverflowx:false,onoverflowynone:false,onoverflowxnone:false},live:false,liveselector:null},l=0,o={},f=function(p){if(o[p]){cleartimeout(o[p]);i._delete.call(null,o[p])}},k=(b.attachevent&&!b.addeventlistener)?1:0,n=false,e={init:function(q){var q=j.extend(true,{},h,q),p=i._selector.call(this);if(q.live){var s=q.liveselector||this.selector||m,r=j(s);if(q.live==="off"){f(s);return}o[s]=settimeout(function(){r.mcustomscrollbar(q);if(q.live==="once"&&r.length){f(s)}},500)}else{f(s)}q.setwidth=(q.set_width)?q.set_width:q.setwidth;q.setheight=(q.set_height)?q.set_height:q.setheight;q.axis=(q.horizontalscroll)?"x":i._findaxis.call(null,q.axis);q.scrollinertia=q.scrollinertia>0&&q.scrollinertia<17?17:q.scrollinertia;if(typeof q.mousewheel!=="object"&&q.mousewheel==true){q.mousewheel={enable:true,scrollamount:"auto",axis:"y",preventdefault:false,deltafactor:"auto",normalizedelta:false,invert:false}}q.mousewheel.scrollamount=!q.mousewheelpixels?q.mousewheel.scrollamount:q.mousewheelpixels;q.mousewheel.normalizedelta=!q.advanced.normalizemousewheeldelta?q.mousewheel.normalizedelta:q.advanced.normalizemousewheeldelta;q.scrollbuttons.scrolltype=i._findscrollbuttonstype.call(null,q.scrollbuttons.scrolltype);i._theme.call(null,q);return j(p).each(function(){var u=j(this);if(!u.data(d)){u.data(d,{idx:++l,opt:q,scrollratio:{y:null,x:null},overflowed:null,contentreset:{y:null,x:null},bindevents:false,tweenrunning:false,sequential:{},langdir:u.css("direction"),cboffsets:null,trigger:null});var w=u.data(d).opt,v=u.data("mcs-axis"),t=u.data("mcs-scrollbar-position"),x=u.data("mcs-theme");if(v){w.axis=v}if(t){w.scrollbarposition=t}if(x){w.theme=x;i._theme.call(null,w)}i._pluginmarkup.call(this);e.update.call(null,u)}})},update:function(q){var p=q||i._selector.call(this);return j(p).each(function(){var t=j(this);if(t.data(d)){var v=t.data(d),u=v.opt,r=j("#mcsb_"+v.idx+"_container"),s=[j("#mcsb_"+v.idx+"_dragger_vertical"),j("#mcsb_"+v.idx+"_dragger_horizontal")];if(!r.length){return}if(v.tweenrunning){i._stop.call(null,t)}if(t.hasclass("mcs_disabled")){t.removeclass("mcs_disabled")}if(t.hasclass("mcs_destroyed")){t.removeclass("mcs_destroyed")}i._maxheight.call(this);i._expandcontenthorizontally.call(this);if(u.axis!=="y"&&!u.advanced.autoexpandhorizontalscroll){r.css("width",i._contentwidth(r.children()))}v.overflowed=i._overflowed.call(this);i._scrollbarvisibility.call(this);if(u.autodraggerlength){i._setdraggerlength.call(this)}i._scrollratio.call(this);i._bindevents.call(this);var w=[math.abs(r[0].offsettop),math.abs(r[0].offsetleft)];if(u.axis!=="x"){if(!v.overflowed[0]){i._resetcontentposition.call(this);if(u.axis==="y"){i._unbindevents.call(this)}else{if(u.axis==="yx"&&v.overflowed[1]){i._scrollto.call(this,t,w[1].tostring(),{dir:"x",dur:0,overwrite:"none"})}}}else{if(s[0].height()>s[0].parent().height()){i._resetcontentposition.call(this)}else{i._scrollto.call(this,t,w[0].tostring(),{dir:"y",dur:0,overwrite:"none"});v.contentreset.y=null}}}if(u.axis!=="y"){if(!v.overflowed[1]){i._resetcontentposition.call(this);if(u.axis==="x"){i._unbindevents.call(this)}else{if(u.axis==="yx"&&v.overflowed[0]){i._scrollto.call(this,t,w[0].tostring(),{dir:"y",dur:0,overwrite:"none"})}}}else{if(s[1].width()>s[1].parent().width()){i._resetcontentposition.call(this)}else{i._scrollto.call(this,t,w[1].tostring(),{dir:"x",dur:0,overwrite:"none"});v.contentreset.x=null}}}i._autoupdate.call(this)}})},scrollto:function(r,q){if(typeof r=="undefined"||r==null){return}var p=i._selector.call(this);return j(p).each(function(){var u=j(this);if(u.data(d)){var x=u.data(d),w=x.opt,v={trigger:"external",scrollinertia:w.scrollinertia,scrolleasing:"mcseaseinout",movedragger:false,timeout:60,callbacks:true,onstart:true,onupdate:true,oncomplete:true},s=j.extend(true,{},v,q),y=i._arr.call(this,r),t=s.scrollinertia>0&&s.scrollinertia<17?17:s.scrollinertia;y[0]=i._to.call(this,y[0],"y");y[1]=i._to.call(this,y[1],"x");if(s.movedragger){y[0]*=x.scrollratio.y;y[1]*=x.scrollratio.x}s.dur=t;settimeout(function(){if(y[0]!==null&&typeof y[0]!=="undefined"&&w.axis!=="x"&&x.overflowed[0]){s.dir="y";s.overwrite="all";i._scrollto.call(this,u,y[0].tostring(),s)}if(y[1]!==null&&typeof y[1]!=="undefined"&&w.axis!=="y"&&x.overflowed[1]){s.dir="x";s.overwrite="none";i._scrollto.call(this,u,y[1].tostring(),s)}},s.timeout)}})},stop:function(){var p=i._selector.call(this);return j(p).each(function(){var q=j(this);if(q.data(d)){i._stop.call(null,q)}})},disable:function(q){var p=i._selector.call(this);return j(p).each(function(){var r=j(this);if(r.data(d)){var t=r.data(d),s=t.opt;i._autoupdate.call(this,"remove");i._unbindevents.call(this);if(q){i._resetcontentposition.call(this)}i._scrollbarvisibility.call(this,true);r.addclass("mcs_disabled")}})},destroy:function(){var p=i._selector.call(this);return j(p).each(function(){var s=j(this);if(s.data(d)){var u=s.data(d),t=u.opt,q=j("#mcsb_"+u.idx),r=j("#mcsb_"+u.idx+"_container"),v=j(".mcsb_"+u.idx+"_scrollbar");if(t.live){f(p)}i._autoupdate.call(this,"remove");i._unbindevents.call(this);i._resetcontentposition.call(this);s.removedata(d);i._delete.call(null,this.mcs);v.remove();q.replacewith(r.contents());s.removeclass(g+" _"+d+"_"+u.idx+" mcs-autohide mcs-dir-rtl mcs_no_scrollbar mcs_disabled").addclass("mcs_destroyed")}})}},i={_selector:function(){return(typeof j(this)!=="object"||j(this).length<1)?m:this},_theme:function(s){var r=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],q=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],p=["minimal","minimal-dark"],u=["minimal","minimal-dark"],t=["minimal","minimal-dark"];s.autodraggerlength=j.inarray(s.theme,r)>-1?false:s.autodraggerlength;s.autoexpandscrollbar=j.inarray(s.theme,q)>-1?false:s.autoexpandscrollbar;s.scrollbuttons.enable=j.inarray(s.theme,p)>-1?false:s.scrollbuttons.enable;s.autohidescrollbar=j.inarray(s.theme,u)>-1?true:s.autohidescrollbar;s.scrollbarposition=j.inarray(s.theme,t)>-1?"outside":s.scrollbarposition},_findaxis:function(p){return(p==="yx"||p==="xy"||p==="auto")?"yx":(p==="x"||p==="horizontal")?"x":"y"},_findscrollbuttonstype:function(p){return(p==="stepped"||p==="pixels"||p==="step"||p==="click")?"stepped":"stepless"},_pluginmarkup:function(){var y=j(this),x=y.data(d),r=x.opt,t=r.autoexpandscrollbar?" mcsb_scrolltools_ondrag_expand":"",b=["
","
"],u=r.axis==="yx"?"mcsb_vertical_horizontal":r.axis==="x"?"mcsb_horizontal":"mcsb_vertical",w=r.axis==="yx"?b[0]+b[1]:r.axis==="x"?b[1]:b[0],v=r.axis==="yx"?"
":"",s=r.autohidescrollbar?" mcs-autohide":"",p=(r.axis!=="x"&&x.langdir==="rtl")?" mcs-dir-rtl":"";if(r.setwidth){y.css("width",r.setwidth)}if(r.setheight){y.css("height",r.setheight)}r.setleft=(r.axis!=="y"&&x.langdir==="rtl")?"989999px":r.setleft;y.addclass(g+" _"+d+"_"+x.idx+s+p).wrapinner("
");var q=j("#mcsb_"+x.idx),z=j("#mcsb_"+x.idx+"_container");if(r.axis!=="y"&&!r.advanced.autoexpandhorizontalscroll){z.css("width",i._contentwidth(z.children()))}if(r.scrollbarposition==="outside"){if(y.css("position")==="static"){y.css("position","relative")}y.css("overflow","visible");q.addclass("mcsb_outside").after(w)}else{q.addclass("mcsb_inside").append(w);z.wrap(v)}i._scrollbuttons.call(this);var a=[j("#mcsb_"+x.idx+"_dragger_vertical"),j("#mcsb_"+x.idx+"_dragger_horizontal")];a[0].css("min-height",a[0].height());a[1].css("min-width",a[1].width())},_contentwidth:function(p){return math.max.apply(math,p.map(function(){return j(this).outerwidth(true)}).get())},_expandcontenthorizontally:function(){var q=j(this),s=q.data(d),r=s.opt,p=j("#mcsb_"+s.idx+"_container");if(r.advanced.autoexpandhorizontalscroll&&r.axis!=="y"){p.css({position:"absolute",width:"auto"}).wrap("
").css({width:(math.ceil(p[0].getboundingclientrect().right+0.4)-math.floor(p[0].getboundingclientrect().left)),position:"relative"}).unwrap()}},_scrollbuttons:function(){var s=j(this),u=s.data(d),t=u.opt,q=j(".mcsb_"+u.idx+"_scrollbar:first"),r=["","","",""],p=[(t.axis==="x"?r[2]:r[0]),(t.axis==="x"?r[3]:r[1]),r[2],r[3]];if(t.scrollbuttons.enable){q.prepend(p[0]).append(p[1]).next(".mcsb_scrolltools").prepend(p[2]).append(p[3])}},_maxheight:function(){var t=j(this),w=t.data(d),v=w.opt,r=j("#mcsb_"+w.idx),q=t.css("max-height"),s=q.indexof("%")!==-1,p=t.css("box-sizing");if(q!=="none"){var u=s?t.parent().height()*parseint(q)/100:parseint(q);if(p==="border-box"){u-=((t.innerheight()-t.height())+(t.outerheight()-t.innerheight()))}r.css("max-height",math.round(u))}},_setdraggerlength:function(){var u=j(this),s=u.data(d),p=j("#mcsb_"+s.idx),v=j("#mcsb_"+s.idx+"_container"),y=[j("#mcsb_"+s.idx+"_dragger_vertical"),j("#mcsb_"+s.idx+"_dragger_horizontal")],t=[p.height()/v.outerheight(false),p.width()/v.outerwidth(false)],q=[parseint(y[0].css("min-height")),math.round(t[0]*y[0].parent().height()),parseint(y[1].css("min-width")),math.round(t[1]*y[1].parent().width())],r=k&&(q[1]q.height(),p>q.width()]},_resetcontentposition:function(){var t=j(this),v=t.data(d),u=v.opt,q=j("#mcsb_"+v.idx),r=j("#mcsb_"+v.idx+"_container"),s=[j("#mcsb_"+v.idx+"_dragger_vertical"),j("#mcsb_"+v.idx+"_dragger_horizontal")];i._stop(t);if((u.axis!=="x"&&!v.overflowed[0])||(u.axis==="y"&&v.overflowed[0])){s[0].add(r).css("top",0);i._scrollto(t,"_resety")}if((u.axis!=="y"&&!v.overflowed[1])||(u.axis==="x"&&v.overflowed[1])){var p=dx=0;if(v.langdir==="rtl"){p=q.width()-r.outerwidth(false);dx=math.abs(p/v.scrollratio.x)}r.css("left",p);s[1].css("left",dx);i._scrollto(t,"_resetx")}},_bindevents:function(){var r=j(this),t=r.data(d),s=t.opt;if(!t.bindevents){i._draggable.call(this);if(s.contenttouchscroll){i._contentdraggable.call(this)}if(s.mousewheel.enable){function q(){p=settimeout(function(){if(!j.event.special.mousewheel){q()}else{cleartimeout(p);i._mousewheel.call(r[0])}},1000)}var p;q()}i._draggerrail.call(this);i._wrapperscroll.call(this);if(s.advanced.autoscrollonfocus){i._focus.call(this)}if(s.scrollbuttons.enable){i._buttons.call(this)}if(s.keyboard.enable){i._keyboard.call(this)}t.bindevents=true}},_unbindevents:function(){var s=j(this),t=s.data(d),p=d+"_"+t.idx,u=".mcsb_"+t.idx+"_scrollbar",r=j("#mcsb_"+t.idx+",#mcsb_"+t.idx+"_container,#mcsb_"+t.idx+"_container_wrapper,"+u+" .mcsb_draggercontainer,#mcsb_"+t.idx+"_dragger_vertical,#mcsb_"+t.idx+"_dragger_horizontal,"+u+">a"),q=j("#mcsb_"+t.idx+"_container");if(t.bindevents){j(a).unbind("."+p);r.each(function(){j(this).unbind("."+p)});cleartimeout(s[0]._focustimeout);i._delete.call(null,s[0]._focustimeout);cleartimeout(t.sequential.step);i._delete.call(null,t.sequential.step);cleartimeout(q[0].oncompletetimeout);i._delete.call(null,q[0].oncompletetimeout);t.bindevents=false}},_scrollbarvisibility:function(q){var t=j(this),v=t.data(d),u=v.opt,p=j("#mcsb_"+v.idx+"_container_wrapper"),r=p.length?p:j("#mcsb_"+v.idx+"_container"),w=[j("#mcsb_"+v.idx+"_scrollbar_vertical"),j("#mcsb_"+v.idx+"_scrollbar_horizontal")],s=[w[0].find(".mcsb_dragger"),w[1].find(".mcsb_dragger")];if(u.axis!=="x"){if(v.overflowed[0]&&!q){w[0].add(s[0]).add(w[0].children("a")).css("display","block");r.removeclass("mcs_no_scrollbar_y mcs_y_hidden")}else{if(u.alwaysshowscrollbar){if(u.alwaysshowscrollbar!==2){s[0].add(w[0].children("a")).css("display","none")}r.removeclass("mcs_y_hidden")}else{w[0].css("display","none");r.addclass("mcs_y_hidden")}r.addclass("mcs_no_scrollbar_y")}}if(u.axis!=="y"){if(v.overflowed[1]&&!q){w[1].add(s[1]).add(w[1].children("a")).css("display","block");r.removeclass("mcs_no_scrollbar_x mcs_x_hidden")}else{if(u.alwaysshowscrollbar){if(u.alwaysshowscrollbar!==2){s[1].add(w[1].children("a")).css("display","none")}r.removeclass("mcs_x_hidden")}else{w[1].css("display","none");r.addclass("mcs_x_hidden")}r.addclass("mcs_no_scrollbar_x")}}if(!v.overflowed[0]&&!v.overflowed[1]){t.addclass("mcs_no_scrollbar")}else{t.removeclass("mcs_no_scrollbar")}},_coordinates:function(q){var p=q.type;switch(p){case"pointerdown":case"mspointerdown":case"pointermove":case"mspointermove":case"pointerup":case"mspointerup":return[q.originalevent.pagey,q.originalevent.pagex];break;case"touchstart":case"touchmove":case"touchend":var r=q.originalevent.touches[0]||q.originalevent.changedtouches[0];return[r.pagey,r.pagex];break;default:return[q.pagey,q.pagex]}},_draggable:function(){var u=j(this),s=u.data(d),p=s.opt,r=d+"_"+s.idx,t=["mcsb_"+s.idx+"_dragger_vertical","mcsb_"+s.idx+"_dragger_horizontal"],v=j("#mcsb_"+s.idx+"_container"),w=j("#"+t[0]+",#"+t[1]),a,y,z;w.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" mspointerdown."+r,function(e){e.stopimmediatepropagation();e.preventdefault();if(!i._mousebtnleft(e)){return}n=true;if(k){a.onselectstart=function(){return false}}x(false);i._stop(u);a=j(this);var f=a.offset(),g=i._coordinates(e)[0]-f.top,b=i._coordinates(e)[1]-f.left,d=a.height()+f.top,c=a.width()+f.left;if(g0&&b0){y=g;z=b}i._ondragclasses(a,"active",p.autoexpandscrollbar)}).bind("touchmove."+r,function(c){c.stopimmediatepropagation();c.preventdefault();var d=a.offset(),e=i._coordinates(c)[0]-d.top,b=i._coordinates(c)[1]-d.left;q(y,z,e,b)});j(a).bind("mousemove."+r+" pointermove."+r+" mspointermove."+r,function(c){if(a){var d=a.offset(),e=i._coordinates(c)[0]-d.top,b=i._coordinates(c)[1]-d.left;if(y===e){return}q(y,z,e,b)}}).add(w).bind("mouseup."+r+" touchend."+r+" pointerup."+r+" mspointerup."+r,function(b){if(a){i._ondragclasses(a,"active",p.autoexpandscrollbar);a=null}n=false;if(k){a.onselectstart=null}x(true)});function x(b){var c=v.find("iframe");if(!c.length){return}var d=!b?"none":"auto";c.css("pointer-events",d)}function q(d,e,g,b){v[0].idletimer=p.scrollinertia<233?250:0;if(a.attr("id")===t[1]){var c="x",f=((a[0].offsetleft-e)+b)*s.scrollratio.x}else{var c="y",f=((a[0].offsettop-d)+g)*s.scrollratio.y}i._scrollto(u,f.tostring(),{dir:c,drag:true})}},_contentdraggable:function(){var y=j(this),k=y.data(d),i=k.opt,f=d+"_"+k.idx,v=j("#mcsb_"+k.idx),z=j("#mcsb_"+k.idx+"_container"),w=[j("#mcsb_"+k.idx+"_dragger_vertical"),j("#mcsb_"+k.idx+"_dragger_horizontal")],e,g,l,m,c=[],d=[],h,a,u,t,j,x,r=0,q,s=i.axis==="yx"?"none":"all";z.bind("touchstart."+f+" pointerdown."+f+" mspointerdown."+f,function(n){if(!i._pointertouch(n)||n){return}var o=z.offset();e=i._coordinates(n)[0]-o.top;g=i._coordinates(n)[1]-o.left}).bind("touchmove."+f+" pointermove."+f+" mspointermove."+f,function(q){if(!i._pointertouch(q)||n){return}q.stopimmediatepropagation();a=i._gettime();var p=v.offset(),s=i._coordinates(q)[0]-p.top,u=i._coordinates(q)[1]-p.left,r="mcslinearout";c.push(s);d.push(u);if(k.overflowed[0]){var o=w[0].parent().height()-w[0].height(),t=((e-s)>0&&(s-e)>-(o*k.scrollratio.y))}if(k.overflowed[1]){var n=w[1].parent().width()-w[1].width(),v=((g-u)>0&&(u-g)>-(n*k.scrollratio.x))}if(t||v){q.preventdefault()}x=i.axis==="yx"?[(e-s),(g-u)]:i.axis==="x"?[null,(g-u)]:[(e-s),null];z[0].idletimer=250;if(k.overflowed[0]){b(x[0],r,r,"y","all",true)}if(k.overflowed[1]){b(x[1],r,r,"x",s,true)}});v.bind("touchstart."+f+" pointerdown."+f+" mspointerdown."+f,function(n){if(!i._pointertouch(n)||n){return}n.stopimmediatepropagation();i._stop(y);h=i._gettime();var o=v.offset();l=i._coordinates(n)[0]-o.top;m=i._coordinates(n)[1]-o.left;c=[];d=[]}).bind("touchend."+f+" pointerup."+f+" mspointerup."+f,function(p){if(!i._pointertouch(p)||n){return}p.stopimmediatepropagation();u=i._gettime();var n=v.offset(),t=i._coordinates(p)[0]-n.top,v=i._coordinates(p)[1]-n.left;if((u-a)>30){return}j=1000/(u-h);var q="mcseaseout",r=j<2.5,w=r?[c[c.length-2],d[d.length-2]]:[0,0];t=r?[(t-w[0]),(v-w[1])]:[t-l,v-m];var o=[math.abs(t[0]),math.abs(t[1])];j=r?[math.abs(t[0]/4),math.abs(t[1]/4)]:[j,j];var u=[math.abs(z[0].offsettop)-(t[0]*p((o[0]/j[0]),j[0])),math.abs(z[0].offsetleft)-(t[1]*p((o[1]/j[1]),j[1]))];x=i.axis==="yx"?[u[0],u[1]]:i.axis==="x"?[null,u[1]]:[u[0],null];q=[(o[0]*4)+i.scrollinertia,(o[1]*4)+i.scrollinertia];var s=parseint(i.contenttouchscroll)||0;x[0]=o[0]>s?x[0]:0;x[1]=o[1]>s?x[1]:0;if(k.overflowed[0]){b(x[0],q[0],q,"y",s,false)}if(k.overflowed[1]){b(x[1],q[1],q,"x",s,false)}});function p(p,n){var o=[n*1.5,n*2,n/1.5,n/2];if(p>90){return n>4?o[0]:o[3]}else{if(p>60){return n>3?o[3]:o[2]}else{if(p>30){return n>8?o[1]:n>6?o[0]:n>4?n:o[2]}else{return n>8?n:o[3]}}}}function b(p,r,s,o,n,q){if(!p){return}i._scrollto(y,p.tostring(),{dur:r,scrolleasing:s,dir:o,overwrite:n,drag:q})}},_mousewheel:function(){var w=j(this),v=w.data(d);if(v){var p=v.opt,s=d+"_"+v.idx,q=j("#mcsb_"+v.idx),x=[j("#mcsb_"+v.idx+"_dragger_vertical"),j("#mcsb_"+v.idx+"_dragger_horizontal")],t=j("#mcsb_"+v.idx+"_container").find("iframe"),r=q;if(t.length){t.each(function(){var y=this;if(u(y)){r=r.add(j(y).contents().find("body"))}})}r.bind("mousewheel."+s,function(c,g){i._stop(w);if(i._disablemousewheel(w,c.target)){return}var e=p.mousewheel.deltafactor!=="auto"?parseint(p.mousewheel.deltafactor):(k&&c.deltafactor<100)?100:c.deltafactor||100;if(p.axis==="x"||p.mousewheel.axis==="x"){var z="x",f=[math.round(e*v.scrollratio.x),parseint(p.mousewheel.scrollamount)],b=p.mousewheel.scrollamount!=="auto"?f[1]:f[0]>=q.width()?q.width()*0.9:f[0],h=math.abs(j("#mcsb_"+v.idx+"_container")[0].offsetleft),d=x[1][0].offsetleft,a=x[1].parent().width()-x[1].width(),y=c.deltax||c.deltay||g}else{var z="y",f=[math.round(e*v.scrollratio.y),parseint(p.mousewheel.scrollamount)],b=p.mousewheel.scrollamount!=="auto"?f[1]:f[0]>=q.height()?q.height()*0.9:f[0],h=math.abs(j("#mcsb_"+v.idx+"_container")[0].offsettop),d=x[0][0].offsettop,a=x[0].parent().height()-x[0].height(),y=c.deltay||g}if((z==="y"&&!v.overflowed[0])||(z==="x"&&!v.overflowed[1])){return}if(p.mousewheel.invert){y=-y}if(p.mousewheel.normalizedelta){y=y<0?-1:1}if((y>0&&d!==0)||(y<0&&d!==a)||p.mousewheel.preventdefault){c.stopimmediatepropagation();c.preventdefault()}i._scrollto(w,(h-(y*b)).tostring(),{dir:z})})}function u(z){var y=null;try{var b=z.contentdocument||z.contentwindow.document;y=b.body.innerhtml}catch(a){}return(y!==null)}},_disablemousewheel:function(r,t){var p=t.nodename.tolowercase(),q=r.data(d).opt.mousewheel.disableover,s=["select","textarea"];return j.inarray(p,q)>-1&&!(j.inarray(p,s)>-1&&!j(t).is(":focus"))},_draggerrail:function(){var s=j(this),t=s.data(d),q=d+"_"+t.idx,r=j("#mcsb_"+t.idx+"_container"),u=r.parent(),p=j(".mcsb_"+t.idx+"_scrollbar .mcsb_draggercontainer");p.bind("touchstart."+q+" pointerdown."+q+" mspointerdown."+q,function(v){n=true}).bind("touchend."+q+" pointerup."+q+" mspointerup."+q,function(v){n=false}).bind("click."+q,function(z){if(j(z.target).hasclass("mcsb_draggercontainer")||j(z.target).hasclass("mcsb_draggerrail")){i._stop(s);var w=j(this),y=w.find(".mcsb_dragger");if(w.parent(".mcsb_scrolltools_horizontal").length>0){if(!t.overflowed[1]){return}var v="x",x=z.pagex>y.offset().left?-1:1,a=math.abs(r[0].offsetleft)-(x*(u.width()*0.9))}else{if(!t.overflowed[0]){return}var v="y",x=z.pagey>y.offset().top?-1:1,a=math.abs(r[0].offsettop)-(x*(u.height()*0.9))}i._scrollto(s,a.tostring(),{dir:v,scrolleasing:"mcseaseinout"})}})},_focus:function(){var r=j(this),t=r.data(d),s=t.opt,p=d+"_"+t.idx,q=j("#mcsb_"+t.idx+"_container"),u=q.parent();q.bind("focusin."+p,function(x){var w=j(a.activeelement),y=q.find(".mcustomscrollbox").length,v=0;if(!w.is(s.advanced.autoscrollonfocus)){return}i._stop(r);cleartimeout(r[0]._focustimeout);r[0]._focustimer=y?(v+17)*y:0;r[0]._focustimeout=settimeout(function(){var c=[w.offset().top-q.offset().top,w.offset().left-q.offset().left],b=[q[0].offsettop,q[0].offsetleft],z=[(b[0]+c[0]>=0&&b[0]+c[0]=0&&b[0]+c[1]a");q.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" mspointerdown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" mspointerup."+r+" mouseout."+r+" pointerout."+r+" mspointerout."+r+" click."+r,function(z){z.preventdefault();if(!i._mousebtnleft(z)){return}var y=j(this).attr("class");p.type=v.scrollbuttons.scrolltype;switch(z.type){case"mousedown":case"touchstart":case"pointerdown":case"mspointerdown":if(p.type==="stepped"){return}n=true;w.tweenrunning=false;x("on",y);break;case"mouseup":case"touchend":case"pointerup":case"mspointerup":case"mouseout":case"pointerout":case"mspointerout":if(p.type==="stepped"){return}n=false;if(p.dir){x("off",y)}break;case"click":if(p.type!=="stepped"||w.tweenrunning){return}x("on",y);break}function x(a,b){p.scrollamount=v.snapamount||v.scrollbuttons.scrollamount;i._sequentialscroll.call(this,u,a,b)}})},_keyboard:function(){var u=j(this),t=u.data(d),q=t.opt,x=t.sequential,s=d+"_"+t.idx,r=j("#mcsb_"+t.idx),w=j("#mcsb_"+t.idx+"_container"),p=w.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']";r.attr("tabindex","0").bind("blur."+s+" keydown."+s+" keyup."+s,function(d){switch(d.type){case"blur":if(t.tweenrunning&&x.dir){y("off",null)}break;case"keydown":case"keyup":var a=d.keycode?d.keycode:d.which,b="on";if((q.axis!=="x"&&(a===38||a===40))||(q.axis!=="y"&&(a===37||a===39))){if(((a===38||a===40)&&!t.overflowed[0])||((a===37||a===39)&&!t.overflowed[1])){return}if(d.type==="keyup"){b="off"}if(!j(a.activeelement).is(v)){d.preventdefault();d.stopimmediatepropagation();y(b,a)}}else{if(a===33||a===34){if(t.overflowed[0]||t.overflowed[1]){d.preventdefault();d.stopimmediatepropagation()}if(d.type==="keyup"){i._stop(u);var c=a===34?-1:1;if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",e=math.abs(w[0].offsetleft)-(c*(p.width()*0.9))}else{var z="y",e=math.abs(w[0].offsettop)-(c*(p.height()*0.9))}i._scrollto(u,e.tostring(),{dir:z,scrolleasing:"mcseaseinout"})}}else{if(a===35||a===36){if(!j(a.activeelement).is(v)){if(t.overflowed[0]||t.overflowed[1]){d.preventdefault();d.stopimmediatepropagation()}if(d.type==="keyup"){if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",e=a===35?math.abs(p.width()-w.outerwidth(false)):0}else{var z="y",e=a===35?math.abs(p.height()-w.outerheight(false)):0}i._scrollto(u,e.tostring(),{dir:z,scrolleasing:"mcseaseinout"})}}}}}break}function y(f,g){x.type=q.keyboard.scrolltype;x.scrollamount=q.snapamount||q.keyboard.scrollamount;if(x.type==="stepped"&&t.tweenrunning){return}i._sequentialscroll.call(this,u,f,g)}})},_sequentialscroll:function(r,u,s){var w=r.data(d),q=w.opt,y=w.sequential,x=j("#mcsb_"+w.idx+"_container"),p=y.type==="stepped"?true:false;switch(u){case"on":y.dir=[(s==="mcsb_buttonright"||s==="mcsb_buttonleft"||s===39||s===37?"x":"y"),(s==="mcsb_buttonup"||s==="mcsb_buttonleft"||s===38||s===37?-1:1)];i._stop(r);if(i._isnumeric(s)&&y.type==="stepped"){return}t(p);break;case"off":v();if(p||(w.tweenrunning&&y.dir)){t(true)}break}function t(z){var f=y.type!=="stepped",j=!z?1000/60:f?q.scrollinertia/1.5:q.scrollinertia,b=!z?2.5:f?7.5:40,i=[math.abs(x[0].offsettop),math.abs(x[0].offsetleft)],e=[w.scrollratio.y>10?10:w.scrollratio.y,w.scrollratio.x>10?10:w.scrollratio.x],c=y.dir[0]==="x"?i[1]+(y.dir[1]*(e[1]*b)):i[0]+(y.dir[1]*(e[0]*b)),h=y.dir[0]==="x"?i[1]+(y.dir[1]*parseint(y.scrollamount)):i[0]+(y.dir[1]*parseint(y.scrollamount)),g=y.scrollamount!=="auto"?h:c,d=!z?"mcslinear":f?"mcslinearout":"mcseaseinout",a=!z?false:true;if(z&&j<17){g=y.dir[0]==="x"?i[1]:i[0]}i._scrollto(r,g.tostring(),{dir:y.dir[0],scrolleasing:d,dur:j,oncomplete:a});if(z){y.dir=false;return}cleartimeout(y.step);y.step=settimeout(function(){t()},j)}function v(){cleartimeout(y.step);i._stop(r)}},_arr:function(r){var q=j(this).data(d).opt,p=[];if(typeof r==="function"){r=r()}if(!(r instanceof array)){p[0]=r.y?r.y:r.x||q.axis==="x"?null:r;p[1]=r.x?r.x:r.y||q.axis==="y"?null:r}else{p=r.length>1?[r[0],r[1]]:q.axis==="x"?[null,r[0]]:[r[0],null]}if(typeof p[0]==="function"){p[0]=p[0]()}if(typeof p[1]==="function"){p[1]=p[1]()}return p},_to:function(v,w){if(v==null||typeof v=="undefined"){return}var c=j(this),b=c.data(d),u=b.opt,d=j("#mcsb_"+b.idx+"_container"),r=d.parent(),f=typeof v;if(!w){w=u.axis==="x"?"x":"y"}var q=w==="x"?d.outerwidth(false):d.outerheight(false),x=w==="x"?d.offset().left:d.offset().top,e=w==="x"?d[0].offsetleft:d[0].offsettop,z=w==="x"?"left":"top";switch(f){case"function":return v();break;case"object":if(v.nodetype){var a=w==="x"?j(v).offset().left:j(v).offset().top}else{if(v.jquery){if(!v.length){return}var a=w==="x"?v.offset().left:v.offset().top}}return a-x;break;case"string":case"number":if(i._isnumeric.call(null,v)){return math.abs(v)}else{if(v.indexof("%")!==-1){return math.abs(q*parseint(v)/100)}else{if(v.indexof("-=")!==-1){return math.abs(e-parseint(v.split("-=")[1]))}else{if(v.indexof("+=")!==-1){var s=(e+parseint(v.split("+=")[1]));return s>=0?0:math.abs(s)}else{if(v.indexof("px")!==-1&&i._isnumeric.call(null,v.split("px")[0])){return math.abs(v.split("px")[0])}else{if(v==="top"||v==="left"){return 0}else{if(v==="bottom"){return math.abs(r.height()-d.outerheight(false))}else{if(v==="right"){return math.abs(r.width()-d.outerwidth(false))}else{if(v==="first"||v==="last"){var y=d.find(":"+v),a=w==="x"?j(y).offset().left:j(y).offset().top;return a-x}else{if(j(v).length){var a=w==="x"?j(v).offset().left:j(v).offset().top;return a-x}else{d.css(z,v);e.update.call(null,c[0]);return}}}}}}}}}}break}},_autoupdate:function(q){var t=j(this),f=t.data(d),z=f.opt,v=j("#mcsb_"+f.idx+"_container");if(q){cleartimeout(v[0].autoupdate);i._delete.call(null,v[0].autoupdate);return}var s=v.parent(),p=[j("#mcsb_"+f.idx+"_scrollbar_vertical"),j("#mcsb_"+f.idx+"_scrollbar_horizontal")],d=function(){return[p[0].is(":visible")?p[0].outerheight(true):0,p[1].is(":visible")?p[1].outerwidth(true):0]},e=y(),x,u=[v.outerheight(false),v.outerwidth(false),s.height(),s.width(),d()[0],d()[1]],h,b=g(),w;c();function c(){cleartimeout(v[0].autoupdate);v[0].autoupdate=settimeout(function(){if(z.advanced.updateonselectorchange){x=y();if(x!==e){r();e=x;return}}if(z.advanced.updateoncontentresize){h=[v.outerheight(false),v.outerwidth(false),s.height(),s.width(),d()[0],d()[1]];if(h[0]!==u[0]||h[1]!==u[1]||h[2]!==u[2]||h[3]!==u[3]||h[4]!==u[4]||h[5]!==u[5]){r();u=h}}if(z.advanced.updateonimageload){w=g();if(w!==b){v.find("img").each(function(){a(this.src)});b=w}}if(z.advanced.updateonselectorchange||z.advanced.updateoncontentresize||z.advanced.updateonimageload){c()}},60)}function g(){var i=0;if(z.advanced.updateonimageload){i=v.find("img").length}return i}function a(l){var i=new image();function k(m,n){return function(){return n.apply(m,arguments)}}function j(){this.onload=null;r()}i.onload=k(i,j);i.src=l}function y(){if(z.advanced.updateonselectorchange===true){z.advanced.updateonselectorchange="*"}var i=0,j=v.find(z.advanced.updateonselectorchange);if(z.advanced.updateonselectorchange&&j.length>0){j.each(function(){i+=j(this).height()+j(this).width()})}return i}function r(){cleartimeout(v[0].autoupdate);e.update.call(null,t[0])}},_snapamount:function(r,p,q){return(math.round(r/p)*p-q)},_stop:function(p){var r=p.data(d),q=j("#mcsb_"+r.idx+"_container,#mcsb_"+r.idx+"_container_wrapper,#mcsb_"+r.idx+"_dragger_vertical,#mcsb_"+r.idx+"_dragger_horizontal");q.each(function(){i._stoptween.call(this)})},_scrollto:function(q,s,u){var i=q.data(d),e=i.opt,d={trigger:"internal",dir:"y",scrolleasing:"mcseaseout",drag:false,dur:e.scrollinertia,overwrite:"all",callbacks:true,onstart:true,onupdate:true,oncomplete:true},u=j.extend(d,u),g=[u.dur,(u.drag?0:u.dur)],v=j("#mcsb_"+i.idx),b=j("#mcsb_"+i.idx+"_container"),k=e.callbacks.ontotalscrolloffset?i._arr.call(q,e.callbacks.ontotalscrolloffset):[0,0],p=e.callbacks.ontotalscrollbackoffset?i._arr.call(q,e.callbacks.ontotalscrollbackoffset):[0,0];i.trigger=u.trigger;if(s==="_resety"&&!i.contentreset.y){if(t("onoverflowynone")){e.callbacks.onoverflowynone.call(q[0])}i.contentreset.y=1}if(s==="_resetx"&&!i.contentreset.x){if(t("onoverflowxnone")){e.callbacks.onoverflowxnone.call(q[0])}i.contentreset.x=1}if(s==="_resety"||s==="_resetx"){return}if((i.contentreset.y||!q[0].mcs)&&i.overflowed[0]){if(t("onoverflowy")){e.callbacks.onoverflowy.call(q[0])}i.contentreset.x=null}if((i.contentreset.x||!q[0].mcs)&&i.overflowed[1]){if(t("onoverflowx")){e.callbacks.onoverflowx.call(q[0])}i.contentreset.x=null}if(e.snapamount){s=i._snapamount(s,e.snapamount,e.snapoffset)}switch(u.dir){case"x":var x=j("#mcsb_"+i.idx+"_dragger_horizontal"),z="left",c=b[0].offsetleft,h=[v.width()-b.outerwidth(false),x.parent().width()-x.width()],r=[s,s===0?0:(s/i.scrollratio.x)],l=k[1],j=p[1],a=l>0?l/i.scrollratio.x:0,w=j>0?j/i.scrollratio.x:0;break;case"y":var x=j("#mcsb_"+i.idx+"_dragger_vertical"),z="top",c=b[0].offsettop,h=[v.height()-b.outerheight(false),x.parent().height()-x.height()],r=[s,s===0?0:(s/i.scrollratio.y)],l=k[0],j=p[0],a=l>0?l/i.scrollratio.y:0,w=j>0?j/i.scrollratio.y:0;break}if(r[1]<0||(r[0]===0&&r[1]===0)){r=[0,0]}else{if(r[1]>=h[1]){r=[h[0],h[1]]}else{r[0]=-r[0]}}if(!q[0].mcs){f()}cleartimeout(b[0].oncompletetimeout);if(!i.tweenrunning&&((c===0&&r[0]>=0)||(c===h[0]&&r[0]<=h[0]))){return}i._tweento.call(null,x[0],z,math.round(r[1]),g[1],u.scrolleasing);i._tweento.call(null,b[0],z,math.round(r[0]),g[0],u.scrolleasing,u.overwrite,{onstart:function(){if(u.callbacks&&u.onstart&&!i.tweenrunning){if(t("onscrollstart")){f();e.callbacks.onscrollstart.call(q[0])}i.tweenrunning=true;i._ondragclasses(x);i.cboffsets=y()}},onupdate:function(){if(u.callbacks&&u.onupdate){if(t("whilescrolling")){f();e.callbacks.whilescrolling.call(q[0])}}},oncomplete:function(){if(u.callbacks&&u.oncomplete){if(e.axis==="yx"){cleartimeout(b[0].oncompletetimeout)}var m=b[0].idletimer||0;b[0].oncompletetimeout=settimeout(function(){if(t("onscroll")){f();e.callbacks.onscroll.call(q[0])}if(t("ontotalscroll")&&r[1]>=h[1]-a&&i.cboffsets[0]){f();e.callbacks.ontotalscroll.call(q[0])}if(t("ontotalscrollback")&&r[1]<=w&&i.cboffsets[1]){f();e.callbacks.ontotalscrollback.call(q[0])}i.tweenrunning=false;b[0].idletimer=0;i._ondragclasses(x,"hide")},m)}}});function t(m){return i&&e.callbacks[m]&&typeof e.callbacks[m]==="function"}function y(){return[e.callbacks.alwaystriggeroffsets||c>=h[0]+l,e.callbacks.alwaystriggeroffsets||c<=-j]}function f(){var o=[b[0].offsettop,b[0].offsetleft],p=[x[0].offsettop,x[0].offsetleft],m=[b.outerheight(false),b.outerwidth(false)],n=[v.height(),v.width()];q[0].mcs={content:b,top:o[0],left:o[1],draggertop:p[0],draggerleft:p[1],toppct:math.round((100*math.abs(o[0]))/(math.abs(m[0])-n[0])),leftpct:math.round((100*math.abs(o[1]))/(math.abs(m[1])-n[1])),direction:u.dir}}},_tweento:function(r,u,s,q,b,t,k){var k=k||{},h=k.onstart||function(){},c=k.onupdate||function(){},i=k.oncomplete||function(){},z=i._gettime(),x,v=0,e=r.offsettop,f=r.style,a;if(u==="left"){e=r.offsetleft}var y=s-e;r._mcsstop=0;if(t!=="none"){d()}p();function j(){if(r._mcsstop){return}if(!v){h.call()}v=i._gettime()-z;g();if(v>=r._mcstime){r._mcstime=(v>r._mcstime)?v+x-(v-r._mcstime):v+x-1;if(r._mcstime0){r._mcscurrval=w(r._mcstime,e,y,q,b);f[u]=math.round(r._mcscurrval)+"px"}else{f[u]=s+"px"}c.call()}function p(){x=1000/60;r._mcstime=v+x;a=(!b.requestanimationframe)?function(l){g();return settimeout(l,0.01)}:b.requestanimationframe;r._mcsid=a(j)}function d(){if(r._mcsid==null){return}if(!b.requestanimationframe){cleartimeout(r._mcsid)}else{b.cancelanimationframe(r._mcsid)}r._mcsid=null}function w(n,m,r,q,o){switch(o){case"linear":case"mcslinear":return r*n/q+m;break;case"mcslinearout":n/=q;n--;return r*math.sqrt(1-n*n)+m;break;case"easeinoutsmooth":n/=q/2;if(n<1){return r/2*n*n+m}n--;return -r/2*(n*(n-2)-1)+m;break;case"easeinoutstrong":n/=q/2;if(n<1){return r/2*math.pow(2,10*(n-1))+m}n--;return r/2*(-math.pow(2,-10*n)+2)+m;break;case"easeinout":case"mcseaseinout":n/=q/2;if(n<1){return r/2*n*n*n+m}n-=2;return r/2*(n*n*n+2)+m;break;case"easeoutsmooth":n/=q;n--;return -r*(n*n*n*n-1)+m;break;case"easeoutstrong":return r*(-math.pow(2,-10*n/q)+1)+m;break;case"easeout":case"mcseaseout":default:var p=(n/=q)*n,l=p*n;return m+r*(0.499999999999997*l*p+-2.5*p*p+5.5*l+-6.5*p+4*n)}}},_gettime:function(){if(b.performance&&b.performance.now){return b.performance.now()}else{if(b.performance&&b.performance.webkitnow){return b.performance.webkitnow()}else{if(date.now){return date.now()}else{return new date().gettime()}}}},_stoptween:function(){var p=this;if(p._mcsid==null){return}if(!b.requestanimationframe){cleartimeout(p._mcsid)}else{b.cancelanimationframe(p._mcsid)}p._mcsid=null;p._mcsstop=1},_delete:function(r){try{delete r}catch(q){r=null}},_mousebtnleft:function(p){return !(p.which&&p.which!==1)},_pointertouch:function(q){var p=q.originalevent.pointertype;return !(p&&p!=="touch"&&p!==2)},_isnumeric:function(p){return !isnan(parsefloat(p))&&isfinite(p)}};j.fn[g]=function(p){if(e[p]){return e[p].apply(this,array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("method "+p+" does not exist")}}};j[g]=function(p){if(e[p]){return e[p].apply(this,array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("method "+p+" does not exist")}}};j[g].defaults=h;b[g]=true;j(b).load(function(){j(m)[g]()})}))}(window,document));