!function(o){"use strict";var e=function(){this.maybeInit=function(){var e=this;!Modernizr.mq("screen and (max-width: "+(800+parseInt(avadaNiceScrollVars.side_header_width,10))+"px)")&&o("body").outerHeight(!0)>o(window).height()&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?setTimeout(function(){e.revive()},50):(e.destroy(),o("body").outerHeight(!0)<o(window).height()?o("html").css("overflow-y","hidden"):o("html").css("overflow-y","auto"),o("#ascrail2000").css("opacity","1"))},this.destroy=function(){void 0!==o("html").getNiceScroll&&o("html").getNiceScroll().remove(),o("html").removeClass("no-overflow-y")},this.revive=function(){var e=o("html").getNiceScroll();e.length?e.resize():(o("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}),o("html").addClass("no-overflow-y"))}};o(document).ready(function(){!0===(1===avadaNiceScrollVars.smooth_scrolling||"1"===avadaNiceScrollVars.smooth_scrolling||!0===avadaNiceScrollVars.smooth_scrolling)&&((e=new e).maybeInit(),setTimeout(function(){o(window).on("resize",function(){e.maybeInit()})},1e3))})}(jQuery);