var RepsolStickyBar={init:function(){RepsolStickyBar.events()},events:function(){$(".sticky-bar").each(function(){var t=$(this),i=t.offset().top;Granite.author&&t.find(".sticky-bar-component").addClass("isAuthor"),$(window).on("scroll",function(){$("html").scrollTop()>=i?($(".sticky-bar").find(".sticky-bar-component").removeClass("fixed-top"),t.find(".sticky-bar-component").addClass("fixed-top")):t.find(".sticky-bar-component").removeClass("fixed-top")})})},setContainerHeight:function(){$(".sticky-bar").each(function(){var t=$(this);t.height(t.find(".sticky-bar-component").height())})}};$(document).ready(function(){RepsolStickyBar.init()});