!function(a){"use strict";var b=function(){this.maybeInit=function(){var b=this;!Modernizr.mq("screen and (max-width: "+(800+parseInt(avadaNiceScrollVars.side_header_width,10))+"px)")&&a("body").outerHeight(!0)>a(window).height()&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?setTimeout(function(){b.revive()},50):(b.destroy(),a("body").outerHeight(!0)<a(window).height()?a("html").css("overflow-y","hidden"):a("html").css("overflow-y","auto"),a("#ascrail2000").css("opacity","1"))},this.destroy=function(){void 0!==a("html").getNiceScroll&&a("html").getNiceScroll().remove(),a("html").removeClass("no-overflow-y")},this.revive=function(){var b=a("html").getNiceScroll();if(b.length)return void b.resize();a("html").niceScroll({background:"#555",scrollspeed:60,mousescrollstep:40,cursorwidth:9,cursorborder:"0px",cursorcolor:"#303030",cursorborderradius:8,preservenativescrolling:!0,cursoropacitymax:1,cursoropacitymin:1,autohidemode:!1,zindex:999999,horizrailenabled:!1}),a("html").addClass("no-overflow-y")}};a(document).ready(function(){!0==(1===avadaNiceScrollVars.smooth_scrolling||"1"===avadaNiceScrollVars.smooth_scrolling||!0===avadaNiceScrollVars.smooth_scrolling)&&(b=new b,b.maybeInit(),setTimeout(function(){a(window).on("resize",function(){b.maybeInit()})},1e3))})}(jQuery);