function onWindowResize(){fixLayoutOnWindowResize()}function GetUrlParameters(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return t==null?"":t[1]}function jumpTo(n){n.indexOf("#")!=0&&(n="#"+n);var t=$(n);isElementInViewport(t)||t.scrollView(800)}function isElementInViewport(n){n instanceof jQuery&&(n=n[0]);var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function handleExternalEvents(n,t){window.externalInstanceEventTracker&&(console.log("External Event Handled"+n+t),window.externalInstanceEventTracker(n,t))}function initLayout(){const n=$("body"),t=$("#msgwebcontainer"),i=n.attr("direction");i==="rtl"&&(t.css("direction","rtl"),n.css("direction","rtl"));switch(camilyo.bgStyle){case"Vertiacl":case"Centered":$("body.msgbody").css({"box-sizing":"border-box","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","-ms-box-sizing":"border-box","-o-box-sizing":"border-box"});$("#msgwebcontainer").css("height","100%");$("body").css("height","100%");break;case"Wide":$("html").css("height","100%");$("body.msgbody").css("height","100%");camilyo.stickyPanels.indexOf("Footer")!==-1&&$("html").css("height","")}fixLayoutOnWindowResize()}function fixFooterHeight(){var n=$("#FooterExternal");n.length==0&&(n=$(".FooterExternal_wp_outer").filter(":visible"));n.css("height","");var t=n.outerHeight(),i=n.position().top+t,r=$("body.msgbody").outerHeight();i$("html").get(0).clientHeight?n.css("height",""):n.css("height","100%");break;case"Wide":$("html").css("height","100%");camilyo.stickyPanels.indexOf("Footer")!=-1&&$("html").css("height","")}}function initStickyPanels(n){var l=1e5,f=$('[id="'+(camilyo.bgStyle=="Centered"?"Center":"Content")+'"]'),u,c,h,t,i,r,e,o,s;for(f.length==0&&camilyo.bgStyle!="Centered"&&(f=$('[id$="MainContent"]').filter(":visible")),u=$('[id$="Content"]').filter(":visible"),u.length==0&&(u=$('[id$="MainContent"]').filter(":visible")),c=camilyo.bgStyle!="Wide"?"Middle":"MiddleExternal",h=$('[id$="'+c+'"]').filter(":visible"),panels={},r=[],$.each(camilyo.stickyPanels,function(e,o){if(i=$('[id$="'+o+'"]').filter(":visible"),i.length==0&&(i=$("#Master"+o)),n&&camilyo.bgStyle=="Wide"&&o!="Right"&&o!="Left"&&(i.css("height",""),i.css("position",""),i.css("width",""),o=="HeaderExternal"&&window.outerWidth>$(window).width()&&$(window).height()+$(".HeaderExternal_wp_outer").outerHeight()-$("#msgwebcontainer").outerHeight()>=0&&$("body").css("overflow","hidden"),o=="FooterExternal"&&window.outerWidth>$(window).width()&&$(window).height()+$(".FooterExternal_wp_outer").outerHeight()+$(".HeaderExternal_wp_outer").outerHeight()-$("#msgwebcontainer").outerHeight()>=0&&$("body").css("overflow","hidden")),i.length!=0){t={width:i.outerWidth(),height:camilyo.bgStyle!="Vertical"||o!="Left"&&o!="Right"?i.outerHeight():"",position:"fixed","z-index":l};$("body").css("overflow","");switch(o){case"Header":case"HeaderExternal":t.top=0;(camilyo.platform=="MOBILE"||camilyo.platform=="TABLET")&&(t.left=0);r.push({$el:h,style:"margin-top",value:t.height});break;case"Footer":case"FooterExternal":t.bottom=0;(camilyo.platform=="MOBILE"||camilyo.platform=="TABLET")&&(t.left=0);r.push({$el:h,style:"margin-bottom",value:t.height});break;case"Left":camilyo.bgStyle!="Vertical"?(t.left=i.offset().left,t.width=i.outerWidth(),r.push({$el:f,style:"margin-left",value:t.width})):(t.left=0,t.top=0,t["overflow-y"]="auto");break;case"Right":if(camilyo.bgStyle!="Vertical"){t.left=i.offset().left;t.width=i.outerWidth();r.push({$el:f,style:"margin-right",value:t.width});break}else t.right=0,t.top=0,t["overflow-y"]="auto";break;case"ContentTop":t.top=$('[id$="HeaderExternal"]').filter(":visible").length==1?$('[id$="HeaderExternal"]').filter(":visible").outerHeight():0;r.push({$el:u,style:"padding-top",value:t.height});break;case"ContentBottom":t.bottom=$('[id$="FooterExternal"]').filter(":visible").length==1?$('[id$="FooterExternal"]').filter(":visible").outerHeight():0;r.push({$el:u,style:"padding-bottom",value:t.height})}panels[o]=t}}),fixContentBottom(),e=0;e<\/div>'),n.appendTo("body"));t="";u="";for(i in panels){t+=i+": ";for(f in panels[i])t+=f+":"+panels[i][f]+";";t+="
<\/br>";r=$("#Master"+i);u+="width:"+r.outerWidth()+";height:"+r.outerHeight()+";top:"+r.offset().top+";left:"+r.position().left;u+="
<\/br>"}n.append("Calculated Pos:
<\/br>");n.append(t);n.append("
<\/br>Dom Pos:
<\/br>");n.append(u)}function setGclidCookieIfExist(){const n=getUrlParameter("gclid");n!==""&&(document.cookie=`gclid=${n};`)}function getUrlParameter(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}var $mainContent,transitions,camilyoready,panels,supportsOrientationChange,orientationEvent,bPrintStickyPanelsLog;(function(n){n.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};n.expr[":"].uncached=function(t){return n(t).is('img[src!=""]')&&!t.complete};n.fn.waitForImages=function(t,i,r){if(t=t||n.noop,i=i||null,r=!!r,!n.isFunction(t))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var f=n(this),u=[],s,h,e,o;if(r?(s=n.waitForImages.hasImageProperties||[],h=/url\((['"]?)(.*?)\1\)/g,f.find("*").each(function(){var t=n(this);t.is("img:uncached")&&u.push({src:t.attr("src"),element:t[0]});n.each(s,function(n,i){var r=t.css(i),f;if(!r)return!0;while(f=h.exec(r))u.push({src:f[2],element:t[0]})})})):f.find("img:uncached").each(function(){u.push({src:this.src,element:this})}),e=u.length,o=0,e==0)try{t.call(f[0])}catch(c){console.error(c)}n.each(u,function(r,u){var s=new Image;n(s).bind("load error",function(n){return o++,i&&i.call(u.element,o,e,n.type=="load"),o==e?(t.call(f[0]),!1):void 0});s.src=u.src})})}})(jQuery);camilyoready=!1;$(document).ready(function(){setGclidCookieIfExist();$mainContent=$("#Content");$mainContent.length==0&&($mainContent=$(".Content_wp_outer").filter(":visible"));$(".mlhmenu, .megamenu, .login-user-status-container, .strip").click(function(){$(this).parents(".wp_first_col").not('[class*="MainColumns"]').css("overflow","visible")}).mouseenter(function(){$(this).parents(".wp_first_col").not('[class*="MainColumns"]').css("overflow","visible")}).on("keydown",function(n){n.key==="Tab"&&$(this).parents(".wp_first_col").not('[class*="MainColumns"]').css("overflow","visible")});$(window).resize(onWindowResize);typeof initLayout=="function"&&initLayout();$("#msgwebcontainer").waitForImages(function(){window.initStickyPanels&&(initStickyPanels(),typeof initLazyLoading=="function"&&initLazyLoading())});var n=document.getElementsByTagName("head")[0],t=n.insertBefore;n.insertBefore=function(i,r){if(i.href&&i.href.indexOf("//fonts.googleapis.com/css?family=Roboto")>-1){console.info("Prevented GM from loading Roboto !");return}t.call(n,i,r)};$(document).trigger("camilyoready");camilyoready=!0;$(window).resize(function(){var n=$(window).width();$(".HeaderInternal_wp_outer, .Middle_wp_outer, .FooterInternal_wp_outer").each(function(){$(this).outerWidth()>n?$(this).css("width",n):$(this).css("width","")})})});$(document).keydown(function(n){n.which==9&&($("body").hasClass("useTabKey")||$("body").addClass("useTabKey"))});$.fn.scrollView=function(n){return this.each(function(){$("html, body").animate({scrollTop:$(this).offset().top},n)})};Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this==null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r