window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0} function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&now0){t985_addSearchVariants(recid,searchVariants)} var searchWidgetIcon=rec.querySelectorAll('.t985__search-widget-icon');Array.prototype.forEach.call(searchWidgetIcon,function(widgetIcon){widgetIcon.addEventListener('click',function(){t985_showSearch(rec)})});var closeIcon=rec.querySelector('.t985__close-icon');if(closeIcon){closeIcon.addEventListener('click',function(){t985_hideSearch(rec)})} var overlay=rec.querySelector('.t985__overlay');if(overlay){overlay.addEventListener('click',function(event){var target=event.target;var parentTarget=target.parentElement;if(!target.classList.contains('.t985__widgetheader')&&!parentTarget.classList.contains('.t985__widgetheader')){t985_hideSearch(rec)}})}} function t985_addSearchVariants(recid,searchVariants){var rec=document.querySelector('#rec'+recid);if(!rec)return;var container=rec.querySelector('.t985__searchvariants');var cleanVariants=searchVariants.replace(/(<([^>]+)>)/gi,'') var searchArray=cleanVariants.split(',');Array.prototype.forEach.call(searchArray,function(variant){container.innerHTML+='
'+variant+'
'})} function t985_showSearch(rec){rec.querySelector('.t985__overlay').style.display='block';rec.querySelector('.t985__search-widget-icon').style.display='none'} function t985_hideSearch(rec){rec.querySelector('.t985__overlay').style.display='none';rec.querySelector('.t985__search-widget-icon').style.display='block'} function t649_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})} function t670_init(recid,isEditMode){var rec=document.getElementById('rec'+recid);if(!rec)return;var image=rec.querySelector('.t-img');var init=function(){t670_imageHeight(recid);t670_show(recid);t670_hide(recid);t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)});if(isEditMode){t_onFuncLoad('t_slds_UpdateSliderHeight',function(){t_slds_UpdateSliderHeight(recid)});t_onFuncLoad('t_slds_UpdateSliderArrowsHeight',function(){t_slds_UpdateSliderArrowsHeight(recid)})} var wrapper=rec.querySelector('.t670');if(wrapper){wrapper.addEventListener('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t_onFuncLoad('t_slds_positionArrows',function(){t_slds_positionArrows(recid)})})}} if(image){if(image.complete){init()}else{image.addEventListener('load',init);image.addEventListener('error',init)}}else{init()}} function t670_show(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var playBtns=rec.querySelectorAll('.t670__play');Array.prototype.forEach.call(playBtns,function(play){play.addEventListener('click',function(){var videoType=play.getAttribute('data-slider-video-type');var url;var nextEl;var prevEl;var iframe;var video;var source;switch(videoType){case 'youtube':url=play.getAttribute('data-slider-video-url');nextEl=play.nextElementSibling;prevEl=play.previousElementSibling.previousElementSibling;if(nextEl){iframe=document.createElement('iframe');iframe.classList.add('t670__iframe');iframe.width='100%';iframe.height='100%';iframe.src='https://www.youtube.com/embed/'+url+'?autoplay=1&enablejsapi=1';iframe.frameBorder='0';iframe.setAttribute('webkitallowfullscreen','');iframe.setAttribute('mozallowfullscreen','');iframe.setAttribute('allowfullscreen','');iframe.setAttribute('allow','autoplay');nextEl.innerHTML='';nextEl.insertAdjacentElement('beforeend',iframe)} if(prevEl&&prevEl.classList.contains('t-bgimg'))prevEl.style.opacity='0';break;case 'vimeo':url=play.getAttribute('data-slider-video-url');nextEl=play.nextElementSibling;prevEl=play.previousElementSibling.previousElementSibling;var idMatch=/vimeo[^/]*\/(\d+)\/?(\w*)\/?/i.exec(url);var id=idMatch?idMatch[1]:null;var hash=idMatch?'?h='+idMatch[2]:null;if(nextEl){iframe=document.createElement('iframe');iframe.classList.add('t670__iframe');iframe.width='100%';iframe.height='100%';iframe.src='https://player.vimeo.com/video/'+id+hash+'&api=1';iframe.frameBorder='0';iframe.setAttribute('allowfullscreen','');iframe.setAttribute('allow','autoplay; fullscreen');nextEl.innerHTML='';nextEl.insertAdjacentElement('beforeend',iframe)} if(prevEl&&prevEl.classList.contains('t-bgimg'))prevEl.style.opacity='0';break;case 'mp4':url=play.getAttribute('data-slider-video-url');nextEl=play.nextElementSibling;prevEl=play.previousElementSibling.previousElementSibling;if(nextEl){video=document.createElement('video');source=document.createElement('source');video.insertAdjacentElement('beforeend',source);video.classList.add('t670__video');video.controls=!0;source.src=url;nextEl.innerHTML='';nextEl.insertAdjacentElement('beforeend',video);video=nextEl.querySelector('video');if(video)video.play()} if(prevEl&&prevEl.classList.contains('t-bgimg'))prevEl.style.opacity='0';break} if(nextEl)nextEl.style.zIndex='3'})})} function t670_hide(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var elBody=rec.querySelector('.t670__frame');rec.addEventListener('updateSlider',function(){if(elBody)elBody.innerHTML='';if(elBody)elBody.style.zIndex=''})} function t670_imageHeight(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var images=rec.querySelectorAll('.t670__separator');Array.prototype.forEach.call(images,function(img){var width=img.getAttribute('data-slider-image-width')||0;var height=img.getAttribute('data-slider-image-height')||0;var ratio=height/width;var padding=ratio*100;img.style.paddingBottom=padding+'%'})} function t772_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var container=rec.querySelector('.t772__container_mobile-flex');if(!container)return;var allRecords=document.getElementById('allrecords');if(!allRecords.getAttribute('data-tilda-mode')&&(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes')){t_onFuncLoad('t_lazyload_update',function(){container.addEventListener('scroll',t_throttle(function(){t_lazyload_update()}))})}} function t797_init(recId){if(window.isMobile){var rec=document.getElementById('rec'+recId);var textWrapper=rec.querySelector('.t797__txt-wrapper');if(rec&&textWrapper)textWrapper.style.display='none'} t_onFuncLoad('tvote__init',function(){tvote__init(recId)})} function t405_showMore(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t405');if(!container)return;var cols=container.querySelectorAll('.t-col');var allRecords=document.getElementById('allrecords');for(var i=0;i500)cardsCount=500;var startIndexShowBlock=cardsCount;var countShowBlock=cardsCount;var colsShow=t405__getShowBlocks(cols,startIndexShowBlock);for(var i=0;imenuBlock.clientHeight&&!el.classList.contains('t282__closed')&&!el.classList.contains('t282__container')){el.style.transform='translateY(calc(-100% - '+menuContainerHeight+'px))'} el.classList.toggle('t282__closed')});if(menuBlock)menuBlock.style.top=menuContainerHeight+'px';var menuBurger=rec.querySelector('.t-menuburger') if(menuBurger)menuBurger.classList.toggle('t-menuburger-opened',document.body.classList.contains('t282_opened')) if(element.classList.contains('t-menuburger')){var expandedStatus=element.classList.contains('t-menuburger-opened');element.setAttribute('aria-expanded',expandedStatus)} t282_highlight(recid)})});menu.addEventListener('clickedAnchorInTooltipMenu',function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t282_opened');Array.prototype.forEach.call(menuAndOverlay,function(el){el.classList.add('t282__closed')})});Array.prototype.forEach.call(menuLinks,function(link){link.addEventListener('click',function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t282_opened');Array.prototype.forEach.call(menuAndOverlay,function(el){el.classList.add('t282__closed');if(menuBurger){menuBurger.classList.remove('t-menuburger-opened');menuBurger.setAttribute('aria-expanded',!1)}})})})} function t282_changeSize(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec.querySelector('.t282__container');var menuContainer=rec.querySelector('.t282__menu__container');var menuWrapper=document.getElementById('nav'+recid);var menuHeight=menu?menu.offsetHeight:0;var menuContainerHeight=menuContainer?menuContainer.offsetHeight:0;if(menuHeight>document.documentElement.clientHeight-menuContainerHeight){if(menuWrapper)menuWrapper.classList.add('t282__menu_static')}else{if(menuWrapper)menuWrapper.classList.remove('t282__menu_static')}} function t282_changeBgOpacityMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlocks=rec.querySelectorAll('.t282__container__bg');Array.prototype.forEach.call(menuBlocks,function(menu){var bgColor=menu.getAttribute('data-bgcolor-rgba');var bgColorAfterScroll=menu.getAttribute('data-bgcolor-rgba-afterscroll');var bgOpacity=menu.getAttribute('data-bgopacity');var bgOpacityTwo=menu.getAttribute('data-bgopacity2');var menuShadowOpacity=parseInt(menu.getAttribute('data-menushadow'),10)||0;menuShadowOpacity/=100;var menuShadowCSS=menu.getAttribute('data-menushadow-css');menu.style.backgroundColor=window.pageYOffset>20?bgColorAfterScroll:bgColor;if((window.pageYOffset>20&&bgOpacityTwo==='0')||(window.pageYOffset<=20&&(bgOpacity==='0.0'||bgOpacity==='0'))||(!menuShadowOpacity&&!menuShadowCSS)){menu.style.boxShadow='none'}else if(menuShadowCSS){menu.style.boxShadow=menuShadowCSS}else if(menuShadowOpacity){menu.style.boxShadow='0px 1px 3px rgba(0,0,0,'+menuShadowOpacity+')'}})} function t282_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;var hash=window.location.hash;if(url.substr(url.length-1)==='/'){url=url.slice(0,-1)} if(pathname.substr(pathname.length-1)==='/'){pathname=pathname.slice(0,-1)} if(pathname.charAt(0)==='/'){pathname=pathname.slice(1)} if(pathname===''){pathname='/'} var shouldBeActiveElements=document.querySelectorAll('.t282__menu a[href=\''+url+'\'], '+'.t282__menu a[href=\''+url+'/\'], '+'.t282__menu a[href=\''+pathname+'\'], '+'.t282__menu a[href=\'/'+pathname+'\'], '+'.t282__menu a[href=\''+pathname+'/\'], '+'.t282__menu a[href=\'/'+pathname+'/\']'+(hash?', .t282__menu a[href=\''+hash+'\']':'')+(hash?', .t282__menu a[href=\'/'+hash+'\']':'')+(hash?', .t282__menu a[href=\''+hash+'/\']':'')+(hash?', .t282__menu a[href=\'/'+hash+'/\']':''));var rec=document.getElementById('rec'+recid);var menuLinks=rec?rec.querySelectorAll('.t282__menu a'):[];Array.prototype.forEach.call(menuLinks,function(link){link.classList.remove('t-active')});Array.prototype.forEach.call(shouldBeActiveElements,function(link){link.classList.add('t-active')})} function t282_appearMenu(recid){var record=document.getElementById('rec'+recid);var menuBlock=record.querySelector('.t282');var fixedMenu=menuBlock?menuBlock.querySelector('.t282__positionfixed'):null;if(!fixedMenu)return;var appearOffset=menuBlock.getAttribute('data-appearoffset');if(appearOffset&&appearOffset.indexOf('vh')!==-1){appearOffset=Math.floor((window.innerHeight*(parseInt(appearOffset)/100)))} appearOffset=parseInt(appearOffset,10);var menuHeight=fixedMenu.clientHeight;if(typeof appearOffset==='number'&&window.pageYOffset>=appearOffset){if(fixedMenu.style.transform==='translateY(-'+menuHeight+'px)'){t282_slideUpElement(fixedMenu,menuHeight,'toBottom')}}else if(fixedMenu.style.transform==='translateY(0px)'){t282_slideUpElement(fixedMenu,menuHeight,'toTop')}else{fixedMenu.style.transform='translateY(-'+menuHeight+'px)';fixedMenu.style.opacity='0'}} function t282_slideUpElement(menu,menuHeight,direction){var diff=direction==='toTop'?0:menuHeight;var diffOpacity=direction==='toTop'?1:0;var timerID=setInterval(function(){menu.style.transform='translateY(-'+diff+'px)';menu.style.opacity=diffOpacity.toString();diffOpacity=direction==='toTop'?diffOpacity-0.1:diffOpacity+0.1;diff=direction==='toTop'?diff+(menuHeight/20):diff-(menuHeight/20);if(direction==='toTop'&&diff>=menuHeight){menu.style.transform='translateY(-'+menuHeight+'px)';menu.style.opacity='0';clearInterval(timerID)} if(direction==='toBottom'&&diff<=0){menu.style.transform='translateY(0px)';menu.style.opacity='1';clearInterval(timerID)}},10)}