function niceScrollInit(){var a=jQuery("html").getNiceScroll();a.length?(a.resize(),jQuery("html").addClass("no-overflow-y")):(jQuery("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}),jQuery("html").removeClass("no-overflow-y"))}function niceScrollReInit(){var a=avadaNiceScrollVars.smooth_scrolling;1!==a&&"1"!==a&&!0!==a||Modernizr.mq("screen and (max-width: "+(800+parseInt(avadaNiceScrollVars.side_header_width,10))+"px)")||!(jQuery("body").outerHeight(!0)>jQuery(window).height())||navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?(jQuery("html").getNiceScroll().remove(),jQuery("html").removeClass("no-overflow-y"),jQuery("body").outerHeight(!0)<jQuery(window).height()?jQuery("html").css("overflow-y","hidden"):jQuery("html").css("overflow-y","auto"),jQuery("#ascrail2000").css("opacity","1")):(niceScrollInit(),setTimeout(function(){niceScrollInit()},750))}jQuery(document).ready(function(){var a=avadaNiceScrollVars.smooth_scrolling;setTimeout(function(){1!==a&&"1"!==a&&!0!==a||Modernizr.mq("screen and (max-width: "+(800+parseInt(avadaNiceScrollVars.side_header_width,10))+"px)")||!(jQuery("body").outerHeight(!0)>jQuery(window).height())||navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?(jQuery("html").removeClass("no-overflow-y"),jQuery("body").outerHeight(!0)<jQuery(window).height()&&jQuery("html").css("overflow-y","hidden")):niceScrollInit()},50),jQuery(window).resize(function(){niceScrollReInit()}),jQuery(".fusion-portfolio .fusion-filters a").click(function(){setTimeout(function(){niceScrollInit()},50)})});