/*mousewheel*/ (function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheeldelta&&(e=c.wheeldelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.horizontal_axis&&(h=0,g=-1*e),c.wheeldeltay!==undefined&&(h=c.wheeldeltay/120),c.wheeldeltax!==undefined&&(g=-1*c.wheeldeltax/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["dommousescroll","mousewheel"];if(a.event.fixhooks)for(var c=b.length;c;)a.event.fixhooks[b[--c]]=a.event.mousehooks;a.event.special.mousewheel={setup:function(){if(this.addeventlistener)for(var a=b.length;a;)this.addeventlistener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeeventlistener)for(var a=b.length;a;)this.removeeventlistener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jquery); /*custom scrollbar*/ (function(c){var b={init:function(e){var f={set_width:false,set_height:false,horizontalscroll:false,scrollinertia:950,mousewheel:true,mousewheelpixels:"auto",autodraggerlength:true,autohidescrollbar:false,snapamount:null,snapoffset:0,scrollbuttons:{enable:false,scrolltype:"continuous",scrollspeed:"auto",scrollamount:40},advanced:{updateonbrowserresize:true,updateoncontentresize:false,autoexpandhorizontalscroll:false,autoscrollonfocus:true,normalizemousewheeldelta:false},contenttouchscroll:true,callbacks:{onscrollstart:function(){},onscroll:function(){},ontotalscroll:function(){},ontotalscrollback:function(){},ontotalscrolloffset:0,ontotalscrollbackoffset:0,whilescrolling:function(){}},theme:"light"},e=c.extend(true,f,e);return this.each(function(){var m=c(this);if(e.set_width){m.css("width",e.set_width)}if(e.set_height){m.css("height",e.set_height)}if(!c(document).data("mcustomscrollbar-index")){c(document).data("mcustomscrollbar-index","1")}else{var t=parseint(c(document).data("mcustomscrollbar-index"));c(document).data("mcustomscrollbar-index",t+1)}m.wrapinner("
").addclass("mcustomscrollbar _mcs_"+c(document).data("mcustomscrollbar-index"));var g=m.children(".mcustomscrollbox");if(e.horizontalscroll){g.addclass("mcsb_horizontal").wrapinner("
");var k=g.children(".mcsb_h_wrapper");k.wrapinner("
").children(".mcsb_container").css({width:k.children().outerwidth(),position:"relative"}).unwrap()}else{g.wrapinner("
")}var o=g.children(".mcsb_container");if(c.support.touch){o.addclass("mcs_touch")}o.after("
");var l=g.children(".mcsb_scrolltools"),h=l.children(".mcsb_draggercontainer"),q=h.children(".mcsb_dragger");if(e.horizontalscroll){q.data("mindraggerwidth",q.width())}else{q.data("mindraggerheight",q.height())}if(e.scrollbuttons.enable){if(e.horizontalscroll){l.prepend("").append("")}else{l.prepend("").append("")}}g.bind("scroll",function(){if(!m.is(".mcs_disabled")){g.scrolltop(0).scrollleft(0)}});m.data({mcs_init:true,mcustomscrollbarindex:c(document).data("mcustomscrollbar-index"),horizontalscroll:e.horizontalscroll,scrollinertia:e.scrollinertia,scrolleasing:"mcseaseout",mousewheel:e.mousewheel,mousewheelpixels:e.mousewheelpixels,autodraggerlength:e.autodraggerlength,autohidescrollbar:e.autohidescrollbar,snapamount:e.snapamount,snapoffset:e.snapoffset,scrollbuttons_enable:e.scrollbuttons.enable,scrollbuttons_scrolltype:e.scrollbuttons.scrolltype,scrollbuttons_scrollspeed:e.scrollbuttons.scrollspeed,scrollbuttons_scrollamount:e.scrollbuttons.scrollamount,autoexpandhorizontalscroll:e.advanced.autoexpandhorizontalscroll,autoscrollonfocus:e.advanced.autoscrollonfocus,normalizemousewheeldelta:e.advanced.normalizemousewheeldelta,contenttouchscroll:e.contenttouchscroll,onscrollstart_callback:e.callbacks.onscrollstart,onscroll_callback:e.callbacks.onscroll,ontotalscroll_callback:e.callbacks.ontotalscroll,ontotalscrollback_callback:e.callbacks.ontotalscrollback,ontotalscroll_offset:e.callbacks.ontotalscrolloffset,ontotalscrollback_offset:e.callbacks.ontotalscrollbackoffset,whilescrolling_callback:e.callbacks.whilescrolling,bindevent_scrollbar_drag:false,bindevent_content_touch:false,bindevent_scrollbar_click:false,bindevent_mousewheel:false,bindevent_buttonscontinuous_y:false,bindevent_buttonscontinuous_x:false,bindevent_buttonspixels_y:false,bindevent_buttonspixels_x:false,bindevent_focusin:false,bindevent_autohidescrollbar:false,mcsb_buttonscrollright:false,mcsb_buttonscrollleft:false,mcsb_buttonscrolldown:false,mcsb_buttonscrollup:false});if(e.horizontalscroll){if(m.css("max-width")!=="none"){if(!e.advanced.updateoncontentresize){e.advanced.updateoncontentresize=true}}}else{if(m.css("max-height")!=="none"){var s=false,r=parseint(m.css("max-height"));if(m.css("max-height").indexof("%")>=0){s=r,r=m.parent().height()*s/100}m.css("overflow","hidden");g.css("max-height",r)}}m.mcustomscrollbar("update");if(e.advanced.updateonbrowserresize){var i,j=c(window).width(),u=c(window).height();c(window).bind("resize."+m.data("mcustomscrollbarindex"),function(){if(i){cleartimeout(i)}i=settimeout(function(){if(!m.is(".mcs_disabled")&&!m.is(".mcs_destroyed")){var w=c(window).width(),v=c(window).height();if(j!==w||u!==v){if(m.css("max-height")!=="none"&&s){g.css("max-height",m.parent().height()*s/100)}m.mcustomscrollbar("update");j=w;u=v}}},150)})}if(e.advanced.updateoncontentresize){var p;if(e.horizontalscroll){var n=o.outerwidth()}else{var n=o.outerheight()}p=setinterval(function(){if(e.horizontalscroll){if(e.advanced.autoexpandhorizontalscroll){o.css({position:"absolute",width:"auto"}).wrap("
").css({width:o.outerwidth(),position:"relative"}).unwrap()}var v=o.outerwidth()}else{var v=o.outerheight()}if(v!=n){m.mcustomscrollbar("update");n=v}},300)}})},update:function(){var n=c(this),k=n.children(".mcustomscrollbox"),q=k.children(".mcsb_container");q.removeclass("mcs_no_scrollbar");n.removeclass("mcs_disabled mcs_destroyed");k.scrolltop(0).scrollleft(0);var y=k.children(".mcsb_scrolltools"),o=y.children(".mcsb_draggercontainer"),m=o.children(".mcsb_dragger");if(n.data("horizontalscroll")){var a=y.children(".mcsb_buttonleft"),t=y.children(".mcsb_buttonright"),f=k.width();if(n.data("autoexpandhorizontalscroll")){q.css({position:"absolute",width:"auto"}).wrap("
").css({width:q.outerwidth(),position:"relative"}).unwrap()}var z=q.outerwidth()}else{var w=y.children(".mcsb_buttonup"),g=y.children(".mcsb_buttondown"),r=k.height(),i=q.outerheight()}if(i>r&&!n.data("horizontalscroll")){y.css("display","block");var s=o.height();if(n.data("autodraggerlength")){var u=math.round(r/i*s),l=m.data("mindraggerheight");if(u<=l){m.css({height:l})}else{if(u>=s-10){var p=s-10;m.css({height:p})}else{m.css({height:u})}}m.children(".mcsb_dragger_bar").css({"line-height":m.height()+"px"})}var b=m.height(),x=(i-r)/(s-b);n.data("scrollamount",x).mcustomscrollbar("scrolling",k,q,o,m,w,g,a,t);var d=math.abs(q.position().top);n.mcustomscrollbar("scrollto",d,{scrollinertia:0,trigger:"internal"})}else{if(z>f&&n.data("horizontalscroll")){y.css("display","block");var h=o.width();if(n.data("autodraggerlength")){var j=math.round(f/z*h),c=m.data("mindraggerwidth");if(j<=c){m.css({width:c})}else{if(j>=h-10){var e=h-10;m.css({width:e})}else{m.css({width:j})}}}var v=m.width(),x=(z-f)/(h-v);n.data("scrollamount",x).mcustomscrollbar("scrolling",k,q,o,m,w,g,a,t);var d=math.abs(q.position().left);n.mcustomscrollbar("scrollto",d,{scrollinertia:0,trigger:"internal"})}else{k.unbind("mousewheel focusin");if(n.data("horizontalscroll")){m.add(q).css("left",0)}else{m.add(q).css("top",0)}y.css("display","none");q.addclass("mcs_no_scrollbar");n.data({bindevent_mousewheel:false,bindevent_focusin:false})}}},scrolling:function(h,p,m,j,w,e,a,v){var k=c(this);if(!k.data("bindevent_scrollbar_drag")){var n,o;if(c.support.mspointer){j.bind("mspointerdown",function(h){h.preventdefault();k.data({on_drag:true});j.addclass("mcsb_dragger_ondrag");var g=c(this),j=g.offset(),f=h.originalevent.pagex-j.left,i=h.originalevent.pagey-j.top;if(f0&&i0){n=i;o=f}});c(document).bind("mspointermove."+k.data("mcustomscrollbarindex"),function(h){h.preventdefault();if(k.data("on_drag")){var g=j,j=g.offset(),f=h.originalevent.pagex-j.left,i=h.originalevent.pagey-j.top;d(n,o,i,f)}}).bind("mspointerup."+k.data("mcustomscrollbarindex"),function(x){k.data({on_drag:false});j.removeclass("mcsb_dragger_ondrag")})}else{j.bind("mousedown touchstart",function(h){h.preventdefault();h.stopimmediatepropagation();var g=c(this),k=g.offset(),f,j;if(h.type==="touchstart"){var i=h.originalevent.touches[0]||h.originalevent.changedtouches[0];f=i.pagex-k.left;j=i.pagey-k.top}else{k.data({on_drag:true});j.addclass("mcsb_dragger_ondrag");f=h.pagex-k.left;j=h.pagey-k.top}if(f0&&j0){n=j;o=f}}).bind("touchmove",function(h){h.preventdefault();h.stopimmediatepropagation();var k=h.originalevent.touches[0]||h.originalevent.changedtouches[0],g=c(this),j=g.offset(),f=k.pagex-j.left,i=k.pagey-j.top;d(n,o,i,f)});c(document).bind("mousemove."+k.data("mcustomscrollbarindex"),function(h){if(k.data("on_drag")){var g=j,j=g.offset(),f=h.pagex-j.left,i=h.pagey-j.top;d(n,o,i,f)}}).bind("mouseup."+k.data("mcustomscrollbarindex"),function(x){k.data({on_drag:false});j.removeclass("mcsb_dragger_ondrag")})}k.data({bindevent_scrollbar_drag:true})}function d(g,h,i,f){if(k.data("horizontalscroll")){k.mcustomscrollbar("scrollto",(j.position().left-(h))+f,{movedragger:true,trigger:"internal"})}else{k.mcustomscrollbar("scrollto",(j.position().top-(g))+i,{movedragger:true,trigger:"internal"})}}if(c.support.touch&&k.data("contenttouchscroll")){if(!k.data("bindevent_content_touch")){var l,b,r,s,u,c,e;p.bind("touchstart",function(x){x.stopimmediatepropagation();l=x.originalevent.touches[0]||x.originalevent.changedtouches[0];b=c(this);r=b.offset();u=l.pagex-r.left;s=l.pagey-r.top;c=s;e=u});p.bind("touchmove",function(x){x.preventdefault();x.stopimmediatepropagation();l=x.originalevent.touches[0]||x.originalevent.changedtouches[0];b=c(this).parent();r=b.offset();u=l.pagex-r.left;s=l.pagey-r.top;if(k.data("horizontalscroll")){k.mcustomscrollbar("scrollto",e-u,{trigger:"internal"})}else{k.mcustomscrollbar("scrollto",c-s,{trigger:"internal"})}})}}if(!k.data("bindevent_scrollbar_click")){m.bind("click",function(f){var x=(f.pagey-m.offset().top)*k.data("scrollamount"),y=c(f.target);if(k.data("horizontalscroll")){x=(f.pagex-m.offset().left)*k.data("scrollamount")}if(y.hasclass("mcsb_draggercontainer")||y.hasclass("mcsb_draggerrail")){k.mcustomscrollbar("scrollto",x,{trigger:"internal",scrolleasing:"draggerrailease"})}});k.data({bindevent_scrollbar_click:true})}if(k.data("mousewheel")){if(!k.data("bindevent_mousewheel")){h.bind("mousewheel",function(h,j){var g,f=k.data("mousewheelpixels"),x=math.abs(p.position().top),i=j.position().top,y=m.height()-j.height();if(k.data("normalizemousewheeldelta")){if(j<0){j=-1}else{j=1}}if(f==="auto"){f=100+math.round(k.data("scrollamount")/2)}if(k.data("horizontalscroll")){i=j.position().left;y=m.width()-j.width();x=math.abs(p.position().left)}if((j>0&&i!==0)||(j<0&&i!==y)){h.preventdefault();h.stopimmediatepropagation()}g=x-(j*f);k.mcustomscrollbar("scrollto",g,{trigger:"internal"})});k.data({bindevent_mousewheel:true})}}if(k.data("scrollbuttons_enable")){if(k.data("scrollbuttons_scrolltype")==="pixels"){if(k.data("horizontalscroll")){v.add(a).unbind("mousedown touchstart mspointerdown mouseup mspointerup mouseout mspointerout touchend",i,g);k.data({bindevent_buttonscontinuous_x:false});if(!k.data("bindevent_buttonspixels_x")){v.bind("click",function(x){x.preventdefault();q(math.abs(p.position().left)+k.data("scrollbuttons_scrollamount"))});a.bind("click",function(x){x.preventdefault();q(math.abs(p.position().left)-k.data("scrollbuttons_scrollamount"))});k.data({bindevent_buttonspixels_x:true})}}else{e.add(w).unbind("mousedown touchstart mspointerdown mouseup mspointerup mouseout mspointerout touchend",i,g);k.data({bindevent_buttonscontinuous_y:false});if(!k.data("bindevent_buttonspixels_y")){e.bind("click",function(x){x.preventdefault();q(math.abs(p.position().top)+k.data("scrollbuttons_scrollamount"))});w.bind("click",function(x){x.preventdefault();q(math.abs(p.position().top)-k.data("scrollbuttons_scrollamount"))});k.data({bindevent_buttonspixels_y:true})}}function q(x){if(!j.data("preventaction")){j.data("preventaction",true);k.mcustomscrollbar("scrollto",x,{trigger:"internal"})}}}else{if(k.data("horizontalscroll")){v.add(a).unbind("click");k.data({bindevent_buttonspixels_x:false});if(!k.data("bindevent_buttonscontinuous_x")){v.bind("mousedown touchstart mspointerdown",function(y){y.preventdefault();var x=z();k.data({mcsb_buttonscrollright:setinterval(function(){k.mcustomscrollbar("scrollto",math.abs(p.position().left)+x,{trigger:"internal",scrolleasing:"easeoutcirc"})},17)})});var i=function(x){x.preventdefault();clearinterval(k.data("mcsb_buttonscrollright"))};v.bind("mouseup touchend mspointerup mouseout mspointerout",i);a.bind("mousedown touchstart mspointerdown",function(y){y.preventdefault();var x=z();k.data({mcsb_buttonscrollleft:setinterval(function(){k.mcustomscrollbar("scrollto",math.abs(p.position().left)-x,{trigger:"internal",scrolleasing:"easeoutcirc"})},17)})});var g=function(x){x.preventdefault();clearinterval(k.data("mcsb_buttonscrollleft"))};a.bind("mouseup touchend mspointerup mouseout mspointerout",g);k.data({bindevent_buttonscontinuous_x:true})}}else{e.add(w).unbind("click");k.data({bindevent_buttonspixels_y:false});if(!k.data("bindevent_buttonscontinuous_y")){e.bind("mousedown touchstart mspointerdown",function(y){y.preventdefault();var x=z();k.data({mcsb_buttonscrolldown:setinterval(function(){k.mcustomscrollbar("scrollto",math.abs(p.position().top)+x,{trigger:"internal",scrolleasing:"easeoutcirc"})},17)})});var t=function(x){x.preventdefault();clearinterval(k.data("mcsb_buttonscrolldown"))};e.bind("mouseup touchend mspointerup mouseout mspointerout",t);w.bind("mousedown touchstart mspointerdown",function(y){y.preventdefault();var x=z();k.data({mcsb_buttonscrollup:setinterval(function(){k.mcustomscrollbar("scrollto",math.abs(p.position().top)-x,{trigger:"internal",scrolleasing:"easeoutcirc"})},17)})});var f=function(x){x.preventdefault();clearinterval(k.data("mcsb_buttonscrollup"))};w.bind("mouseup touchend mspointerup mouseout mspointerout",f);k.data({bindevent_buttonscontinuous_y:true})}}function z(){var x=k.data("scrollbuttons_scrollspeed");if(k.data("scrollbuttons_scrollspeed")==="auto"){x=math.round((k.data("scrollinertia")+100)/40)}return x}}}if(k.data("autoscrollonfocus")){if(!k.data("bindevent_focusin")){h.bind("focusin",function(){h.scrolltop(0).scrollleft(0);var x=c(document.activeelement);if(x.is("input,textarea,select,button,a[tabindex],area,object")){var g=p.position().top,y=x.position().top,f=h.height()-x.outerheight();if(k.data("horizontalscroll")){g=p.position().left;y=x.position().left;f=h.width()-x.outerwidth()}if(g+y<0||g+y>f){k.mcustomscrollbar("scrollto",y,{trigger:"internal"})}}});k.data({bindevent_focusin:true})}}if(k.data("autohidescrollbar")){if(!k.data("bindevent_autohidescrollbar")){h.bind("mouseenter",function(x){h.addclass("mcs-mouse-over");d.showscrollbar.call(h.children(".mcsb_scrolltools"))}).bind("mouseleave touchend",function(x){h.removeclass("mcs-mouse-over");if(x.type==="mouseleave"){d.hidescrollbar.call(h.children(".mcsb_scrolltools"))}});k.data({bindevent_autohidescrollbar:true})}}},scrollto:function(e,f){var i=c(this),o={movedragger:false,trigger:"external",callbacks:true,scrollinertia:i.data("scrollinertia"),scrolleasing:i.data("scrolleasing")},f=c.extend(o,f),p,g=i.children(".mcustomscrollbox"),k=g.children(".mcsb_container"),r=g.children(".mcsb_scrolltools"),j=r.children(".mcsb_draggercontainer"),h=j.children(".mcsb_dragger"),t=draggerspeed=f.scrollinertia,q,s,m,l;if(!k.hasclass("mcs_no_scrollbar")){i.data({mcs_trigger:f.trigger});if(i.data("mcs_init")){f.callbacks=false}if(e||e===0){if(typeof(e)==="number"){if(f.movedragger){p=e;if(i.data("horizontalscroll")){e=h.position().left*i.data("scrollamount")}else{e=h.position().top*i.data("scrollamount")}draggerspeed=0}else{p=e/i.data("scrollamount")}}else{if(typeof(e)==="string"){var v;if(e==="top"){v=0}else{if(e==="bottom"&&!i.data("horizontalscroll")){v=k.outerheight()-g.height()}else{if(e==="left"){v=0}else{if(e==="right"&&i.data("horizontalscroll")){v=k.outerwidth()-g.width()}else{if(e==="first"){v=i.find(".mcsb_container").find(":first")}else{if(e==="last"){v=i.find(".mcsb_container").find(":last")}else{v=i.find(e)}}}}}}if(v.length===1){if(i.data("horizontalscroll")){e=v.position().left}else{e=v.position().top}p=e/i.data("scrollamount")}else{p=e=v}}}if(i.data("horizontalscroll")){if(i.data("ontotalscrollback_offset")){s=-i.data("ontotalscrollback_offset")}if(i.data("ontotalscroll_offset")){l=g.width()-k.outerwidth()+i.data("ontotalscroll_offset")}if(p<0){p=e=0;clearinterval(i.data("mcsb_buttonscrollleft"));if(!s){q=true}}else{if(p>=j.width()-h.width()){p=j.width()-h.width();e=g.width()-k.outerwidth();clearinterval(i.data("mcsb_buttonscrollright"));if(!l){m=true}}else{e=-e}}var n=i.data("snapamount");if(n){e=math.round(e/n)*n-i.data("snapoffset")}d.mtweenaxis.call(this,h[0],"left",math.round(p),draggerspeed,f.scrolleasing);d.mtweenaxis.call(this,k[0],"left",math.round(e),t,f.scrolleasing,{onstart:function(){if(f.callbacks&&!i.data("mcs_tweenrunning")){u("onscrollstart")}if(i.data("autohidescrollbar")){d.showscrollbar.call(r)}},onupdate:function(){if(f.callbacks){u("whilescrolling")}},oncomplete:function(){if(f.callbacks){u("onscroll");if(q||(s&&k.position().left>=s)){u("ontotalscrollback")}if(m||(l&&k.position().left<=l)){u("ontotalscroll")}}h.data("preventaction",false);i.data("mcs_tweenrunning",false);if(i.data("autohidescrollbar")){if(!g.hasclass("mcs-mouse-over")){d.hidescrollbar.call(r)}}}})}else{if(i.data("ontotalscrollback_offset")){s=-i.data("ontotalscrollback_offset")}if(i.data("ontotalscroll_offset")){l=g.height()-k.outerheight()+i.data("ontotalscroll_offset")}if(p<0){p=e=0;clearinterval(i.data("mcsb_buttonscrollup"));if(!s){q=true}}else{if(p>=j.height()-h.height()){p=j.height()-h.height();e=g.height()-k.outerheight();clearinterval(i.data("mcsb_buttonscrolldown"));if(!l){m=true}}else{e=-e}}var n=i.data("snapamount");if(n){e=math.round(e/n)*n-i.data("snapoffset")}d.mtweenaxis.call(this,h[0],"top",math.round(p),draggerspeed,f.scrolleasing);d.mtweenaxis.call(this,k[0],"top",math.round(e),t,f.scrolleasing,{onstart:function(){if(f.callbacks&&!i.data("mcs_tweenrunning")){u("onscrollstart")}if(i.data("autohidescrollbar")){d.showscrollbar.call(r)}},onupdate:function(){if(f.callbacks){u("whilescrolling")}},oncomplete:function(){if(f.callbacks){u("onscroll");if(q||(s&&k.position().top>=s)){u("ontotalscrollback")}if(m||(l&&k.position().top<=l)){u("ontotalscroll")}}h.data("preventaction",false);i.data("mcs_tweenrunning",false);if(i.data("autohidescrollbar")){if(!g.hasclass("mcs-mouse-over")){d.hidescrollbar.call(r)}}}})}if(i.data("mcs_init")){i.data({mcs_init:false})}}}function u(w){this.mcs={top:k.position().top,left:k.position().left,draggertop:h.position().top,draggerleft:h.position().left,toppct:math.round((100*math.abs(k.position().top))/math.abs(k.outerheight()-g.height())),leftpct:math.round((100*math.abs(k.position().left))/math.abs(k.outerwidth()-g.width()))};switch(w){case"onscrollstart":i.data("mcs_tweenrunning",true).data("onscrollstart_callback").call(i,this.mcs);break;case"whilescrolling":i.data("whilescrolling_callback").call(i,this.mcs);break;case"onscroll":i.data("onscroll_callback").call(i,this.mcs);break;case"ontotalscrollback":i.data("ontotalscrollback_callback").call(i,this.mcs);break;case"ontotalscroll":i.data("ontotalscroll_callback").call(i,this.mcs);break}}},stop:function(){var g=c(this),e=g.children().children(".mcsb_container"),f=g.children().children().children().children(".mcsb_dragger");d.mtweenaxisstop.call(this,e[0]);d.mtweenaxisstop.call(this,f[0])},disable:function(e){var j=c(this),f=j.children(".mcustomscrollbox"),h=f.children(".mcsb_container"),g=f.children(".mcsb_scrolltools"),i=g.children().children(".mcsb_dragger");f.unbind("mousewheel focusin mouseenter mouseleave touchend");h.unbind("touchstart touchmove");if(e){if(j.data("horizontalscroll")){i.add(h).css("left",0)}else{i.add(h).css("top",0)}}g.css("display","none");h.addclass("mcs_no_scrollbar");j.data({bindevent_mousewheel:false,bindevent_focusin:false,bindevent_content_touch:false,bindevent_autohidescrollbar:false}).addclass("mcs_disabled")},destroy:function(){var e=c(this);e.removeclass("mcustomscrollbar _mcs_"+e.data("mcustomscrollbarindex")).addclass("mcs_destroyed").children().children(".mcsb_container").unwrap().children().unwrap().siblings(".mcsb_scrolltools").remove();c(document).unbind("mousemove."+e.data("mcustomscrollbarindex")+" mouseup."+e.data("mcustomscrollbarindex")+" mspointermove."+e.data("mcustomscrollbarindex")+" mspointerup."+e.data("mcustomscrollbarindex"));c(window).unbind("resize."+e.data("mcustomscrollbarindex"))}},d={showscrollbar:function(){this.stop().animate({opacity:1},"fast")},hidescrollbar:function(){this.stop().animate({opacity:0},"fast")},mtweenaxis:function(g,i,h,f,o,y){var y=y||{},v=y.onstart||function(){},p=y.onupdate||function(){},w=y.oncomplete||function(){};var n=t(),l,j=0,r=g.offsettop,s=g.style;if(i==="left"){r=g.offsetleft}var m=h-r;q();e();function t(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitnow){return window.performance.webkitnow()}else{if(date.now){return date.now()}else{return new date().gettime()}}}}function x(){if(!j){v.call()}j=t()-n;u();if(j>=g._time){g._time=(j>g._time)?j+l-(j-g._time):j+l-1;if(g._time0){g.currval=k(g._time,r,m,f,o);s[i]=math.round(g.currval)+"px"}else{s[i]=h+"px"}p.call()}function e(){l=1000/60;g._time=j+l;_request=(!window.requestanimationframe)?function(z){u();return settimeout(z,0.01)}:window.requestanimationframe;g._id=_request(x)}function q(){if(g._id==null){return}if(!window.requestanimationframe){cleartimeout(g._id)}else{window.cancelanimationframe(g._id)}g._id=null}function k(b,a,f,e,c){switch(c){case"linear":return f*b/e+a;break;case"easeoutquad":b/=e;return -f*b*(b-2)+a;break;case"easeinoutquad":b/=e/2;if(b<1){return f/2*b*b+a}b--;return -f/2*(b*(b-2)-1)+a;break;case"easeoutcubic":b/=e;b--;return f*(b*b*b+1)+a;break;case"easeoutquart":b/=e;b--;return -f*(b*b*b*b-1)+a;break;case"easeoutquint":b/=e;b--;return f*(b*b*b*b*b+1)+a;break;case"easeoutcirc":b/=e;b--;return f*math.sqrt(1-b*b)+a;break;case"easeoutsine":return f*math.sin(b/e*(math.pi/2))+a;break;case"easeoutexpo":return f*(-math.pow(2,-10*b/e)+1)+a;break;case"mcseaseout":var d=(b/=e)*b,z=d*b;return a+f*(0.499999999999997*z*d+-2.5*d*d+5.5*z+-6.5*d+4*b);break;case"draggerrailease":b/=e/2;if(b<1){return f/2*b*b*b+a}b-=2;return f/2*(b*b*b+2)+a;break}}},mtweenaxisstop:function(e){if(e._id==null){return}if(!window.requestanimationframe){cleartimeout(e._id)}else{window.cancelanimationframe(e._id)}e._id=null},rafpolyfill:function(){var f=["ms","moz","webkit","o"],e=f.length;while(--e>-1&&!window.requestanimationframe){window.requestanimationframe=window[f[e]+"requestanimationframe"];window.cancelanimationframe=window[f[e]+"cancelanimationframe"]||window[f[e]+"cancelrequestanimationframe"]}}};d.rafpolyfill.call();c.support.touch=!!("ontouchstart" in window);c.support.mspointer=window.navigator.mspointerenabled;var a=("https:"==document.location.protocol)?"https:":"http:";c.event.special.mousewheel||document.write('