!function(r){AstraPageTitle={init:function(){AstraPageTitle._initBackgrounds(),AstraPageTitle._initFullScreenHeight()},_initBackgrounds:function(){var a=r(window);0<r(".ast-advanced-headers-parallax").length&&(AstraPageTitle._scrollParallaxBackgrounds(),a.on("scroll",AstraPageTitle._scrollParallaxBackgrounds),a.on("resize",AstraPageTitle._scrollParallaxBackgrounds))},_scrollParallaxBackgrounds:function(){r(".ast-advanced-headers-parallax").each(AstraPageTitle._scrollParallaxBackground)},_scrollParallaxBackground:function(){var a=r(window),e=r(this),t=e,s=e.data("parallax-speed"),e=e.data("parallax-device"),l=t.offset();yPos=-(a.scrollTop()-l.top)/s,"both"===e?t.css("background-position","center "+yPos+"px"):"desktop"===e?r("body").hasClass("ast-desktop")?t.css("background-position","center "+yPos+"px"):t.css("background-position",""):r("body").hasClass("ast-header-break-point")?t.css("background-position","center "+yPos+"px"):t.css("background-position","")},_initFullScreenHeight:function(){var e,t,s=r(window);r(".ast-full-advanced-header")[0]&&(AstraPageTitle._astraPageFullHeader(),t=s.width(),s.resize(function(){s.width()!=t&&(clearTimeout(e),e=setTimeout(AstraPageTitle._astraPageFullHeader,200),t=s.width())}),s.on("orientationchange",function(a){s.width()!=t&&(clearTimeout(e),e=setTimeout(AstraPageTitle._astraPageFullHeader,200),t=s.width())}))},_astraPageFullHeader:function(){var a,e;r(".ast-full-advanced-header").length&&(a=r(window).height(),e=r(".ast-full-advanced-header").offset().top,r(".ast-full-advanced-header").css("height",a-e+"px"))}},r(function(){AstraPageTitle.init()})}(jQuery);