window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0} function t985_init(recid,searchVariants){var rec=document.querySelector('#rec'+recid);if(!rec)return;if(searchVariants.length>0){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 t971_init(recids){recids=recids.split(',');Array.prototype.forEach.call(recids,function(recid){t971_createSnowfall(recid)})} function t971_createSnowfall(recid){var snowSettings={number:50,minDuration:10,maxDuration:20};var wrapperBlock;var snowfallHeight;var wrapperType;var rec=document.getElementById('rec'+recid);if(recid&&rec){var recordType=parseInt(rec.getAttribute('data-record-type'),10);switch(recordType){case 396:wrapperType='.t396__artboard';break;case 941:wrapperType='.t-container';break;default:wrapperType='.t-cover'} wrapperBlock=rec.querySelector(wrapperType);if(!wrapperBlock)return;var snowfallWrapperStyles=window.getComputedStyle(wrapperBlock);if(wrapperBlock&&snowfallWrapperStyles.position!=='static'){snowfallHeight=snowfallWrapperStyles.height}else{wrapperBlock=document.querySelector('body');snowfallHeight=Math.round(window.innerHeight)+'px'}}else{wrapperBlock=document.querySelector('body');snowfallHeight=Math.round(window.innerHeight)+'px'} var style='.t971__snowfall { '+'position: absolute; '+'top: 0; '+'width: 100%;'+'height: '+snowfallHeight+';'+'backface-visibility: hidden;'+'pointer-events: none;'+'z-index: 50000; '+'display: block; '+'overflow: hidden; '+'pointer-events: none; '+'} '+'.t971__snowflake { '+'position: absolute; '+'left: 0; '+'top: 0; '+'display: none;'+'} ';var snowfallLayer1=document.createElement('div');snowfallLayer1.classList.add('t971__snowfall');snowfallLayer1.id='t971__snowfall';wrapperBlock.appendChild(snowfallLayer1);var styleRule='';var snowfall='';var snowflake=['','','','',];for(var i=1;i<=snowSettings.number;i++){var parentHeight=snowfallHeight;var leftStart=Math.round(window.innerWidth/(100/t971_getRandom(0,100)));var leftOffset=Math.round(window.innerWidth/(100/t971_getRandom(-10,10)));var leftEnd=leftStart+leftOffset;var duration=t971_getRandom(snowSettings.minDuration,snowSettings.maxDuration);var delay=t971_getRandom(1,30).toFixed(2)*-1;var opacity=Math.random().toFixed(2);var flakeStyle=t971_getRandom(0,3);styleRule='.t971__snowflake:nth-child('+i+') {'+'max-width: 40px;'+'max-height: 40px;'+'display: block;'+'opacity: '+opacity+';'+'-moz-animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'-webkit-animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'}'+'@keyframes snow-'+i+' {'+'0% {'+'transform: translate('+leftStart+'px, -10px)'+'}'+'80% {'+'opacity: '+opacity+';'+'}'+'100% {'+'opacity: 0;'+'transform: translate('+leftEnd+'px, '+parentHeight+')'+'}'+'}';style+=styleRule;snowfall+='
'+snowflake[flakeStyle]+'
'} var snowfallLayer2=document.createElement('span');snowfallLayer2.innerHTML=snowfall;snowfallLayer1.appendChild(snowfallLayer2);var divStyle=document.createElement('style');divStyle.innerHTML=style;document.querySelector('head').appendChild(divStyle)} function t971_getRandom(min,max){min=Math.ceil(min);max=Math.floor(max);return Math.floor(Math.random()*(max-min+1))+min} function t674_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var backgroundImage=rec.querySelector('.t674__img-holder');if(!backgroundImage)return;backgroundImage.onload=function(){var delay=0;var allRecords=document.getElementById('allrecords');if(allRecords.getAttribute('data-blocks-animationoff')!=='yes'){delay=600} setTimeout(function(){document.body.classList.add('t674__body_with-bg')},delay)};var event=document.createEvent('HTMLEvents');event.initEvent('load',!0,!1);backgroundImage.dispatchEvent(event)} 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 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.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')})})})} 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 menuShadow=menu.getAttribute('data-menu-shadow')||'0';var menuShadowValue=menuShadow==='100'?menuShadow:'0.'+menuShadow;menu.style.backgroundColor=window.pageYOffset>20?bgColorAfterScroll:bgColor;if(window.pageYOffset>20&&bgOpacityTwo==='0'||window.pageYOffset<=20&&bgOpacity==='0.0'||menuShadow===' '){menu.style.boxShadow='none'}else{menu.style.boxShadow='0px 1px 3px rgba(0,0,0,'+menuShadowValue+')'}})} 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)}