1function 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<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)},threshhold)}else{last=now;fn.apply(context,args)}}}2function t1067_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1067');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var rows=rec.querySelectorAll('.t1067__row');Array.prototype.forEach.call(rows,function(row){var descriptions=row.querySelectorAll('.t-card__descr');var maxHeight=0;for(var i=0;i<descriptions.length;i++){descriptions[i].style.height=''}3for(var i=0;i<descriptions.length;i++){var description=descriptions[i];var descriptionStyle=getComputedStyle(description,null);var descriptionPaddingTop=parseInt(descriptionStyle.paddingTop)||0;var descriptionPaddingBottom=parseInt(descriptionStyle.paddingBottom)||0;var descriptionHeight=description.clientHeight-(descriptionPaddingTop+descriptionPaddingBottom);if(descriptionHeight>maxHeight)maxHeight=descriptionHeight}4if(window.innerWidth>=960){for(var i=0;i<descriptions.length;i++){descriptions[i].style.height=maxHeight+'px'}}else{for(var i=0;i<descriptions.length;i++){descriptions[i].style.height=''}}})}5function t1068_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1068');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});t1068_setEqualHeight(recId);window.addEventListener('resize',t_throttle(function(){t1068_setEqualHeight(recId)}));if(typeof jQuery!=='undefined'){$(container).on('displayChanged',function(){t1068_setEqualHeight(recId)})}else{container.addEventListener('displayChanged',function(){t1068_setEqualHeight(recId)})}}
function t1068_setEqualHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1068');if(!container)return;var rows=rec.querySelectorAll('.t1068__row');Array.prototype.forEach.call(rows,function(row){var titles=row.querySelectorAll('.t1068__title');var descriptions=row.querySelectorAll('.t1068__descr');var prices=row.querySelectorAll('.t1068__price');var imageWrappers=row.querySelectorAll('.t1068__imgwrapper');if(titles.length>0)t1068_updateHeight(titles);if(descriptions.length>0)t1068_updateHeight(descriptions);if(prices.length>0)t1068_updateHeight(prices);if(imageWrappers.length>0){t1068_updateHeight(imageWrappers);window.onload=function(){t1068_updateHeight(imageWrappers)}}})}function t1068_updateHeight(elements){var maxHeight=0;for(var i=0;i<elements.length;i++){elements[i].style.height=''}for(var i=0;i<elements.length;i++){var element=elements[i];var elementStyle=getComputedStyle(element,null);var elementPaddingTop=parseInt(elementStyle.paddingTop)||0;var elementPaddingBottom=parseInt(elementStyle.paddingBottom)||0;var elementHeight=element.clientHeight-(elementPaddingTop+elementPaddingBottom);if(elementHeight>maxHeight)maxHeight=elementHeight}if(window.innerWidth>=960){for(var i=0;i<elements.length;i++){elements[i].style.height=maxHeight+'px'}}else{for(var i=0;i<elements.length;i++){elements[i].style.height=''}}}function t1069_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1069');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var rows=rec.querySelectorAll('.t1069__row');Array.prototype.forEach.call(rows,function(row){var titles=row.querySelectorAll('.t-card__title');var descriptions=row.querySelectorAll('.t-card__descr');var prices=row.querySelectorAll('.t1069__price');var subtitles=row.querySelectorAll('.t-card__uptitle');if(titles.length>0)t1069_equalHeight(titles);if(descriptions.length>0)t1069_equalHeight(descriptions);if(prices.length>0)t1069_equalHeight(prices);if(subtitles.length>0)t1069_equalHeight(subtitles)})}function t1069_equalHeight(elements){var maxHeight=0;for(var i=0;i<elements.length;i++){elements[i].style.height=''}for(var i=0;i<elements.length;i++){var element=elements[i];var elementStyle=getComputedStyle(element,null);var elementPaddingTop=parseInt(elementStyle.paddingTop)||0;var elementPaddingBottom=parseInt(elementStyle.paddingBottom)||0;var elementHeight=element.clientHeight-(elementPaddingTop+elementPaddingBottom);if(elementHeight>maxHeight)maxHeight=elementHeight}if(window.innerWidth>=960){for(var i=0;i<elements.length;i++){elements[i].style.height=maxHeight+'px'}}else{for(var i=0;i<elements.length;i++){elements[i].style.height=''}}}function t1070_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1070');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var rows=rec.querySelectorAll('.t1070__row');Array.prototype.forEach.call(rows,function(row){var titles=row.querySelectorAll('.t-card__title');var descriptions=row.querySelectorAll('.t-card__descr');var prices=row.querySelectorAll('.t1070__price');var images=row.querySelectorAll('.t1070__img');if(titles.length>0)t1070_equalHeight(titles);if(descriptions.length>0)t1070_equalHeight(descriptions);if(prices.length>0)t1070_equalHeight(prices);if(images.length>0){var promises=[];for(var i=0;i<images.length;i++){var image=images[i];var promise=new Promise(function(resolve){if(image.complete)return resolve();image.addEventListener('load',resolve)});promises.push(promise)}Promise.all(promises).then(function(){t1070_equalHeight(images)})}})}function t1070_equalHeight(elements){var maxHeight=0;for(var i=0;i<elements.length;i++){elements[i].style.height=''}for(var i=0;i<elements.length;i++){var element=elements[i];var elementStyle=getComputedStyle(element,null);var elementPaddingTop=parseInt(elementStyle.paddingTop)||0;var elementPaddingBottom=parseInt(elementStyle.paddingBottom)||0;var elementHeight=element.clientHeight-(elementPaddingTop+elementPaddingBottom);if(elementHeight>maxHeight)maxHeight=elementHeight}if(window.innerWidth>=960){for(var i=0;i<elements.length;i++){elements[i].style.height=maxHeight+'px'}}else{for(var i=0;i<elements.length;i++){elements[i].style.height=''}}}function t1071_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1071');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var rows=rec.querySelectorAll('.t1071__row');Array.prototype.forEach.call(rows,function(row){var descriptions=row.querySelectorAll('.t-card__descr');var maxHeight=0;for(var i=0;i<descriptions.length;i++){descriptions[i].style.height=''}for(var i=0;i<descriptions.length;i++){var description=descriptions[i];var descriptionStyle=getComputedStyle(description,null);var descriptionPaddingTop=parseInt(descriptionStyle.paddingTop)||0;var descriptionPaddingBottom=parseInt(descriptionStyle.paddingBottom)||0;var descriptionHeight=description.clientHeight-(descriptionPaddingTop+descriptionPaddingBottom);if(descriptionHeight>maxHeight)maxHeight=descriptionHeight}if(window.innerWidth>=960){for(var i=0;i<descriptions.length;i++){descriptions[i].style.height=maxHeight+'px'}}else{for(var i=0;i<descriptions.length;i++){descriptions[i].style.height=''}}})}function t1071_setHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1071');if(!container)return;var bgImages=rec.querySelectorAll('.t1071__bgimg');for(var i=0;i<bgImages.length;i++){var bgImage=bgImages[i];var bgImageWidth=bgImage.getAttribute('data-image-width');var bgImageHeight=bgImage.getAttribute('data-image-height');var ratio=bgImageHeight/bgImageWidth;var paddingBottom=ratio*100;bgImage.style.paddingBottom=paddingBottom+'%'}}function t1072_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1072');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});if(document.fonts&&document.fonts.ready){document.fonts.ready.then(function(){t1072_equalHeight(rec)})}else{setTimeout(function(){t1072_equalHeight(rec)},500)}}function t1072_equalHeight(rec){var rows=rec.querySelectorAll('.t1072__row');Array.prototype.forEach.call(rows,function(row){var titles=row.querySelectorAll('.t1072__title');var texts=row.querySelectorAll('.t-card__descr');var prices=row.querySelectorAll('.t1072__price');var headers=row.querySelectorAll('.t1072__header');if(titles.length>0)t1072_equalHeightElems(titles);if(texts.length>0)t1072_equalHeightElems(texts);if(prices.length>0)t1072_equalHeightElems(prices);if(headers.length>0)t1072_equalHeightElems(headers)})}function t1072_equalHeightElems(elements){var maxHeight=0;for(var i=0;i<elements.length;i++){elements[i].style.height=''}for(var i=0;i<elements.length;i++){var element=elements[i];var elementStyle=getComputedStyle(element,null);var elementPaddingTop=parseInt(elementStyle.paddingTop)||0;var elementPaddingBottom=parseInt(elementStyle.paddingBottom)||0;var elementHeight=element.clientHeight-(elementPaddingTop+elementPaddingBottom);if(elementHeight>maxHeight)maxHeight=elementHeight}if(window.innerWidth>=960){for(var i=0;i<elements.length;i++){elements[i].style.height=maxHeight+'px'}}else{for(var i=0;i<elements.length;i++){elements[i].style.height=''}}}function t1073_setHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1073');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var bgImages=rec.querySelectorAll('.t1073__bgimg');for(var i=0;i<bgImages.length;i++){var bgImage=bgImages[i];var bgImageWidth=bgImage.getAttribute('data-image-width');var bgImageHeight=bgImage.getAttribute('data-image-height');var ratio=bgImageHeight/bgImageWidth;var paddingBottom=ratio*100;bgImage.style.paddingBottom=paddingBottom+'%'}}