!function(t){var i,s="",e="",c="",a="#masthead-sticky-wrapper",r="#wpadminbar",n=0,o=20,d=0,l=320,p=!1;"undefined"!=typeof pmc_sticky_rail_ads&&"rail_selector"in pmc_sticky_rail_ads&&"first_ad_selector"in pmc_sticky_rail_ads&&"second_ad_selector"in pmc_sticky_rail_ads&&"nav_bar_selector"in pmc_sticky_rail_ads&&"admin_bar_selector"in pmc_sticky_rail_ads&&"first_ad_limit"in pmc_sticky_rail_ads&&"ad_container_width"in pmc_sticky_rail_ads&&"is_dynamic_content"in pmc_sticky_rail_ads&&(s=pmc_sticky_rail_ads.rail_selector,e=pmc_sticky_rail_ads.first_ad_selector,c=pmc_sticky_rail_ads.second_ad_selector,a=pmc_sticky_rail_ads.nav_bar_selector,r=pmc_sticky_rail_ads.admin_bar_selector,n=parseInt(pmc_sticky_rail_ads.first_ad_limit),l=parseInt(pmc_sticky_rail_ads.ad_container_width),p=pmc_sticky_rail_ads.is_dynamic_content);var g=t(s),h=t(e),f=t(c),m=0,y='
';if(h.length){m=n+h.offset().top;var x=h.parents(".admz");x.width(l),x.css("padding","0"),x.css("text-align","center"),h.wrap(y),h=h.parent()}if(f.length){var k=f.parents(".admz");k.width(l),k.css("padding","0"),k.css("text-align","center"),f.wrap(y),f=f.parent()}var u=_.debounce(function(){start_scroll()},300);t(window).on("scroll",u),reset_scroll=function(){h.trigger("detach.ScrollToFixed"),h.attr("style",""),f.trigger("detach.ScrollToFixed"),f.attr("style","")},i=function(){return g.height()+g.offset().top-(f.outerHeight()+o)},start_scroll=function(){reset_scroll(),o=get_margin_top(),h.length&&n>0&&h.height()<600&&h.scrollToFixed({limit:m,marginTop:o,offsets:!1,removeOffsets:!0,preFixed:function(){t(this).css("background-color","white"),t(this).css("text-align","center"),t(this).css("padding-bottom","10px"),t(this).css("padding-top","10px")},postFixed:function(){t(this).css("background-color","white"),t(this).css("text-align","center"),t(this).css("padding-bottom","10px"),t(this).css("padding-top","10px")}}),g.length&&f.length&&(d=p?i:i(),f.scrollToFixed({limit:d,marginTop:o,offsets:!1,removeOffsets:!0,preFixed:function(){t(this).css("background-color","white"),t(this).css("text-align","center"),t(this).css("padding-bottom","10px"),t(this).css("padding-top","10px")},postFixed:function(){t(this).css("background-color","white"),t(this).css("text-align","center"),t(this).css("padding-bottom","10px"),t(this).css("padding-top","10px")},fixed:function(){t(window).off("scroll",u)}}))},get_margin_top=function(){var i=0,s=0;return t(a).length&&(i=t(a).outerHeight(!0)),t(r).length&&(s=t(r).outerHeight()),i+s}}(jQuery);