function avadaUpdateToTopPostion(){var e=avadaToTopVars.totop_position.split("_"),e=2===e.length?"to-top-"+e[0]+" to-top-"+e[1]:"to-top-"+e[0];jQuery(".to-top-container").attr("class","to-top-container"),jQuery(".to-top-container").addClass(e)}jQuery(document).ready(function(){var e=0,t=jQuery("html").hasClass("ua-edge")||jQuery("html").hasClass("ua-safari-12")||jQuery("html").hasClass("ua-safari-11")||jQuery("html").hasClass("ua-safari-10")?"body":"html";jQuery(".fusion-top-top-link").on("click",function(e){e.preventDefault(),(cssua.ua.mobile&&-1!==avadaToTopVars.status_totop.indexOf("mobile")||!cssua.ua.mobile)&&jQuery(t).animate({scrollTop:0},1200,"easeInOutExpo")}),jQuery(window).scroll(function(){var t=jQuery(this).scrollTop();200=e||1!==parseInt(avadaToTopVars.totop_scroll_down_only))?jQuery(".fusion-top-top-link").addClass("fusion-to-top-active"):jQuery(".fusion-top-top-link").removeClass("fusion-to-top-active"),e=t}),jQuery(window).on("updateToTopPostion",avadaUpdateToTopPostion)})