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<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)},threshhold)}else{last=now;fn.apply(context,args)}}}
function t650_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t650_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var wrapper=rec.querySelector('.t650');if(!wrapper)return;var container=rec.querySelector('.t650__container');if(!container)return;var columnsInRow=Number(container.getAttribute('data-columns-in-row'));if(columnsInRow===0||columnsInRow===''){columnsInRow=1}
var allCols=Array.prototype.slice.call(rec.querySelectorAll('.t-card__col'));var rowsArray=[];for(var i=0;i<allCols.length;i+=columnsInRow){rowsArray.push(allCols.slice(i,i+columnsInRow))}
if(window.innerWidth>=960){for(var i=0;i<rowsArray.length;i++){var row=rowsArray[i];var maxHeight=0;var innerCols=[];for(var j=0;j<row.length;j++){innerCols.push(row[j].querySelector('.t650__inner-col'))}
for(var j=0;j<innerCols.length;j++){var col=innerCols[j];var colText=col.querySelector('.t650__text');var colBtn=col.querySelector('.t650__btn-container');var colHeight=colText.offsetHeight+(colBtn?colBtn.offsetHeight:0);if(colHeight>maxHeight)maxHeight=colHeight}
for(var j=0;j<innerCols.length;j++){innerCols[j].style.height=maxHeight+'px'}}}else{var cols=rec.querySelectorAll('.t650__inner-col');for(var i=0;i<cols.length;i++){cols[i].style.height='auto'}}}