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&&now=rightContainerWidth?leftContainerWidth:rightContainerWidth;maxWidth=Math.ceil(maxWidth);Array.prototype.forEach.call(centerContainerLi,function(li){centerWidth+=t228_getFullWidth(li)});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 t448_setHeight(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var cover=rec.querySelector('.t-cover');var coverHeight=cover?cover.offsetHeight:0;var coverWrapper=rec.querySelector('.t448-cover__wrapper');var textWrapper=rec.querySelector('.t448__wrapper');var textHeight=textWrapper?textWrapper.clientHeight:0;var screenShot=rec.querySelector('.t448__screenshot');var imgHeight=screenShot?screenShot.offsetHeight:0;var height=textHeight+imgHeight;var newHeight=coverHeight-imgHeight;var container=rec.querySelector('.t448');var cropImg=container?container.getAttribute('data-crop-image'):'';if(cropImg&&container){container.classList.add('t448__no-overflow');if(coverWrapper){container.style.height=coverWrapper.offsetHeight+'px'}} if(coverHeight>height){rec.classList.add('t448__stretched');if(coverWrapper)coverWrapper.style.height=newHeight+'px';if(cropImg&&container){container.classList.remove('t448__no-overflow');container.style.height=''}}else{rec.classList.remove('t448__stretched');if(coverWrapper)coverWrapper.style.height=''}} function t389_scrollToTop(){var duration=700;var difference=window.pageYOffset;var step=10*difference/duration;var timer=setInterval(function(){difference-=step;window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(window.pageYOffset===0){document.body.removeAttribute('data-scrollable');clearInterval(timer)}},10)}