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){t989_thumbs_initAutoPlay(rec)} window.addEventListener('resize',t_throttle(function(){t989_checkArrowsDisplay(rec);t_slds_updateSlider(recid);if(window.lazy==='y'||lazyMode==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},300));if(currentBlock){currentBlock.addEventListener('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});if(window.lazy==='y'||lazyMode==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})} t989_addEvents(rec)} function t989_addEvents(rec){var bulletsWrapper=rec.querySelector('.t-slds__thumbsbullet-wrapper');var bullets=rec.querySelectorAll('.t-slds__thumbsbullet');var arrowRight=rec.querySelector('.t989__arrow-right');var arrowLeft=rec.querySelector('.t989__arrow-left');var mobileWrapperRight=rec.querySelector('.t989__mobile-arrows .t-slds__arrow_wrapper-right');var mobileWrapperLeft=rec.querySelector('.t989__mobile-arrows .t-slds__arrow_wrapper-left');var thumbsTimeout=bulletsWrapper?bulletsWrapper.getAttribute('data-thumbs-timeout'):'';if(arrowRight){arrowRight.addEventListener('click',function(){t989_next(rec);if(thumbsTimeout>0)t989_thumbs_initAutoPlay(rec)})} if(arrowLeft){arrowLeft.addEventListener('click',function(){t989_prev(rec);if(thumbsTimeout>0)t989_thumbs_initAutoPlay(rec)})} if(mobileWrapperRight){mobileWrapperRight.addEventListener('click',function(){t989_next(rec);if(thumbsTimeout>0)t989_thumbs_initAutoPlay(rec)})} if(mobileWrapperLeft){mobileWrapperLeft.addEventListener('click',function(){t989_prev(rec);if(thumbsTimeout>0)t989_thumbs_initAutoPlay(rec)})} Array.prototype.forEach.call(bullets,function(bullet){bullet.addEventListener('click',function(){t989_slideIntoView(rec,bullet);if(thumbsTimeout>0)t989_thumbs_initAutoPlay(rec)})})} function t989_checkArrowsDisplay(rec){var bullets=rec.querySelectorAll('.t-slds__thumbsbullet');var arrowRight=rec.querySelector('.t989__arrow-right');var arrowLeft=rec.querySelector('.t989__arrow-left');var thumbsWrapper=rec.querySelector('.t-slds__thumbsbullet-wrapper');var thumbsCycle=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-cycle'):null;var activeThumb=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-active'):'0';if(thumbsCycle==='yes'){if(arrowLeft)arrowLeft.style.display='block';if(arrowLeft)arrowRight.style.display='block'}else{if(arrowLeft)arrowLeft.style.display=parseInt(activeThumb,10)>0?'block':'none';if(arrowLeft)arrowRight.style.display=parseInt(activeThumb,10)containerRightPos){hiddenPart=bulletRightPos-containerRightPos;direction='right'} if(container&&container.getBoundingClientRect().left>bullet.getBoundingClientRect().left){hiddenPart=container.getBoundingClientRect().left-bullet.getBoundingClientRect().left+12;direction='left'} if(parseInt(bulletFor,10)){var slideID=(parseInt(bulletFor,10)-1).toString();if(thumbsWrapper)thumbsWrapper.setAttribute('data-thumbs-active',slideID)} if(hiddenPart){t989_slide(rec,direction,hiddenPart)} if(thumbsCycle!=='yes'){setTimeout(function(){t989_checkArrowsDisplay(rec)},300)}} function t989_next(rec){var bullets=rec.querySelectorAll('.t-slds__thumbsbullet');var thumbsWrapper=rec.querySelector('.t-slds__thumbsbullet-wrapper');var thumbsCycle=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-cycle'):null;var activeThumb=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-active'):'0';var activeThumbValue=parseInt(activeThumb,10);if(activeThumbValue0){activeThumbValue--}else if(thumbsCycle==='yes'){activeThumbValue=bullets.length-1} var slide=bullets.length?bullets[activeThumbValue]:null;if(slide)t989__triggerEvent(slide,'click');if(thumbsWrapper)thumbsWrapper.setAttribute('data-thumbs-active',activeThumbValue)} function t989_slide(rec,direction,offset){var allRec=document.getElementById('allrecords');var lazyMode=allRec?allRec.getAttribute('data-tilda-lazy'):'';var thumbsWrapper=rec.querySelector('.t-slds__thumbsbullet-wrapper');var dataSlideOffset=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-offset'):'0';var slideOffsetValue=parseInt(dataSlideOffset,10);var slideOffset;if(direction==='right'){slideOffset=slideOffsetValue+Math.abs(offset)+12}else{slideOffset=slideOffsetValue>Math.abs(offset)?slideOffsetValue-Math.abs(offset):0} if(thumbsWrapper){thumbsWrapper.style.transform='translate(-'+slideOffset+'px, 0)';thumbsWrapper.style.transitionDuration='.3s';thumbsWrapper.setAttribute('data-thumbs-offset',slideOffset)} if(window.lazy==='y'||lazyMode==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}} function t989_thumbs_initAutoPlay(rec){var thumbsWrapper=rec.querySelector('.t-slds__thumbsbullet-wrapper');var bullets=rec.querySelectorAll('.t-slds__thumbsbullet');var timeOut=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-timeout'):'0';var intervalID=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-interval-id'):null;var activeThumb=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-active'):'0';var thumbsCycle=thumbsWrapper?thumbsWrapper.getAttribute('data-thumbs-cycle'):null;timeOut=parseInt(timeOut,10);activeThumb=parseInt(activeThumb,10);if(parseInt(intervalID,10)){clearInterval(parseInt(intervalID,10))} var thumbsIntervalId=setInterval(function(){t989_next(rec)},timeOut);if(thumbsWrapper)thumbsWrapper.setAttribute('data-thumbs-interval-id',thumbsIntervalId.toString());if(bullets.length-1===activeThumb&&thumbsCycle!=='yes'){if(intervalID){clearInterval(thumbsIntervalId)}}} function t989__triggerEvent(el,eventName){var event;if(typeof window.CustomEvent==='function'){event=new CustomEvent(eventName)}else if(document.createEvent){event=document.createEvent('HTMLEvents');event.initEvent(eventName,!0,!1)}else if(document.createEventObject){event=document.createEventObject();event.eventType=eventName} event.eventName=eventName;if(el.dispatchEvent){el.dispatchEvent(event)}else if(el.fireEvent){el.fireEvent('on'+event.eventType,event)}else if(el[eventName]){el[eventName]()}else if(el['on'+eventName]){el['on'+eventName]()}} function t228__init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlock=rec.querySelector('.t228');var mobileMenu=rec.querySelector('.t228__mobile');var menuSubLinkItems=rec.querySelectorAll('.t-menusub__link-item');var rightBtn=rec.querySelector('.t228__right_buttons_but .t-btn');var mobileMenuPosition=mobileMenu?mobileMenu.style.position||window.getComputedStyle(mobileMenu).position:'';var mobileMenuDisplay=mobileMenu?mobileMenu.style.display||window.getComputedStyle(mobileMenu).display:'';var isFixedMobileMenu=mobileMenuPosition==='fixed'&&mobileMenuDisplay==='block';var overflowEvent=document.createEvent('Event');var noOverflowEvent=document.createEvent('Event');overflowEvent.initEvent('t228_overflow',!0,!0);noOverflowEvent.initEvent('t228_nooverflow',!0,!0);if(menuBlock){menuBlock.addEventListener('t228_overflow',function(){t228_checkOverflow(recid)});menuBlock.addEventListener('t228_nooverflow',function(){t228_checkNoOverflow(recid)})} rec.addEventListener('click',function(e){var targetLink=e.target.closest('.t-menusub__target-link');if(targetLink&&window.isMobile&&window.innerWidth<=980){if(targetLink.classList.contains('t-menusub__target-link_active')){if(menuBlock)menuBlock.dispatchEvent(overflowEvent)}else{if(menuBlock)menuBlock.dispatchEvent(noOverflowEvent)}} var currentLink=e.target.closest('.t-menu__link-item:not(.tooltipstered):not(.t-menusub__target-link):not(.t794__tm-link):not(.t966__tm-link):not(.t978__tm-link):not(.t978__menu-link)');if(currentLink&&mobileMenu&&isFixedMobileMenu)mobileMenu.click()});Array.prototype.forEach.call(menuSubLinkItems,function(linkItem){linkItem.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})});if(rightBtn){rightBtn.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})} if(menuBlock){menuBlock.addEventListener('showME601a',function(){var menuLinks=rec.querySelectorAll('.t966__menu-link');Array.prototype.forEach.call(menuLinks,function(menuLink){menuLink.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})})})} t_onFuncLoad('t_throttle',function(){var onResizeThrottled=t_throttle(function(){t228_setWidth(recid)},50);window.addEventListener('resize',onResizeThrottled)})} function t228_checkOverflow(recid){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t228'):null;if(!menu)return;var mobileContainer=document.querySelector('.t228__mobile_container');var mobileContainerHeight=t228_getFullHeight(mobileContainer);var windowHeight=document.documentElement.clientHeight;var menuPosition=menu.style.position||window.getComputedStyle(menu).position;if(menuPosition==='fixed'){menu.classList.add('t228__overflow');menu.style.setProperty('height',windowHeight-mobileContainerHeight+'px','important')}} function t228_checkNoOverflow(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var menu=rec.querySelector('.t228');var menuPosition=menu?menu.style.position||window.getComputedStyle(menu).position:'';if(menuPosition==='fixed'){if(menu)menu.classList.remove('t228__overflow');if(menu)menu.style.height='auto'}} function t228_setWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuCenterSideList=rec.querySelectorAll('.t228__centerside');Array.prototype.forEach.call(menuCenterSideList,function(menuCenterSide){menuCenterSide.classList.remove('t228__centerside_hidden')});if(window.innerWidth<=980)return;var menuBlocks=rec.querySelectorAll('.t228');Array.prototype.forEach.call(menuBlocks,function(menu){var maxWidth;var centerWidth=0;var paddingWidth=40;var leftSide=menu.querySelector('.t228__leftside');var rightSide=menu.querySelector('.t228__rightside');var menuList=menu.querySelector('.t228__list');var mainContainer=menu.querySelector('.t228__maincontainer');var leftContainer=menu.querySelector('.t228__leftcontainer');var rightContainer=menu.querySelector('.t228__rightcontainer');var centerContainer=menu.querySelector('.t228__centercontainer');var centerContainerLi=centerContainer?centerContainer.querySelectorAll('li'):[];var leftContainerWidth=t228_getFullWidth(leftContainer);var rightContainerWidth=t228_getFullWidth(rightContainer);var mainContainerWidth=mainContainer?mainContainer.offsetWidth:0;var dataAlign=menu.getAttribute('data-menu-items-align');var isDataAlignCenter=dataAlign==='center'||dataAlign===null;maxWidth=leftContainerWidth>=rightContainerWidth?leftContainerWidth:rightContainerWidth;maxWidth=Math.ceil(maxWidth);Array.prototype.forEach.call(centerContainerLi,function(li){centerWidth+=t228_getFullWidth(li)});leftSide.style.minWidth='';rightSide.style.minWidth='';if(mainContainerWidth-(maxWidth*2+paddingWidth*2)>centerWidth+20){if(isDataAlignCenter){if(leftSide)leftSide.style.minWidth=maxWidth+'px';if(rightSide)rightSide.style.minWidth=maxWidth+'px'}}else{if(leftSide)leftSide.style.minWidth=maxWidth+'';if(rightSide)rightSide.style.minWidth=maxWidth+''} if(menuList&&menuList.classList.contains('t228__list_hidden')) menuList.classList.remove('t228__list_hidden')})} function t228_getFullWidth(el){if(!el)return 0;var marginLeft=el.style.marginLeft||window.getComputedStyle(el).marginLeft;var marginRight=el.style.marginRight||window.getComputedStyle(el).marginRight;marginLeft=parseInt(marginLeft,10)||0;marginRight=parseInt(marginRight,10)||0;return el.offsetWidth+marginLeft+marginRight} function t228_getFullHeight(el){if(!el)return 0;var marginTop=el.style.marginTop||window.getComputedStyle(el).marginTop;var marginBottom=el.style.marginBottom||window.getComputedStyle(el).marginBottom;marginTop=parseInt(marginTop,10)||0;marginBottom=parseInt(marginBottom,10)||0;return el.offsetHeight+marginTop+marginBottom} function t992_init(recid){t992_highlight();t992_checkAnchorLinks(recid)} function t992_highlight(){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(".t992__list-item a[href='"+url+"'], "+".t992__list-item a[href='"+url+"/'], "+".t992__list-item a[href='"+pathname+"'], "+".t992__list-item a[href='/"+pathname+"'], "+".t992__list-item a[href='"+pathname+"/'], "+".t992__list-item a[href='/"+pathname+"/'], "+".t992__list-item a[href='/"+hash+"/']");Array.prototype.forEach.call(shouldBeActiveElements,function(link){link.classList.add('t-active')})} function t992_checkAnchorLinks(recid){var rec=document.getElementById('rec'+recid);if(!rec||window.innerWidth<980)return;var navLinks=rec.querySelectorAll(".t992__list-item a[href*='#']");navLinks=Array.prototype.filter.call(navLinks,function(navLink){return!navLink.classList.contains('tooltipstered')});if(navLinks.length){t992_catchScroll(navLinks)}} function t992_catchScroll(navLinks){var clickedSectionID=null;var sections=[];var sectionToNavigationLinkID={};var interval=100;var lastCall;var timeoutID;navLinks=navLinks.reverse();navLinks.forEach(function(link){var currentSection=t992_getSectionByHref(link);if(currentSection&¤tSection.id){sections.push(currentSection);sectionToNavigationLinkID[currentSection.id]=link}});t992_updateSectionsOffsets(sections);sections.sort(function(a,b){var firstTopOffset=parseInt(a.getAttribute('data-offset-top'),10)||0;var secondTopOffset=parseInt(b.getAttribute('data-offset-top'),10)||0;return secondTopOffset-firstTopOffset});window.addEventListener('resize',t_throttle(function(){t992_updateSectionsOffsets(sections)},200));if(typeof jQuery!=='undefined'){$('.t992').bind('displayChanged',function(){t992_updateSectionsOffsets(sections)})}else{var footerEls=document.querySelectorAll('.t992');Array.prototype.forEach.call(footerEls,function(footer){footer.addEventListener('displayChanged',function(){t992_updateSectionsOffsets(sections)})})} var menuEls=document.querySelectorAll('.t992');Array.prototype.forEach.call(menuEls,function(menu){menu.addEventListener('displayChanged',function(){t992_updateSectionsOffsets(sections)})});setInterval(function(){t992_updateSectionsOffsets(sections)},5000);t992_highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID);navLinks.forEach(function(navLink,i){navLink.addEventListener('click',function(){var clickedSection=t992_getSectionByHref(navLink);if(!navLink.classList.contains('tooltipstered')&&clickedSection&&clickedSection.id){navLinks.forEach(function(link,index){if(index===i){link.classList.add('t-active')}else{link.classList.remove('t-active')}});clickedSectionID=clickedSection.id}})});window.addEventListener('scroll',function(){var dateNow=new Date().getTime();if(lastCall&&dateNowscrollPosition+300){navLinks.forEach(function(link){link.classList.remove('t-active')});return null} for(var i=0;i=sectionTopPos||(i===0&&scrollPosition>=scrollHeight-window.innerHeight)){if(clickedSectionID===null&&navLink&&!navLink.classList.contains('t-active')){navLinks.forEach(function(link){link.classList.remove('t-active')});if(navLink)navLink.classList.add('t-active');returnValue=null}else if(clickedSectionID!==null&§ions[i].id&&clickedSectionID===sections[i].id){returnValue=null} break}} return returnValue}