function CheckSize(){var n=window.matchMedia("(min-width: 480px) and (max-width: 767px)"),t=window.matchMedia("(min-width: 768px) and (max-width: 991px)"),i=window.matchMedia("(min-width: 992px) and (max-width: 1199px)"),r=window.matchMedia("(min-width: 1200px)");n.matches&&currentSize!="xs"?(currentSize="xs",SmallSize()):t.matches&&currentSize!="sm"?(currentSize="sm",SmallSize()):i.matches&&currentSize!="md"?(currentSize="md",LargeSize()):r.matches&&currentSize!="lg"?(currentSize="lg",LargeSize()):$(".navbar-nav").height()>37&&(console.log("Catch"),DoMenu())}function DoMenu(){$(".nav > li > a").each(function(){$(this).removeAttr("style")});var t=$(".navbar .collapse").width()-8,n=$(".menu-top-label"),i=$(n).length,r=t/i;$(n).each(function(){var n=(r-$(this).outerWidth(!0))/2;$(this).css({"padding-left":n+"px","padding-right":n+"px"})})}function RemoveMenu(){$(".nav > li > a").each(function(){$(this).removeAttr("style")});$(".dropdown-menu").each(function(){$(this).removeAttr("style")})}function SmallSize(){RemoveMenu()}function LargeSize(){DoMenu()}function ResizeMenuColumns(n){if(n!=undefined){var t=$(n).map(function(){return $(this).height()}).get(),i=Math.max.apply(null,t);$(n).height(i)}}function RemoveColumnSizing(){$(".knowledgeColumn").removeAttr("style")}function CookieNotification(){var n=Cookies.get("CookieNotificationShown");n!=1&&(toastr.options={closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-bottom-full-width",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"0",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},toastr.options.onHidden=function(){Cookies.set("CookieNotificationShown",1,{expires:365})},toastr.warning("This website uses cookies for key functionality. By continuing to use this website you are giving consent to the use of cookies. Click here to read our <a href='/en/Privacy_Policy'>Privacy Policy<\/a>","Cookie Notice"))}function swapRotate(){rotatorData[rotateCounter].AppendLanguage?$("#HomeRotatorImage img").prop("src","/Content/images/home/"+rotatorData[rotateCounter].Image+rotatorLang+".jpg"):$("#HomeRotatorImage img").prop("src","/Content/images/home/"+rotatorData[rotateCounter].Image);$("#HomeRotatorImage").fadeIn(200);$("#RotatorBtn"+rotateCounter+" img").prop("src","/Content/images/home/Rotator_On.png");$("#RotatorBtn"+prevRotatorBtn+" img").prop("src","/Content/images/home/Rotator_Off.png");prevRotatorBtn=rotateCounter;SetButtons()}function Rotate(n){rotatorLang=n;autoRotater=window.setInterval(RotateAuto,5e3);autoRotating=!0;document.addEventListener("SizeChange",SetButtons,!1);SetButtons()}function RotateAuto(){prevRotatorBtn=rotateCounter;rotateCounter==rotatorData.length-1?rotateCounter=0:rotateCounter+=1;$("#HomeRotatorImage").fadeOut(200,swapRotate)}function RotateStop(){window.clearInterval(autoRotater);autoRotating=!1}function RotateLeft(){autoRotating&&RotateStop();prevRotatorBtn=rotateCounter;rotateCounter==0?rotateCounter=rotatorData.length-1:rotateCounter-=1;$("#HomeRotatorImage").fadeOut(200,swapRotate)}function RotateRight(){autoRotating&&RotateStop();prevRotatorBtn=rotateCounter;rotateCounter==rotatorData.length-1?rotateCounter=0:rotateCounter+=1;$("#HomeRotatorImage").fadeOut(200,swapRotate)}function RotateTo(n){autoRotating&&RotateStop();rotateCounter=n;$("#HomeRotatorImage").fadeOut(200,swapRotate)}function SetButtons(){if(rotatorData[rotateCounter].FullImageLink)$("#HomeRotatorImage").css("cursor","pointer").on("click",function(){window.location=rotatorData[rotateCounter].FullImageLinkUrl});else $("#HomeRotatorImage").css("cursor","default").off("click")}function ClearButtons(){$("#Btn1").hide();$("#Btn2").hide()}function SetupHomeThumbnails(){$(".homeThumbnailCell").on("mouseover",function(){$(this).css("background-image","url('/Content/images/Home/HOME_PRODUCT_"+$(this).data("name")+"_on.jpg')")});$(".homeThumbnailCell").on("mouseout",function(){$(this).css("background-image","url('/Content/images/Home/HOME_PRODUCT_"+$(this).data("name")+"_off.jpg')")})}function ShowContent(n){if(currentSection==null&&(currentSection=$("div").find("[data-state='visible']").prop("id")),currentSection==n){var t=$("#"+n).data("state");t=="hidden"?($("#"+n).slideDown(),$("#"+n+"Icon").prop("src","/Content/images/minus.png"),$("#"+n).data("state","visible")):($("#"+n).slideUp(),$("#"+n+"Icon").prop("src","/Content/images/plus.png"),$("#"+n).data("state","hidden"))}else currentSection!=""&&($("#"+currentSection).slideUp(),$("#"+currentSection+"Icon").prop("src","/Content/images/plus.png"),$("#"+currentSection).data("state","hidden")),$("#"+n).slideDown(),$("#"+n+"Icon").prop("src","/Content/images/minus.png"),$("#"+n).data("state","visible"),currentSection=n}function ShowContentOnCheck(n){var t=$(n.target).data("target");$(n.target).is(":checked")?$("#"+t).slideDown():$("#"+t).slideUp()}var currentSize,allImages,cache,currentSection;(function(n){n.fn.justifyNav=function(){return this.each(function(){var i=n(this),t=i.children(),f=i.width(),r=0,e=t.length,u;t.each(function(){r+=n(this).outerWidth()});u=Math.floor((f-r)/(e-1));t.css("margin-right",u+"px").filter(":last").css({"margin-right":0,float:"right"}).prev().css({"margin-right":0})})}})(jQuery);$("ul.nav li.dropdown").hover(function(){window.matchMedia("(min-width: 992px)").matches&&($(this).find(".dropdown-menu").stop(!0,!0).show(),$(this).attr("id")=="KnowledgeMenu"&&setTimeout(ResizeMenuColumns(".knowledgeColumn"),200))},function(){window.matchMedia("(min-width: 992px)").matches&&$(this).find(".dropdown-menu").stop(!0,!0).delay(200).fadeOut(200)});$(".columnResize").on("click",function(){window.matchMedia("(min-width: 992px)").matches&&ResizeMenuColumns($(this).data("target"))});var rotatorImages=["ROTATOR01.jpg","ROTATOR02.jpg","ROTATOR03.jpg","ROTATOR04.jpg","ROTATOR05.jpg"],rotatorData=[{Image:"ROTATOR01.jpg"},{Image:"ROTATOR_Corona_",FullImageLink:!0,FullImageLinkUrl:"/covid19",AppendLanguage:!0},{Image:"ROTATOR02.jpg"},{Image:"ROTATOR03.jpg"},{Image:"ROTATOR04.jpg"},{Image:"ROTATOR05.jpg"}],rotateCounter=0,prevRotatorBtn=0,autoRotater,autoRotating=!1,rotatorLang="en";allImages=["ROTATOR01.jpg","ROTATOR02.jpg","ROTATOR03.jpg","ROTATOR04.jpg","ROTATOR05.jpg","HOME_PRODUCT_Lean_off.jpg","HOME_PRODUCT_Lean_on.jpg","HOME_PRODUCT_Custom_off.jpg","HOME_PRODUCT_Custom_on.jpg","HOME_PRODUCT_Facility_off.jpg","HOME_PRODUCT_Facility_on.jpg","HOME_PRODUCT_FirstAid_off.jpg","HOME_PRODUCT_FirstAid_on.jpg","HOME_PRODUCT_Furniture_off.jpg","HOME_PRODUCT_Furniture_on.jpg","HOME_PRODUCT_Matting_off.jpg","HOME_PRODUCT_Matting_on.jpg","HOME_PRODUCT_Signage_off.jpg","HOME_PRODUCT_Signage_on.jpg","HOME_PRODUCT_Striping_off.jpg","HOME_PRODUCT_Striping_on.jpg"];cache=[];$.preLoadImages=function(){for(var n,i=allImages.length,t=i;t--;)n=document.createElement("img"),n.src="/Content/images/home/"+allImages[t],cache.push(n)}