!function(e,t,o){"use strict";function i(){this.windowWidth=t.innerWidth,this.windowHeight=t.innerHeight,this.init()}const n=i.prototype;n.isVisible=function(e){return e.offsetWidth>0||e.offsetHeight>0},n.init=function(){const e=this;if(o.querySelector('#header-outer[data-format="centered-logo-between-menu"]')){const t=o.querySelector('#header-outer[data-using-logo="1"]');if(t){if(t&&o.querySelector("header#top #logo img[src]")){const t=new Image;t.src=o.querySelector("header#top #logo img").getAttribute("src"),t.onload=function(){e.centeredLogoNav()}}}else e.centeredLogoNav()}},n.centeredLogoNav=function(){const e=o.querySelector("#top .row > .col.span_9"),i=o.querySelector("#top .row .col.span_3"),n=o.querySelector("#top nav > ul > li:first-child > a");if(e&&n&&i)if(this.windowWidth>1e3){let s,a,c=o.querySelectorAll("#header-outer #top nav > .sf-menu:not(.buttons) > li").length;o.querySelector("#header-outer #social-in-menu")&&c--;const d=i.querySelectorAll("img");let u=null;for(var r=0;r<d.length;r++)if(this.isVisible(d[r])){u=d[r];break}s=u?parseInt(u.offsetWidth):parseInt(i.offsetWidth);const h=t.getComputedStyle(n);a=o.querySelector('#header-outer[data-lhe="animated_underline"]')?parseInt(h.getPropertyValue("margin-right")):parseInt(h.getPropertyValue("padding-right")),a+=a>30?45:a>20?40:30;const f=o.querySelectorAll("#top nav > .sf-menu:not(.buttons) > li:nth-child("+Math.floor(c/2)+")");for(r=0;r<f.length;r++)o.body.classList.contains("rtl")?f[r].style.marginLeft=s+a+"px":f[r].style.marginRight=s+a+"px",f[r].classList.add("menu-item-with-margin");let g=0,y=0;const p=o.querySelectorAll("#top nav > .sf-menu:not(.buttons) > li:not(#social-in-menu)");for(var l=0;l<p.length;l++)l+1<=Math.floor(c/2)?g+=p[l].offsetWidth:y+=p[l].offsetWidth;const m=Math.abs(y-g);e&&(g>y||o.body.classList.contains("rtl")&&g<y?e.style.paddingRight=m+"px":e.style.paddingLeft=m+"px"),o.querySelectorAll("#header-outer nav").forEach(e=>{e.style.visibility="visible"})}else this.windowWidth<1e3&&(e.style.paddingRight="0",e.style.paddingLeft="0")},new i}(window.jQuery,window,document);