1function validateEmail(email){var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;var address=email;if(reg.test(address)==false){return false}return true}function menu_fit_font(l,a){switch(l){default:a=1;case"cs":case"en":a=1.16;break;case"de":case"pl":a=1.11;break;case"ru":a=.9;break}if(typeof a=="undefined"){a=.9}var menu_container=$("#menu").width();var mfont_size=$(".mainmenu .mitem > a, .top_reservation > a").css("font-size");var mfont_size_new=a*menu_container/100;if(mfont_size_new<11){$("#menu .mainmenu").addClass("mobilemenu");$("#menu .menu_toggle").show();$(".mainmenu .mitem > a, .top_reservation > a").css({"font-size":"1.4em"})}else{$("#menu .mainmenu").removeClass("mobilemenu");$("#menu .mainmenu").show();$("#menu .menu_toggle").hide();$(".mainmenu .mitem > a, .top_reservation > a").css({"font-size":mfont_size_new+"px"})}}function fancyboxFormatTitle(title,currentArray,currentIndex,currentOpts){var ft="";ft+='<div id="fancybox_title">';if(currentArray.length>1){ft+='<span id="fancybox_title_count">';ft+=currentIndex+1+"/"+currentArray.length;ft+="</span>";ft+=title&&title.length?'<span id="fancybox_title_label">'+title+"</span>":""}ft+="</div>";return ft}(function($){$.fn.antispam=function(options){var settings={emailname:"i",emaildomain:"d",emailltd:"c"};if(options){$.extend(settings,options)}this.each(function(){aemail=$(this).html().split(",");if(aemail[0]==undefined){aemail[0]=settings.emailname}if(aemail[1]==undefined){aemail[1]=settings.emaildomain}if(aemail[2]==undefined){aemail[2]=settings.emailltd}$(this).attr("href","mailto:"+aemail[0]+"@"+aemail[1]+"."+aemail[2]);if(aemail[3]==undefined){$(this).html(aemail[0]+"@"+aemail[1]+"."+aemail[2])}else{$(this).html(aemail[3])}})}})(jQuery);(function($){$.fn.inputAlterText=function(options){this.each(function(){var o=$(this);var a;var t=o.attr("title");o.val(t);o.addClass("empty");o.focus(function(){a=o.val()==""||o.val()==t?"":o.val();if(a==t){o.addClass("empty")}else{o.removeClass("empty")}o.val(a)});o.blur(function(){a=o.val()==""?t:o.val();if(a==t){o.addClass("empty")}else{o.removeClass("empty")}o.val(a)})})}})(jQuery);var cab_offset=0;function cab_position(){if($("html").hasClass("mobilemenu")){}else{if(cab_offset==0){if($("#cab1").length){if($("#cab1").offset().top<$(window).height()){cab_offset=$("#cab1").offset().top}}}if($(window).scrollTop()>=cab_offset-$("#top_menu").height()||$(".zs-slider").find("iframe").length){$("html").addClass("CAB_FIXED_TOP")}else{$("html").removeClass("CAB_FIXED_TOP");$("html").removeClass("CAB_OPENED")}if($(window).height()-$(window).scrollTop()-$("#top_menu").outerHeight(true)-$(".cab1Select .select-items").outerHeight(true)-$("#cab1").outerHeight(true)-parseInt($("#cab1").css("bottom"))>0){$("html").addClass("SELECT_TOP")}else{$("html").removeClass("SELECT_TOP")}}}var isMobile=false;$(document).ready(function(){$("html").removeClass("JS_HIDE_ELEMENTS");if($(window).width()<1200){$("html").removeClass("MENU_OPENED");$("#corp_hamburger").removeClass("is-active");window.dispatchEvent(new Event("resize"))}if(!$("#hp_intro").length){$("html").addClass("no_slide_intro")}if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))){isMobile=true}main_menu_mobile_size();main_menu_mobile_size();resizeCorpMenuInside();$(window).resize(function(){main_menu_mobile_size();resizeCorpMenuInside()});topNavHandlers();$(document).on("click",".js_active_lang_box .active",function(e){e.preventDefault()});$(window).scroll(function(){cab_position()});if($(window).width()<1400){$("html").addClass("CAB_FIXED_TOP")}$("body").on("click",".jsSlideToFirstBlock",function(e){e.preventDefaul$;$("html, body").animate({scrollTop:$(".firstBlockAnchor").eq(0).offset().top-$("#top_menu").outerHeight()},"slow")});$("body").on("click",".jsValueAdd",function(e){e.preventDefault();e.stopImmediatePropagation();var curr=parseInt($(this).parent().prev().val());var limit=99;if($(this).parent().prev().attr("max")){limit=parseInt($(this).parent().prev().attr("max"))}if(isNaN(curr)){curr=0}if(curr<0){$(this).parent().prev().val(0)}else if(curr>=limit){$(this).parent().prev().val(limit)}else{$(this).parent().prev().val(curr+1)}});$("body").on("click",".jsValueSub",function(e){e.preventDefault();var curr=parseInt($(this).parent().prev().val());var limit=99;if($(this).parent().prev().attr("max")){limit=parseInt($(this).parent().prev().attr("max"))}if(isNaN(curr)){curr=0}if(curr<=0){$(this).parent().prev().val(0)}else if(curr>limit){$(this).parent().prev().val(limit)}else{$(this).parent().prev().val(curr-1)}});$(".jsSwapFloorplan").click(function(e){e.preventDefault();var index=$(this).attr("data-floorplan");$(".jsSwapFloorplan").removeClass("active");$(".block-Floorplan .block_images").removeClass("active");$(this).addClass("active");$('.block-Floorplan .block_images[data-floorplan="'+index+'"]').addClass("active");window.dispatchEvent(new Event("resize"));$(window).trigger("resize");console.log(index);$('.block-Floorplan .block_images[data-floorplan="'+index+'"]').find(".jsBlockSlick").slick("refresh")});$("body").on("click",".jsCardTrigger",function(){$(this).parents(".block").find(".jsCardTrigger").removeClass("active");$(this).addClass("active");var index=parseInt($(this).attr("data-card_index"));$(this).parents(".block").find(".jsCardSwitch").removeClass("active");$(this).parents(".block").find('.jsCardSwitch[data-card_index="'+index+'"]').addClass("active")});$("body").on("mouseover",".jsCardItemHover",function(){if(!$(this).find(".jsCardTrigger").hasClass("active")){$(this).parents(".block").find(".jsCardTrigger").removeClass("active");$(this).find(".jsCardTrigger").addClass("active")}});$("body").on("click",".page_nav .card_name",function(){var index=parseInt($(this).attr("data-card_index"));if($("#hotel_bar").length){$("html, body").animate({scrollTop:$(".page_content > .block").eq(index).offset().top-$("#top_menu").outerHeight()-$("#hotel_bar").outerHeight()},"slow")}else{$("html, body").animate({scrollTop:$(".page_content > .block").eq(index).offset().top-$("#top_menu").outerHeight()},"slow")}});$(".mainmenu-mobile > .mitem").click(function(){$("HTML").removeClass("MENU_OPENED");$(this).toggleClass("active");var height=0;if($(this).hasClass("active")){$(this).find(".submenulist .mitem_sub").each(function(){height+=$(this).height()})}$(this).find(".submenulist").css("max-height",height+"px")});$("body").on("click",".jsShowMore",function(e){e.preventDefault();var el=$(this).parents(".jsShowMoreAnchor").find(".jsDisplayOnShowMore");var el_height=0;el.children().each(function(){if($(this).outerHeight()>0){el_height+=$(this).outerHeight(true)}});el.css("max-height",el_height+"px");el.removeClass("hidden");$(this).hide();$(this).parents(".jsShowMoreAnchor").find(".jsShowLess").show()});$("body").on("click",".jsShowLess",function(e){e.preventDefault();var el=$(this).parents(".jsShowMoreAnchor").find(".jsDisplayOnShowMore");el.addClass("hidden");el.css("max-height",el.attr("data-max-height")||"0px");setTimeout(function(){el.parents(".jsShowMoreAnchor").find(".jsShowMore").fadeIn()},500);$(this).hide();$(this).parents(".jsShowMoreAnchor").find(".jsShowMore").show()});$("body").on("click",".jsToggleMore",function(e){e.preventDefault();var el=$(this).parents(".jsShowMoreAnchor").find(".jsDisplayOnShowMore");if(!$(this).hasClass("active")){var el_height=0;el.children().each(function(){if($(this).outerHeight()>0){el_height+=$(this).outerHeight(true)}});el.css("max-height",el_height+"px")}else{el.css("max-height","0px")}$(this).parents(".jsShowMoreAnchor").toggleClass("active");$(this).toggleClass("active")});$("body").on("click",".jsDisplaySubcategory",function(e){e.preventDefault();var el=$(this).parents(".submenu_category").find(".submenu_category_block");var el_height=0;if(el.height()==el_height){el.children().each(function(){if($(this).outerHeight()>0){el_height+=$(this).outerHeight(true)}})}el.css("max-height",el_height+"px");$(this).find("toggleContent").toggleClass("active")});$("body").on("click",".jsDisplayList",function(e){e.preventDefault();var el=$(this).parents(".sc-tile").find(".sc-list");var el_height=0;if(el.height()==el_height){el.children().each(function(){if($(this).outerHeight()>0){el_height+=$(this).outerHeight(true)}})}var el2=$(this).parents(".submenu_category").find(".submenu_category_block");el.css("max-height",el_height+"px");el2.css("max-height",el2.height()+el_height+"px");$(this).find("toggleContent").toggleClass("active")});$("body").on("click",".jsShowSearchBar",function(e){e.preventDefault();var el=$(".search_bar");var el_height=0;if(el.hasClass("hidden")){el.children().each(function(){if($(this).outerHeight()>0){el_height+=$(this).outerHeight(true)}})}el.css("max-height",el_height+"px");el.toggleClass("hidden")});$(".search_header").click(function(e){e.preventDefault();var el=$(this).parents(".search_category").find(".search_options");var el_height=0;if(!$(this).parents(".search_category").hasClass("shown")){el.children().each(function(){if($(this).outerHeight()>0){el_height+=$(this).outerHeight(true)}})}el.css("max-height",el_height+"px");if($(window).width()<800){$(".search_bar").css("max-height",$(".search_bar").height()+el_height+"px")}$(this).parents(".search_category").toggleClass("shown")});if(document.selection&&document.selection.empty){document.selection.empty()}else if(window.getSelection){var sel=window.getSelection();sel.removeAllRanges()}$(window).on("load",function(){$("html").addClass("JS_LOADED");checkHotelBarScroll()});var position=$(window).scrollTop();var hidden_by_scroll=0;var scroll=$(window).scrollTop();$(window).scroll(function(){checkHotelBarScroll()});function checkHotelBarScroll(){var scroll=$(window).scrollTop();if(scroll<position-50){if($("#hotel_bar").length){$("html").removeClass("HIDE_HOTEL_BAR")}position=scroll}else if(scroll>position){if($("#hotel_bar").length){$("html").addClass("HIDE_HOTEL_BAR")}position=scroll}if(scroll>0){$("html").addClass("SCROLLED")}else{$("html").removeClass("SCROLLED");if($("#hotel_bar").length){$("html").removeClass("HIDE_HOTEL_BAR")}position=scroll}}$(".jsCloseInfobar").on("click",function(e){$(".infobar").addClass("hidden");$.ajax({url:"/files/set_infobar_timeout.php",success:function(data){console.log("hide infobar")}})});animations();$(window).scroll(function(){animations();fix_on_scroll();hideMiceNavigation()});var x,i,j,selElmnt,a,b,c;x=document.getElementsByClassName("custom-select");for(i=0;i<x.length;i++){selElmnt=x[i].getElementsByTagName("select")[0];a=document.createElement("DIV");a.setAttribute("class","select-selected");a.innerHTML=parseOption(selElmnt.options[selElmnt.selectedIndex].innerHTML);x[i].appendChild(a);b=document.createElement("DIV");b.setAttribute("class","select-items select-hide");for(j=0;j<selElmnt.length;j++){c=document.createElement("DIV");c.innerHTML=parseOption(selElmnt.options[j].innerHTML);c.setAttribute("data-value",selElmnt.options[j].value);c.addEventListener("click",function(e){var y,i,k,s,h;s=this.parentNode.parentNode.getElementsByTagName("select")[0];h=this.parentNode.previousSibling;for(i=0;i<s.length;i++){if(parseOption(s.options[i].innerHTML)==this.innerHTML){s.selectedIndex=i;h.innerHTML=parseOption(this.innerHTML);y=this.parentNode.getElementsByClassName("same-as-selected");for(k=0;k<y.length;k++){y[k].removeAttribute("class")}this.setAttribute("class","same-as-selected");break}}h.click()});b.appendChild(c)}x[i].appendChild(b);a.addEventListener("click",function(e){e.stopPropagation();if($(this).hasClass("select-arrow-active")){$(".jsFormInputPrijezd").datepicker("show")}closeAllSelect(this);this.nextSibling.classList.toggle("select-hide");this.classList.toggle("select-arrow-active");if($(window).width()<600){if($("#hotel_bar").length){$("#cab1 .select-items").height($(window).innerHeight()-$("#cab1 .select-items").position().top-$("#cab1 .custom-select").position().top-$("#top_menu").height()-$("#hotel_bar").height()-45)}else{$("#cab1 .select-items").height($(window).innerHeight()-$("#cab1 .select-items").position().top-$("#cab1 .custom-select").position().top-$("#top_menu").height()-45)}}})}document.addEventListener("click",closeAllSelect);reseizeTitles();$(window).on("resize",function(){reseizeTitles();checkCardTextOverflow();toggleCardText($(".card_text_item"),false);freezeCardTextHeight(false)});$(document).on("click",".card_text-show-more",function(){if($(this).closest(".card_text_item").hasClass("scrolled")){toggleCardText($(this).closest(".card_text_item"))}else{toggleCardText($(this).closest(".card_text_item"),false)}})});function reseizeTitles(){const className=".room_container .room_name";$(className).height("auto");const elements=$(className);let tallestHeight=0;elements.each(function(){const height=$(this).height();tallestHeight=Math.max(tallestHeight,height)});elements.each(function(){$(this).height(tallestHeight)})}function toggleCardText(service,open=true){if(open){freezeCardTextHeight();$(service).removeClass("scrolled");$(service).find(".card_text-show-more").text(readLessTrans);freezeCardTextHeight()}else{$(service).addClass("scrolled");$(service).find(".card_text-show-more").text(readMoreTrans);freezeCardTextHeight(false)}}function freezeCardTextHeight(freeze=true){if(freeze){$(".card_text_item").each(function(){if($(this).hasClass("scrolled")){$(this).css("height",$(this).outerHeight()+"px")}else{$(this).css("height","unset")}})}else{$(".card_text_item").each(function(){$(this).css("height","unset")})}}function checkCardTextOverflow(){const serviceDescElements=document.querySelectorAll(".card_text-desc");
1serviceDescElements.forEach(serviceDesc=>{const clone=serviceDesc.cloneNode(true);clone.style.display="block";clone.style.visibility="hidden";clone.style.position="absolute";clone.style.width=getComputedStyle(serviceDesc).width;clone.style.webkitBoxOrient="initial";clone.style.webkitLineClamp="initial";document.body.appendChild(clone);const showMoreButton=serviceDesc.parentElement.nextElementSibling;if(clone.scrollHeight>serviceDesc.clientHeight){if(showMoreButton&&showMoreButton.classList.contains("card_text-show-more")){showMoreButton.style.visibility="unset"}}else{if(showMoreButton&&showMoreButton.classList.contains("card_text-show-more")){showMoreButton.style.visibility="hidden"}}document.body.removeChild(clone)})}$(window).on("load",function(e){checkCardTextOverflow();setNumberAnimations();if($("#cab1").length){cab_offset=$("#cab1").offset().top;$(".jsShowCAB").click(function(e){$("html").toggleClass("CAB_OPENED")});$(".jsHideCAB").click(function(e){$("html").toggleClass("CAB_OPENED")});cab_position();fix_on_scroll();calculateSubmenuWithBanner()}formHandlers();$("a.mail").antispam({emailname:"info",emaildomain:"beerspa",emailltd:"com"});if($(".jsPopupTrigger").length){$(".jsPopupTrigger").click()}setTimeout(function(){$(".colored_link").each(function(){$(this).attr("data-content",$(this).text())})},250)});$(".faq-category-button").on("click",function(){let id=$(this).data("category");$([document.documentElement,document.body]).animate({scrollTop:$("#faq-category-"+id).offset().top-200},1e3)});$(".group-header-button").on("click",function(){if(!$(this).hasClass("unclickable")){console.log("Group click");$(".group-header-button.active").removeClass("active");$(this).addClass("active");$(".group-header-button").addClass("unclickable");activateCrossClients()}else{console.log("clicked too fast")}});function activateCrossClients(){let activeButton=$(".group-header-button.active");let activeGroup=activeButton.data("group");let lastActiveGroup=$(".clients-group.active").data("group");let $newActiveGroup=$('.clients-group[data-group="'+activeGroup+'"]');let $lastActiveGroup=$('.clients-group[data-group="'+lastActiveGroup+'"]');$newActiveGroup.on("animationend",function(event){$(this).off("animationend");console.log("New group animation end");$(".group-header-button").removeClass("unclickable")});$lastActiveGroup.on("animationend",function(event){$(this).off("animationend");console.log("Last group animation end");$lastActiveGroup.css("position","absolute");$lastActiveGroup.css("visibility","hidden");$newActiveGroup.css("position","relative");$newActiveGroup.css("visibility","visible");$newActiveGroup.addClass("active").removeClass("vanish")});$lastActiveGroup.css("position","relative");$lastActiveGroup.css("visibility","visible");$lastActiveGroup.addClass("vanish").removeClass("active")}function animations(){$(".jsBlockSlideAnim").each(function(){if($(window).scrollTop()+$(window).height()>$(this).offset().top+250){$(this).removeClass("jsBlockSlideAnim")}});$(".jsBlockAnim").each(function(){if($(window).scrollTop()+$(window).height()>$(this).offset().top+250){$(this).removeClass("jsBlockAnim")}});$(".jsTableAnim").each(function(){if($(window).scrollTop()+$(window).height()>$(this).offset().top+250){$(this).removeClass("jsTableAnim")}});$(".jsSOAnim").each(function(){if($(window).scrollTop()+$(window).height()>$(this).offset().top+150){$(this).removeClass("jsSOAnim")}});$(".jsRoomsAnim").each(function(){if($(window).scrollTop()+$(window).height()>$(this).offset().top+150){$(this).removeClass("jsRoomsAnim")}});$(".jsIconAnim").each(function(){if($(window).scrollTop()+$(window).height()>$(this).offset().top+250){$(this).removeClass("jsIconAnim")}})}function parseOption(optionText){optionText=optionText.replace("@",'<div class="sub">');optionText=optionText.replace("#","</div>");return optionText}function closeAllSelect(elmnt){var x,y,i,arrNo=[];x=document.getElementsByClassName("select-items");y=document.getElementsByClassName("select-selected");for(i=0;i<y.length;i++){if(elmnt==y[i]){arrNo.push(i)}else{y[i].classList.remove("select-arrow-active")}}for(i=0;i<x.length;i++){if(arrNo.indexOf(i)){x[i].classList.add("select-hide")}}}function arrayContainsString(array,string){var newArr=array.filter(function(el){return el.indexOf(string)>=0});return newArr.length>0}var trigger_point=[];var get_position=0;function fix_on_scroll(){if(!get_position||trigger_point.includes(0)){var index=trigger_point.indexOf(0);if(index>-1){trigger_point.splice(index,1)}
1$(".jsScrollFixOnTop").each(function(){if($("#hotel_bar").length){trigger_point.push($(this).offset().top-$("#hotel_bar").height()-$("#top_menu").height())}else{trigger_point.push($(this).offset().top-$("#top_menu").height())}});get_position=1}$(".jsScrollFixOnTop").each(function(index){if($(window).scrollTop()>trigger_point[index]){$(this).addClass("fixed");$("html").addClass("FIXED_ELEMENT_ATTACHED")}else{$(this).removeClass("fixed");$("html").removeClass("FIXED_ELEMENT_ATTACHED")}});var closest_block=$(window).height();$(".FIXED_ELEMENT_ATTACHED .block").each(function(index){if($(this).attr("data-block_index")){if($("#hotel_bar").length){var differ=Math.abs($(this).offset().top-$(window).scrollTop()-$("#hotel_bar").height()-$("#top_menu").height())}else{var differ=Math.abs($(this).offset().top-$(window).scrollTop()-$("#top_menu").height())}if(differ<closest_block){closest_block=differ;$(".card_name").removeClass("active");$('.card_name[data-card_index="'+index+'"]').addClass("active")}}})}var real_width=0;var shrunk_width=0;function main_menu_mobile_size(){if($("html").hasClass("menu_shrunk")||shrunk_width>real_width){shrunk_width=0;shrunk_width+=$(".menu_shrunk #corp_hamburger").outerWidth(true);shrunk_width+=$(".menu_shrunk #top_logo").outerWidth(true);$(".menu_shrunk .mainmenu .mitem").each(function(){shrunk_width+=$(this).outerWidth(true)});if($(".menu_shrunk #top #top_menu #gopass").length){shrunk_width+=$(".menu_shrunk #top #top_menu #gopass").outerWidth(true)}if($(".menu_shrunk #top #top_menu .langs_holder").length){shrunk_width+=$(".menu_shrunk #top #top_menu .langs_holder").outerWidth(true)}}else if(!$("html").hasClass("menu_shrunk")){real_width=0;real_width+=$("#corp_hamburger").outerWidth(true);real_width+=$("#top_logo").outerWidth(true);$(".mainmenu .mitem").each(function(){real_width+=$(this).outerWidth(true)});if($("#top #top_menu #gopass").length){real_width+=$("#top #top_menu #gopass").outerWidth(true)}if($("#top #top_menu .langs_holder").length){real_width+=$("#top #top_menu .langs_holder").outerWidth(true)}}var w=$(window).width();if(w<real_width){if(w<shrunk_width&&$("html").hasClass("menu_shrunk")){$("html").addClass("mobilemenu")}else{$("html").removeClass("mobilemenu")}$("html").addClass("menu_shrunk")}else{$("html").removeClass("menu_shrunk");$("html").removeClass("mobilemenu")}}function resizeCorpMenuInside(){let corp_menu_height=document.getElementById("corp_menu").scrollHeight;$("#corp_menu .right_side").height(corp_menu_height)}function formHandlers(){$(document).on("submit","form.inquiry_form",function(e){e.preventDefault();var submit=$(this).find(".form_submit");submit.attr("disabled",true);setTimeout(function(){submit.attr("disabled",false)},2e3);var postData={};var form=$(this).serializeArray();for(var i=0;i<form.length;i++){if(form[i]["name"].endsWith("[]")){var name=form[i]["name"];name=name.substring(0,name.length-2);if(!(name in postData)){postData[name]=[]}postData[name].push(form[i]["value"])}else{postData[form[i]["name"]]=form[i]["value"]}}$.ajax({type:"POST",data:{parameters:postData},url:"/files/inquiry-form.php",success:function(data){if(data.status==1){alert(data.message);refreshForm("form.inquiry_form");getCaptchaReady()}else{alert(data.message);console.log(data.error);if(data.error!="recaptcha"){getCaptchaReady()}}}})})}function hideMiceNavigation(){if($(".mice_navigation").length&&!$(".search_bar").length){if($(document).height()-$(window).scrollTop()-$(window).height()-$(".bottom_footer").outerHeight(true)<0){$(".mice_navigation").fadeOut()}else{$(".mice_navigation").fadeIn()}}}function topNavHandlers(){$("html").addClass("menu_toggled");if(window.innerWidth<800||window.innerHeight<675&&$("html").hasClass("sec_group_3")){$("html").removeClass("menu_toggled");$(".js_menu_toggle").removeClass("is-active")}if(document.getElementById("map")&&$(window).scrollTop>=$("#map").offset().top-$(".cab").outerHeight()){$("html").removeClass("menu_toggled")}$(document).on("scroll",function(){if(document.getElementById("map")&&$(window).scrollTop()>=$("#map").offset().top-$(".cab").outerHeight()){$("html").removeClass("menu_toggled");$(".js_menu_toggle").removeClass("is-active");$("html").removeClass("menu_toggled");$("html").addClass("scroll_toggle_menu")}else if($("html").hasClass("scroll_toggle_menu")){$("html").addClass("menu_toggled");$(".js_menu_toggle").addClass("is-active");$("html").addClass("menu_toggled");$("html").removeClass("scroll_toggle_menu")}checkFooterVisibility()});$(".jsGopassLogin").on("click",function(e){e.preventDefault();$(".login-wrap").fadeIn();login_url=$(this).attr("login-href")});$(".jsGopassLogout").on("click",function(e){e.preventDefault();$.ajax({type:"POST",data:{logout:1},url:"/files/gopass_api.php",success:function(data){window.location.reload()}})});$("#corp_menu .corpmenu .mitem").on("click",function(e){e.stopPropagation();$(this).toggleClass("hovered")});$(".jsGopassReg").on("click",function(e){e.preventDefault();$(".login-wrap").fadeIn();$(".sign-up").click()});$(".jsGopassClose").on("click",function(e){e.preventDefault();$(".login-wrap").fadeOut()});$("#user-info").dialog({autoOpen:false,width:"auto",maxWidth:800,fluid:true});$(".jsShowProfile").on("click",function(e){e.preventDefault()});$(".jsHideProfile").on("click",function(e){e.preventDefault();$("#user-info").dialog("close")})}function calculateSubmenuWithBanner(){$(".mainmenu .mitem.subyes").each(function(){if($(this).hasClass("subyes")){if($(this).find(".sub_column_banner").length){var height=0;$(this).find(".sub_column_banner > *").each(function(){height+=$(this).outerHeight(true)});height+=20;if(height>=280){$(this).find(".banner").css("height","180px");
1$(this).attr("data-sub_height",height)}console.log(height)}}});$(".mainmenu .mitem.subyes").on("mouseover",function(e){if($(this).attr("data-sub_height")){$(this).find(".submenulist").css("max-height",$(this).attr("data-sub_height")+"px")}});$(".mainmenu .mitem.subyes").on("mouseout",function(e){if($(this).attr("data-sub_height")){$(this).find(".submenulist").css("max-height",0)}})}function getCaptchaReady(){console.log("Getting recaptcha ready");grecaptcha.ready(function(){grecaptcha.execute("6Lf5n2srAAAAACqq89cPU0j_J5hcsZfLEpIM-Kcs",{action:"validate_captcha"}).then(function(token){$(".g-recaptcha-response").val(token)})})}getCaptchaReady();function dateFocus(input){input.type="date";input.showPicker()}function dateDefocus(input){if(input.value==""){input.type="text"}}function timeFocus(input){input.type="time";input.showPicker()}function timeDefocus(input){if(input.value==""){input.type="text"}}function showsSpeakerInfo(speaker,readmore,readless){$(".speaker-tiles .speaker .speaker-info-button").text(readmore);if($(speaker).parent().hasClass("unwrapped")){$(".speaker-tiles .speaker").css("height","auto");$(".speaker-tiles .speaker").removeClass("unwrapped")}else{$(".speaker-tiles .speaker").css("height","auto");$(".speaker-tiles .speaker").removeClass("unwrapped");$(".speaker-tiles .speaker").each(function(index){$(this).css("height",$(this).height()+"px")});$(speaker).parent().css("height","auto");$(speaker).parent().addClass("unwrapped");$(speaker).text(readless)}}function refreshForm(element){$(element).find(":input").each(function(){var elementType=this.tagName.toLowerCase();switch(elementType){case"input":var type=$(this).attr("type").toLowerCase();switch(type){case"checkbox":case"radio":$(this).prop("checked",false);break;default:$(this).val("");break}break;case"select":$(this).prop("selectedIndex",0);break;case"textarea":$(this).val("");break}})}function setNumberAnimations(){const headings=document.querySelectorAll("h2, h3");const observerOptions={root:null,rootMargin:"0px",threshold:[0,.5]};const delayBeforeAnimation=500;function animateNumber(element,number,originalText,formatPattern){const duration=1e3;const startTime=performance.now();function updateNumber(currentTime){const elapsedTime=currentTime-startTime;const progress=Math.min(elapsedTime/duration,1);const currentNumber=Math.floor(progress*number);const formattedNumber=currentNumber.toString().replace(/\B(?=(\d{3})+(?!\d))/g,formatPattern);element.innerHTML=originalText.replace(/[0-9,.\s]+/,`<span>${formattedNumber}</span>`);if(progress<1){requestAnimationFrame(updateNumber)}else{const finalNumber=number.toString().replace(/\B(?=(\d{3})+(?!\d))/g,formatPattern);element.innerHTML=originalText.replace(/[0-9,.\s]+/,`<span>${finalNumber}</span>`)}}requestAnimationFrame(updateNumber)}function handleIntersection(entries,observer){entries.forEach(entry=>{const originalText=entry.target.getAttribute("data-original-text")||entry.target.textContent;entry.target.setAttribute("data-original-text",originalText);const numberMatch=originalText.match(/([0-9,.\s]+)/);if(numberMatch){const formatPattern=numberMatch[0].includes(" ")?" ":numberMatch[0].includes(",")?",":numberMatch[0].includes(".")?".":"";const number=parseInt(numberMatch[0].replace(/[^0-9]/g,""),10);if(isNaN(number))return;if(entry.intersectionRatio>0&&entry.intersectionRatio<.5){entry.target.innerHTML=originalText.replace(numberMatch[0],`<span>0</span>`)}else if(entry.isIntersecting&&entry.intersectionRatio>=.5){setTimeout(()=>{animateNumber(entry.target,number,originalText,formatPattern)},delayBeforeAnimation);observer.unobserve(entry.target)}}})}const observer=new IntersectionObserver(handleIntersection,observerOptions);
1headings.forEach(heading=>{const originalText=heading.getAttribute("data-original-text")||heading.textContent;const numberMatch=originalText.match(/([0-9,.\s]+)/);if(numberMatch){const number=parseInt(numberMatch[0].replace(/[^0-9]/g,""),10);if(isNaN(number))return;heading.setAttribute("data-original-text",originalText);heading.innerHTML=originalText.replace(numberMatch[0],`<span>0</span>`);observer.observe(heading)}})}$(document).ready(function(){$("#session-popup .popup-close, #session-popup .popup-overlay").on("click",function(){$("#session-popup").fadeOut();console.log("Popup closed")});$(".floating-menu-item").each(function(){const $menuItem=$(this);const contentId="floating-menu-item-content-"+$menuItem.data("groupid");if($("#"+contentId).length>0){$menuItem.addClass("has-submenu");$menuItem.append('<span class="submenu-indicator">></span>')}});let activeTimeouts={};function positionSubmenu($submenu,$parent){$submenu.css({position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"100%","margin-bottom":"10px"});if($submenu.parent().attr("id")!=="floating-menu"){$submenu.appendTo("#floating-menu")}const parentOffset=$parent.position();const parentLeft=parentOffset.left;const parentWidth=$parent.outerWidth();const newLeft=parentLeft+parentWidth/2;$submenu.css({left:newLeft+"px"});const submenuWidth=$submenu.outerWidth();const floatingMenuOffset=$("#floating-menu").offset();const floatingMenuWidth=$("#floating-menu").outerWidth();const submenuLeftEdge=floatingMenuOffset.left+newLeft-submenuWidth/2;const submenuRightEdge=submenuLeftEdge+submenuWidth;const windowWidth=$(window).width();if(submenuLeftEdge<0){const adjustment=submenuLeftEdge-10;$submenu.css({transform:"translateX(calc(-50% - "+adjustment+"px))"})}else if(submenuRightEdge>windowWidth){const adjustment=submenuRightEdge-windowWidth+10;$submenu.css({transform:"translateX(calc(-50% - "+adjustment+"px))"})}}$(document).on("mouseenter",".floating-menu-item.has-submenu",function(){const $menuItem=$(this);const contentId="floating-menu-item-content-"+$menuItem.data("groupid");const $submenu=$("#"+contentId);Object.keys(activeTimeouts).forEach(key=>{clearTimeout(activeTimeouts[key]);delete activeTimeouts[key]});$(".floating-menu-item-content.active").not("#"+contentId).removeClass("active");$submenu.addClass("active");positionSubmenu($submenu,$menuItem)});$(document).on("mouseleave",".floating-menu-item.has-submenu",function(){const $menuItem=$(this);const contentId="floating-menu-item-content-"+$menuItem.data("groupid");const $submenu=$("#"+contentId);activeTimeouts[contentId]=setTimeout(function(){if(!$submenu.is(":hover")&&!$(".floating-menu-item.has-submenu:hover").length){$submenu.removeClass("active")}delete activeTimeouts[contentId]},500)});$(document).on("mouseleave",".floating-menu-item-content",function(){const $submenu=$(this);const contentId=$submenu.attr("id");activeTimeouts[contentId]=setTimeout(function(){const menuItemSelector='.floating-menu-item[data-groupid="'+$submenu.data("groupid")+'"]';if(!$(menuItemSelector).is(":hover")&&!$(".floating-menu-item.has-submenu:hover").length){$submenu.removeClass("active")}delete activeTimeouts[contentId]},500)});$(window).on("resize",function(){$(".floating-menu-item-content.active").each(function(){const contentId=$(this).attr("id");const groupId=contentId.split("-").pop();const $menuItem=$('.floating-menu-item[data-groupid="'+groupId+'"]');positionSubmenu($(this),$menuItem)})})});function checkFooterVisibility(){var footerElement=$("#footer");var floatingMenuElement=$("#floating-menu");var scrollBottom=$(window).scrollTop()+$(window).height();var footerTop=footerElement.offset().top;if(scrollBottom>=footerTop&&!floatingMenuElement.is(":animated")){floatingMenuElement.fadeOut()}else if(scrollBottom<footerTop&&!floatingMenuElement.is(":animated")&&floatingMenuElement.is(":hidden")){floatingMenuElement.css("display","none").fadeIn(function(){$(this).css("display","flex")})}}$(document).ready(function(){var defaultLightboxWidth=500;var lightboxHTML=` 2 <div id="custom-lightbox" style="display: none;"> 3 <div class="lightbox-overlay"></div> 4 <div class="lightbox-content"> 5 <div class="lightbox-image-container"> 6 <img src="" alt="" class="lightbox-image"> 7 </div> 8 </div> 9 <div class="lightbox-close">×</div> 10 <div class="lightbox-prev"></div> 11 <div class="lightbox-next"></div> 12 </div> 13 `;$("body").append(lightboxHTML);var lightboxCSS=``;$("head").append(lightboxCSS);var currentGroup="";var currentIndex=0;var groupItems=[];var lightboxMode="fit";var lightboxWidth=defaultLightboxWidth;$(".lightbox-item").on("click",function(){var imageUrl=$(this).data("lightbox-image");currentGroup=$(this).data("group");lightboxMode=$(this).data("mode")||"fit";lightboxWidth=$(this).data("lightbox-width")||defaultLightboxWidth;groupItems=$('.lightbox-item[data-group="'+currentGroup+'"]');currentIndex=groupItems.index($(this));openLightbox(imageUrl)});function openLightbox(imageUrl){$("#custom-lightbox").removeClass("lightbox-mode-fit lightbox-mode-fixed").addClass("lightbox-mode-"+lightboxMode);document.documentElement.style.setProperty("--lightbox-width",lightboxWidth);$("body").css("overflow","hidden");var img=new Image;img.onload=function(){$(".lightbox-image").attr("src",imageUrl);$("#custom-lightbox").fadeIn(300);if(lightboxMode==="fixed"){$("#custom-lightbox").scrollTop(0)}};img.src=imageUrl;if(groupItems.length<=1){$(".lightbox-prev, .lightbox-next").hide()}else{$(".lightbox-prev, .lightbox-next").show()}}$(".lightbox-overlay, .lightbox-close").on("click",function(){closeLightbox()});function closeLightbox(){$("#custom-lightbox").fadeOut(300,function(){$("body").css("overflow","")})}$(".lightbox-content").on("click",function(e){e.stopPropagation()});$(".lightbox-prev").on("click",function(){navigateLightbox("prev")});$(".lightbox-next").on("click",function(){navigateLightbox("next")});function navigateLightbox(direction){if(groupItems.length<=1)return;if(direction==="prev"){currentIndex=currentIndex>0?currentIndex-1:groupItems.length-1}else{currentIndex=currentIndex<groupItems.length-1?currentIndex+1:0}var $currentItem=$(groupItems[currentIndex]);var imageUrl=$currentItem.data("lightbox-image");var newMode=$currentItem.data("mode")||"fit";var newWidth=$currentItem.data("lightbox-width")||defaultLightboxWidth;
13if(newMode!==lightboxMode||newWidth!==lightboxWidth){lightboxMode=newMode;lightboxWidth=newWidth;$("#custom-lightbox").removeClass("lightbox-mode-fit lightbox-mode-fixed").addClass("lightbox-mode-"+lightboxMode);document.documentElement.style.setProperty("--lightbox-width",lightboxWidth+"px")}if(lightboxMode==="fixed"){$("#custom-lightbox").scrollTop(0)}$(".lightbox-image").attr("src",imageUrl)}$(document).keydown(function(e){if($("#custom-lightbox").is(":visible")){if(e.keyCode===27){closeLightbox()}else if(e.keyCode===37){navigateLightbox("prev")}else if(e.keyCode===39){navigateLightbox("next")}}});$(window).on("resize",function(){if($("#custom-lightbox").is(":visible")&&lightboxMode==="fixed"){document.documentElement.style.setProperty("--lightbox-width",lightboxWidth+"px")}})});$(document).ready(function(){let menuOpen=false;$("#corp_hamburger").attr("onclick","");$(".jsHamburgerToggle").on("click",function(e){e.preventDefault();const $hamburger=$(this);const hamburgerRect=this.getBoundingClientRect();const centerX=hamburgerRect.left+hamburgerRect.width/2;const centerY=hamburgerRect.top+hamburgerRect.height/2;const maxSize=Math.sqrt(Math.pow(Math.max(centerX,window.innerWidth-centerX),2)+Math.pow(Math.max(centerY,window.innerHeight-centerY),2))*2;const $circle=$("#circle-animation");$circle.css({top:centerY+"px",left:centerX+"px",width:maxSize+"px",height:maxSize+"px"});if(!menuOpen){$("body").addClass("menu-open");var $mobileVideo=$(".corp-mobile-video video");if($mobileVideo.length>0){$mobileVideo[0].play()}$circle.show();setTimeout(function(){$circle.css("transform","translate(-50%, -50%) scale(1)");$circle.addClass("circle-animation-expanded").removeClass("circle-animation-collapsed");setTimeout(function(){$("#corp_menu").css("visibility","visible")},300)},10);menuOpen=true}else{$("body").removeClass("menu-open");var $mobileVideo=$(".corp-mobile-video video");if($mobileVideo.length>0){$mobileVideo[0].pause()}$("#corp_menu").css("visibility","hidden");$circle.css("transform","translate(-50%, -50%) scale(0)");$circle.addClass("circle-animation-collapsed").removeClass("circle-animation-expanded");setTimeout(function(){$circle.hide()},500);menuOpen=false}});function supportsTransform(){var prefixes="transform WebkitTransform MozTransform OTransform msTransform".split(" ");var div=document.createElement("div");for(var i=0;i<prefixes.length;i++){if(div.style[prefixes[i]]!==undefined){return true}}return false}if(!supportsTransform()){$(".jsHamburgerToggle").on("click",function(){if(!menuOpen){$("#circle-animation").addClass("circle-animation-expanded").removeClass("circle-animation-collapsed")}else{$("#circle-animation").removeClass("circle-animation-expanded").addClass("circle-animation-collapsed")}})}$(window).on("resize",function(){if($(window).width()<1200&&menuOpen){$(".jsHamburgerToggle").click()}})});window.addEventListener("load",function(){function initInfiniteLogoScroll(){const topRow=document.querySelector(".logos.animated .logos-row:first-child");const bottomRow=document.querySelector(".logos.animated .logos-row:last-child");function setupRow(row,direction){if(!row)return;row.classList.add(direction==="left"?"scroll-left":"scroll-right");const originalLogos=Array.from(row.children);originalLogos.forEach(logo=>{const clone=logo.cloneNode(true);row.appendChild(clone)})}setupRow(topRow,"left");setupRow(bottomRow,"right")}const animatedLogos=document.querySelector(".logos.animated");if(animatedLogos){initInfiniteLogoScroll()}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.