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&&now500)cardsCount=500;var startIndexShowBlock=cardsCount;var countShowBlock=cardsCount;var colsShow=t405__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i(scrollPosition+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} window.requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)}})();function t270_scroll(hash,offset){if(!hash)return;t270_checkLoad(hash,offset);if(hash.indexOf('#!/tproduct/')!==-1||hash.indexOf('#!/tab/')!==-1){return!0} var isHistoryChangeAllowed=window.location.hash!==hash;var wrapperBlock=document.querySelector('.t270');var dontChangeHistory=wrapperBlock?Boolean(wrapperBlock.getAttribute('data-history-disabled')):!1;t270_scrollToEl(hash,offset);if(!dontChangeHistory&&isHistoryChangeAllowed){if(history.pushState){history.pushState(null,null,hash)}else{window.location.hash=hash} isHistoryChangeAllowed=!1} return!0} function t270_checkLoad(hash,offset){if(window.t270_loadChecked)return;var sliderWrappers=document.body.querySelectorAll('.t-slds__items-wrapper');if(!sliderWrappers.length)return;var lastWrapper=sliderWrappers[sliderWrappers.length-1];var sliderImgs=lastWrapper?lastWrapper.querySelectorAll('.t-slds__bgimg'):[];var lastImg=sliderImgs[sliderImgs.length-1];var imageUrl=lastImg?window.getComputedStyle(lastImg).backgroundImage:'';imageUrl=imageUrl.substring(5,imageUrl.length-2);var preloaderImg=document.createElement('img');preloaderImg.src=imageUrl?imageUrl:'';preloaderImg.addEventListener('load',function(){t270_scroll(hash,offset);window.t270_loadChecked=!0})} function t270_scrollToEl(hash,offset){if(document.body.getAttribute('data-scroll'))return;var scrollTargetY=t270_getTarget(hash,offset);if(!scrollTargetY)return;var html=document.querySelector('html');var body=document.body;var documentHeight=Math.max(body.scrollHeight,body.offsetHeight,body.clientHeight,html.offsetHeight);var scrollY=window.scrollY||document.documentElement.scrollTop;var speed=2000;var time=Math.max(.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,.8));var currentTime=0;function t270_easeInQuad(pos){return Math.pow(pos,2)} function t270_animationScroll(){currentTime+=1/60;var newDocumentHeight=Math.max(body.scrollHeight,body.offsetHeight,body.clientHeight,html.offsetHeight);if(documentHeightmenuBlock.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')) t282_highlight(recid)})});menu.addEventListener('clickedAnchorInTooltipMenu',function(){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(){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)}