!function(){"use strict";({init:function(){var e=this;if(e.no_header=!1,e.isjnewsLibrary="object"==typeof jnews&&"object"==typeof jnews.library,e.jnewsLibrary=!!e.isjnewsLibrary&&jnews.library,e.jnewsLibrary&&"undefined"!==e.jnewsLibrary.globalBody&&(e.header=e.jnewsLibrary.globalBody.querySelector(".jeg_header_wrapper .jeg_header"),e.header&&(e.overlaySlider=e.jnewsLibrary.globalBody.getElementsByClassName("jeg_overlay_slider")[0],e.overlaySlider))){if(e.overlaySliderWrapper=e.overlaySlider.getElementsByClassName("jeg_overlay_slider_wrapper")[0],e.fullscreen=e.overlaySlider.dataset.fullscreen,e.fullscreen){e.resizeWrapper();var r={resize:e.resizeWrapper.bind(this),load:e.resizeWrapper.bind(this)};e.jnewsLibrary.addEvents(e.jnewsLibrary.win,r)}else{e.resizeWrapperFix();r={resize:e.resizeWrapperFix.bind(this),load:e.resizeWrapperFix.bind(this)};e.jnewsLibrary.addEvents(e.jnewsLibrary.win,r)}e.jnewsLibrary.addEvents(e.jnewsLibrary.win,{remove_overlayslider_events:function(){e.jnewsLibrary.removeEvents(e.jnewsLibrary.win,r)}})}},resizeWrapperFix:function(){var e=this;r&&(e.overlaySlider.style.height=null,e.jnewsLibrary.cancelAnimationFrame.call(e.jnewsLibrary.win,r));var r=e.jnewsLibrary.requestAnimationFrame.call(e.jnewsLibrary.win,(function(){if(e.overlaySliderWrapper){(null==e.header||e.no_header)&&(e.no_header=!0,e.header=jnewsLibrary.doc.createElement("div"));var r=e.jnewsLibrary.isVisible(e.header)?e.header:e.jnewsLibrary.globalBody.querySelector(".jeg_navbar_mobile_wrapper");e.no_header&&(r=e.header),e.jnewsLibrary.windowWidth()>767?(e.overlaySliderWrapper.style.height=e.jnewsLibrary.getHeight(e.overlaySlider)+e.jnewsLibrary.getHeight(r)+"px",e.overlaySlider.style.height=e.jnewsLibrary.getHeight(e.overlaySliderWrapper)-e.jnewsLibrary.getHeight(r)+"px"):(e.wh=e.jnewsLibrary.windowHeight(),e.height=e.wh>414?.45*e.wh:e.wh,e.overlaySliderWrapper.style.height=e.height+"px",e.overlaySlider.style.height=e.height-e.jnewsLibrary.getHeight(r)+"px")}}))},resizeWrapper:function(){var e=this;r&&e.jnewsLibrary.cancelAnimationFrame.call(e.jnewsLibrary.win,r);var r=e.jnewsLibrary.requestAnimationFrame.call(e.jnewsLibrary.win,(function(){(null==e.header||e.no_header)&&(e.no_header=!0,e.header=jnewsLibrary.doc.createElement("div"));var r=e.jnewsLibrary.isVisible(e.header)?e.header:e.jnewsLibrary.globalBody.querySelector(".jeg_navbar_mobile_wrapper");e.no_header&&(r=e.header),e.jnewsLibrary.windowWidth()>1024?e.overlaySlider.style.height=e.jnewsLibrary.windowHeight()-e.jnewsLibrary.getHeight(r)+"px":e.overlaySlider.setAttribute("style",""),e.resizeWrapperFix()}))}}).init()}();