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&&now980){for(var i=0;i960){textWrapper.style.height=imageHeight+'px';blockTextWrap.style.height=t814_outerHeight(textWrapper)+'px'}else{blockTextWrap.style.height='auto'}} function t814_outerHeight(element){var height=element.offsetHeight;var style=getComputedStyle(element);height+=parseInt(style.marginTop)+parseInt(style.marginBottom);return height} function t889_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t889');if(!container)return;t889_setHeight(recId);window.addEventListener('resize',t_throttle(function(){if(window.noAdaptive&&window.noAdaptive===!0&&window.isMobile)return;t889_setHeight(recId)}));if(typeof jQuery!=='undefined'){$(container).on('displayChanged',function(){t889_setHeight(recId)})}else{container.addEventListener('displayChanged',function(){t889_setHeight(recId)})} if(window.isMobile){window.addEventListener('orientationchange',function(){t889_setHeight(recId)})}} function t889_setHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t889');if(!container)return;var wrapper=rec.querySelector('.t889__wrapper');var wrapperWidth=wrapper.offsetWidth;var imageWrap=rec.querySelector('.t889__blockimg');var image=imageWrap.querySelector('img');var content=rec.querySelector('.t889__content');var textWrapperHeight=t889_outerHeight(content);var newImage=new Image();var imageSrc=image.getAttribute('data-original')||image.getAttribute('src');newImage.src=imageSrc;newImage.addEventListener('load',function(){if(window.innerWidth>960){var imageStyle=getComputedStyle(imageWrap,null);var imagePaddingTop=parseInt(imageStyle.paddingTop)||0;var imagePaddingBottom=parseInt(imageStyle.paddingBottom)||0;var imageNaturalHeight=image.clientHeight;if(!imageNaturalHeight&&image.src){var ratio=wrapperWidth/newImage.naturalWidth;imageNaturalHeight=newImage.naturalHeight*ratio} var imageHeight=imageNaturalHeight-(imagePaddingTop+imagePaddingBottom);if(textWrapperHeight>=imageHeight){wrapper.style.height=textWrapperHeight+'px'}else{wrapper.style.height=imageHeight+'px'}}else{wrapper.style.height=null}})} function t889_outerHeight(element){if(!element)return;var height=element.offsetHeight;var style=getComputedStyle(element);height+=parseInt(style.marginTop)+parseInt(style.marginBottom);return height} function t479_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var wrapperBlock=rec.querySelector('.t479');var videoLazy=rec.querySelector('.t-video-lazyload');if(videoLazy){t_onFuncLoad('t_video_lazyload__setHeight',function(){var videoHeight=videoLazy.getAttribute('data-videolazy-height');if(videoHeight!=='540px')return;t_video_lazyload__setHeight(videoLazy);window.addEventListener('resize',function(){t_video_lazyload__setHeight(videoLazy)});if(!wrapperBlock)return;wrapperBlock.addEventListener('displayChanged',function(){t_video_lazyload__setHeight(videoLazy)})})} var videoCarrier=rec.querySelector('.t-video-carier');if(!videoCarrier)return;var screenMin=rec.getAttribute('data-screenmin');var screenMax=rec.getAttribute('data-screenmax');var isLoad=!1;if(window.innerWidthparseInt(screenMax,10))return;window.addEventListener('scroll',t_throttle(function(){if(!isLoad){var videoCarrierOffsetTop=videoCarrier.getBoundingClientRect().top+window.pageYOffset;var videoCarrierHeight=parseInt(window.getComputedStyle(videoCarrier).height,10);var windowScrollTop=window.pageYOffset;var windowHeight=window.innerHeight;if(windowScrollTop+windowHeight>videoCarrierOffsetTop-500&&windowScrollTop