!function(o){"use strict";o.fn.scrollProgress=function(){var s,n,i,r=o(this),e=function(){return o(document).height()-o(window).height()},t=function(){r.attr("value",(n=o(window).scrollTop(),100<(i=Math.ceil(n/s*100))?100:i))};s=e(),o(document).on("scroll",t),o(window).on("resize",function(){var n;(r.hasClass("fusion-fixed-top")||r.hasClass("fusion-fixed-top"))&&r.closest(".fusion-builder-row").css("z-index","11"),n=o("html"),r.hasClass("fusion-fixed-top")&&n.attr("style","margin-top:"+fusion.getAdminbarHeight()+"px!important;"),s=e(),t(),setTimeout(function(){s=e(),t()},700)})}}(jQuery),jQuery(window).on("load fusion-element-render-fusion_scroll_progress",function(o,s){(void 0!==s?jQuery('div[data-cid="'+s+'"]').find(".fusion-scroll-progress"):jQuery(".fusion-scroll-progress")).scrollProgress()});