window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
window.isSafari=!1;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){window.isSafari=!0}
window.isSafariVersion='';if(window.isSafari){var version=(navigator.appVersion).match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/);if(version!==null){window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}}
window.browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2);window.tildaBrowserLang=window.browserLang;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 t607_init(recid){t_onFuncLoad('t_menu__getSectionByHref',function(){t607_checkAnchorLinks(recid);window.addEventListener('orientationchange',function(){setTimeout(function(){t607_checkAnchorLinks(recid)},500)})})}
function t607_checkAnchorLinks(recid){var rec=document.getElementById('rec'+recid);if(!rec||window.innerWidth<980&&rec.getAttribute('data-menu-inited'))return;rec.setAttribute('data-menu-inited','y');var navLinks=rec.querySelectorAll('.t607__list_item a[href*=\'#\']');navLinks=Array.prototype.filter.call(navLinks,function(navLink){return!navLink.classList.contains('tooltipstered')});if(navLinks.length){t607_catchScroll(navLinks)}}
function t607_initKeydownEvent(navLinks,sections){document.addEventListener('keydown',function(e){var direction='';if(e.which===38||e.which===33)direction='top';if(e.which===40||e.which===34)direction='bottom';var activeLink=navLinks.filter(function(el){return el.classList.contains('t-active')});activeLink=activeLink.length?activeLink[0]:null;var activeSection=t_menu__getSectionByHref(activeLink);var activeSectionID=activeSection?activeSection.id:'';var sectionIndexList=sections.map(function(section,i){if(direction==='top'&&section.id===activeSectionID)return i+1;if(direction==='bottom'&&section.id===activeSectionID)return i-1});sectionIndexList=sectionIndexList.filter(function(item){return typeof item==='number'});var newActiveSection=sections[sectionIndexList[0]];if(!newActiveSection)return;var menu=document.querySelector('.t607');var topOffset=menu?menu.getAttribute('data-offset-top')||'0':'0';var sectionTopOffset=newActiveSection.getAttribute('data-offset-top');topOffset=parseInt(topOffset,10);sectionTopOffset=parseInt(sectionTopOffset,10);var topPos=sectionTopOffset-topOffset;t607_scrollToEl(topPos)})}
function t607_catchScroll(navLinks){navLinks=Array.prototype.slice.call(navLinks);var clickedSectionID=null;var sections=[];var sectionToNavigationLinkID={};var interval=100;var lastCall;var timeoutID;navLinks=navLinks.reverse();navLinks.forEach(function(link){var currentSection=t_menu__getSectionByHref(link);if(currentSection&&currentSection.id){sections.push(currentSection);sectionToNavigationLinkID[currentSection.id]=link}});t_menu__updateSectionsOffsets(sections);sections.sort(function(a,b){var firstTopOffset=parseInt(a.getAttribute('data-offset-top'),10)||0;var secondTopOffset=parseInt(b.getAttribute('data-offset-top'),10)||0;return secondTopOffset-firstTopOffset});window.addEventListener('resize',t_throttle(function(){t_menu__updateSectionsOffsets(sections)}));var menuEls=document.querySelectorAll('.t607');Array.prototype.forEach.call(menuEls,function(menu){menu.addEventListener('displayChanged',function(){t_menu__updateSectionsOffsets(sections)})});setInterval(function(){t_menu__updateSectionsOffsets(sections)},5000);t_menu__highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID);t607_initKeydownEvent(navLinks,sections);navLinks.forEach(function(navLink,i){navLink.addEventListener('click',function(e){var clickedSection=t_menu__getSectionByHref(navLink);if(!navLink.classList.contains('tooltipstered')&&clickedSection&&clickedSection.id){navLinks.forEach(function(link,index){if(index===i){link.classList.add('t-active');if(!document.querySelector('.t270')){e.preventDefault();var menu=document.querySelector('.t607');var topOffset=menu?menu.getAttribute('data-offset-top')||'0':'0';var sectionTopOffset=clickedSection.getAttribute('data-offset-top');topOffset=parseInt(topOffset,10);sectionTopOffset=parseInt(sectionTopOffset,10);var topPos=sectionTopOffset-topOffset;t607_scrollToEl(topPos)}}else{link.classList.remove('t-active')}});clickedSectionID=clickedSection.id}})});window.addEventListener('scroll',function(){var dateNow=new Date().getTime();if(lastCall&&dateNow<lastCall+interval){clearTimeout(timeoutID);timeoutID=setTimeout(function(){lastCall=dateNow;clickedSectionID=t_menu__highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID)},interval-(dateNow-lastCall))}else{lastCall=dateNow;clickedSectionID=t_menu__highlightNavLinks(navLinks,sections,sectionToNavigationLinkID,clickedSectionID)}})}
function t607_scrollToEl(elTopPos){if(elTopPos===window.pageYOffset)return!1;var scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);var maxTopPosViewport=scrollHeight-window.innerHeight;if(elTopPos<0)elTopPos=0;if(elTopPos>maxTopPosViewport)elTopPos=maxTopPosViewport;var stepDivider=20;var duration=400/stepDivider;var difference=window.pageYOffset;var step=Math.abs(window.pageYOffset-elTopPos)/duration;var direction=window.pageYOffset>elTopPos?'top':'bottom';var timerID=setInterval(function(){if(direction==='top'){difference-=step}else{difference+=step}
window.scrollTo(0,difference);document.body.setAttribute('data-scrollable','true');if(direction==='top'&&difference<=elTopPos||direction==='bottom'&&difference>=elTopPos){document.body.removeAttribute('data-scrollable');window.scrollTo(0,elTopPos);clearInterval(timerID)}},stepDivider)}
function t886_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var notificationBlock=rec.querySelector('.t886');var closeButton=rec.querySelector('.t886__btn');var storageItem=notificationBlock.getAttribute('data-storage-item');var lastOpen;try{lastOpen=localStorage.getItem(storageItem)}catch(error){console.log('Your web browser does not support localStorage. Error status: ',error)}
if(!lastOpen){notificationBlock.classList.remove('t886_closed')}
if(closeButton){closeButton.addEventListener('click',function(event){notificationBlock.classList.add('t886_closed');try{localStorage.setItem(storageItem,Math.floor(Date.now()/1000))}catch(error){console.log('Your web browser does not support localStorage. Error status: ',error)}
event.preventDefault()})}}
function t503_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t1029_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t1032_init(recId){var rec=document.querySelector('#rec'+recId);if(!rec)return;t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var orderLinks=rec.querySelectorAll('a[href^="#order"]');if(orderLinks.length!==0){Array.prototype.forEach.call(orderLinks,function(orderLink){orderLink.addEventListener('click',function(){var linkElement=this;var payBoxElement=document.querySelector('.js-payment-systembox');t1032_setCoordinateToPaymentBox(linkElement,payBoxElement);payBoxElement.style.marginTop='0';payBoxElement.style.marginLeft='0';window.addEventListener('resize',function(){if(getComputedStyle(payBoxElement,null).display==='block'&&linkElement){t1032_setCoordinateToPaymentBox(linkElement,payBoxElement)}})})})}}
function t1032_setCoordinateToPaymentBox(linkElement,payBoxElement){var oldTopCoord=0;var newTopCoord=0;var linkTopOffset=linkElement.getBoundingClientRect().top+window.pageYOffset;var linkLeftOffset=linkElement.getBoundingClientRect().left+window.pageXOffset;var offsetParent=linkElement.closest('.t1032__col');var offsetParentDimensions=t1032_getElementDimension(offsetParent);var payBoxDimensions=t1032_getElementDimension(payBoxElement);var paddingParent=offsetParentDimensions.paddingLeft+offsetParentDimensions.paddingRight;var top=linkTopOffset+offsetParentDimensions.height-payBoxDimensions.height;var left=linkLeftOffset+(offsetParentDimensions.width-paddingParent)/2-payBoxDimensions.width/2;oldTopCoord=payBoxElement.style.top;payBoxElement.style.top=top+'px';payBoxElement.style.left=left+'px';newTopCoord=payBoxElement.style.top;var difference=21;if(parseInt(oldTopCoord,10)-parseInt(newTopCoord,10)===difference){payBoxElement.style.top=top+difference+'px'}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;while(el&&el.nodeType===1){if(Element.prototype.matches.call(el,s)){return el}
el=el.parentElement||el.parentNode}
return null}}}
function t1032_unifyHeights(recId){var rec=document.querySelector('#rec'+recId);if(!rec)return;var container=rec.querySelector(' .t1032 .t-container');if(!container)return;var allRows=container.querySelectorAll('.t1032__row');for(var i=0;i<allRows.length;i++){var allTitles=allRows[i].querySelectorAll('.t-card__title');var allDescriptions=allRows[i].querySelectorAll('.t-card__descr');var allWrappers=allRows[i].querySelectorAll('.t1032__wrapper');var highestTitle=0;var highestDescription=0;var highestWrapper=0;Array.prototype.forEach.call(allTitles,function(title){title.style.height='auto';var titleDimension=t1032_getElementDimension(title);if(titleDimension.height>highestTitle){highestTitle=titleDimension.height}});if(window.innerWidth>=960&&t1032_isVisible(container)){Array.prototype.forEach.call(allTitles,function(title){title.style.height=highestTitle+'px'})}else{Array.prototype.forEach.call(allTitles,function(title){title.style.height='auto'})}
Array.prototype.forEach.call(allDescriptions,function(description){description.style.height='auto';var descriptionDimension=t1032_getElementDimension(description);if(descriptionDimension.height>highestDescription){highestDescription=descriptionDimension.height}});if(window.innerWidth>=960&&t1032_isVisible(container)){Array.prototype.forEach.call(allDescriptions,function(description){description.style.height=highestDescription+'px'})}else{Array.prototype.forEach.call(allDescriptions,function(description){description.style.height='auto'})}
Array.prototype.forEach.call(allWrappers,function(wrapper){wrapper.style.height='auto';var wrapperDimension=t1032_getElementDimension(wrapper);if(wrapperDimension.height>highestWrapper){highestWrapper=wrapperDimension.height}});if(window.innerWidth>=960&&t1032_isVisible(container)){Array.prototype.forEach.call(allWrappers,function(wrapper){wrapper.style.height=highestWrapper+'px'})}else{Array.prototype.forEach.call(allWrappers,function(wrapper){wrapper.style.height='auto'})}}}
function t1032_getElementDimension(element){var zeroes={height:0,width:0,paddingLeft:0,paddingRight:0,}
if(!element)return zeroes;var elStyle=getComputedStyle(element);if(!elStyle)return zeroes;return{height:parseFloat(elStyle.height.replace('px',''),10),width:parseFloat(elStyle.width.replace('px',''),10),paddingLeft:parseFloat(elStyle.paddingLeft.replace('px',''),10),paddingRight:parseFloat(elStyle.paddingRight.replace('px',''),10),}}
function t1032_isVisible(element){return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length)}
var t1025_POPUP_SHOWED_EVENT_NAME='catalog:popupShowed';var t1025_POPUP_CLOSED_EVENT_NAME='catalog:popupClosed';function t1025__init(recid){setTimeout(function(){t_onFuncLoad('t_prod__init',function(){t_prod__init(recid)});t1025__unifyRightColumnWidth(recid);var container=document.querySelector('#rec'+recid+' .t1025');if(container){container.addEventListener('displayChanged',function(){setTimeout(function(){t1025__unifyRightColumnWidth(recid)},100)})}
t1025_initPopup(recid);t1025__hoverZoom_init(recid);t1025__updateLazyLoad(recid);t1025__alignButtons_init(recid);t_onFuncLoad('t_store_addProductQuantityEvents',function(){t1025_initProductQuantity(recid)});var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);document.body.dispatchEvent(event)},500)}
function t1025__unifyRightColumnWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;if(rec.classList.contains('t395__off')||rec.classList.contains('t397__off')||rec.classList.contains('t400__off'))return;var wrapper=rec.querySelector('.t1025__col');if(!wrapper)return;var items=wrapper.querySelectorAll('.t1025__item');if(items&&items.length&&(items[0].classList.contains('t1025__item_fixed-width')||items[0].classList.contains('t1025__item_under-description'))){return}
var maxWidth=0;var maxPriceWidth=0;var maxButtonsWidth=0;Array.prototype.forEach.call(items,function(item){var col=item.querySelector('.t1025__price-buttons');if(col){if(col.classList.contains('t1025__price-buttons_in-row')){var price=col.querySelector('.t1025__price-wrapper');var buttons=col.querySelector('.t1025__btn-wrapper');if(price){var priceWidth=parseInt(window.getComputedStyle(price).width,10);if(priceWidth===0||isNaN(priceWidth))priceWidth=price.offsetWidth;if(priceWidth>maxPriceWidth)maxPriceWidth=priceWidth}
if(buttons){var buttonsWidth=parseInt(window.getComputedStyle(buttons).width,10);if(buttonsWidth===0||isNaN(buttonsWidth))buttonsWidth=buttons.offsetWidth;if(buttonsWidth>maxButtonsWidth)maxButtonsWidth=buttonsWidth}}
else{var curWidth=parseInt(window.getComputedStyle(col).width,10);if(curWidth===0||isNaN(curWidth))curWidth=col.offsetWidth;if(curWidth>maxWidth)maxWidth=curWidth}}});Array.prototype.forEach.call(items,function(item){var col=item.querySelector('.t1025__price-buttons');if(col){if(col.classList.contains('t1025__price-buttons_in-row')){var price=col.querySelector('.t1025__price-wrapper');var buttons=col.querySelector('.t1025__btn-wrapper');if(price)price.style.width=0;if(buttons)buttons.style.width=0;col.style.width=0}else{col.style.width=0}}});Array.prototype.forEach.call(items,function(item){var col=item.querySelector('.t1025__price-buttons');if(col){if(col.classList.contains('t1025__price-buttons_in-row')){var price=col.querySelector('.t1025__price-wrapper');var buttons=col.querySelector('.t1025__btn-wrapper');if(price)price.style.width=maxPriceWidth+'px';if(buttons)buttons.style.width=maxButtonsWidth+'px';if(maxPriceWidth>0||maxButtonsWidth>0){col.style.width=maxPriceWidth+maxButtonsWidth+'px'}}
else if(maxWidth>0){col.style.width=maxWidth+'px'}}})}
function t1025_initProductQuantity(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var productList=rec.querySelectorAll('.t1025__item, .t1025__product-full');Array.prototype.forEach.call(productList,function(product){t_store_addProductQuantityEvents(product)})}
function t1025__showMore(recid){var rec=document.querySelector('#rec'+recid+' .t1025');if(!rec)return;var cardsCount=parseInt(rec.getAttribute('data-show-count'),10);if(isNaN(cardsCount)||cardsCount<1){return}
var showMoreButton=rec.querySelector('.t1025__showmore');if(!showMoreButton)return;if(!showMoreButton.querySelector('td').textContent){showMoreButton.querySelector('td').textContent=t1025__dict()}
var productCards=rec.querySelectorAll('.t1025__item');var cardsLenght=productCards.length;var originalDisplayProperty=window.getComputedStyle(productCards[0]).display;if(cardsLenght>cardsCount){showMoreButton.style.display='inline-block'}
Array.prototype.forEach.call(productCards,function(card){card.style.display='none'});t1025__showSeparator(rec,cardsCount);for(var i=0;i<cardsCount;i++){if(productCards[i]){productCards[i].style.display=originalDisplayProperty}}
window.addEventListener('resize',function(){Array.prototype.forEach.call(productCards,function(card){card.style.display='none'});for(var i=0;i<cardsCount;i++){if(productCards[i]){productCards[i].style.display=originalDisplayProperty}}});var showedCardsCount=0;showMoreButton.addEventListener('click',function(){Array.prototype.forEach.call(productCards,function(product){if(product.style.display===originalDisplayProperty){showedCardsCount++}});cardsCount+=showedCardsCount;for(var i=0;i<cardsCount;i++){if(productCards[i]){productCards[i].style.display=originalDisplayProperty}}
if(cardsCount>=cardsLenght){showMoreButton.style.display='none'}
t1025__showSeparator(rec,cardsCount);if(rec.querySelector('[data-buttons-v-align]')){t1025__alignButtons(recid)}
if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
function t1025__showSeparator(rec,cardsCount){if(window.jQuery&&rec instanceof jQuery){rec=rec.get(0)}
var allSeparators=rec.querySelectorAll('.t1025__separator_number');Array.prototype.forEach.call(allSeparators,function(separator){separator.classList.add('t1025__separator_hide');if(separator.getAttribute('data-product-separator-number')<=cardsCount){separator.classList.remove('t1025__separator_hide')}})}
function t1025__dict(){var dictionary={EN:'Load more',RU:'Загрузить еще',FR:'Charger plus',DE:'Mehr laden',ES:'Carga más',PT:'Carregue mais',UK:'Завантажити ще',JA:'もっと読み込む',ZH:'裝載更多',};var language=window.browserLang;return dictionary[language]?dictionary[language]:dictionary.EN}
function t1025__alignButtons_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;if(!rec.querySelector('[data-buttons-v-align]')){return}
try{t1025__alignButtons(recid);if(document.querySelector('.t-records').getAttribute('data-tilda-mode')==='edit'){setInterval(function(){t1025__alignButtons(recid)},200)}
window.addEventListener('resize',t_throttle(function(){if(typeof window.noAdaptive!=='undefined'&&window.noAdaptive===!0&&window.isMobile){return}
t1025__alignButtons(recid)}));var wrapperBlock=rec.querySelector('.t1025');if(wrapperBlock){wrapperBlock.addEventListener('displayChanged',function(){t1025__alignButtons(recid)})}
if(window.isMobile){window.addEventListener('orientationchange',function(){t1025__alignButtons(recid)})}}catch(error){console.log('buttons-v-align error: '+error.message)}}
function t1025__alignButtons(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var maxHeight=0;var wrappers=rec.querySelectorAll('.t1025__textwrapper');var container=rec.querySelector('.t1025__parent');if(container){var productInRow=parseInt(container.getAttribute('data-blocks-per-row'),10)}
var mobileView=window.innerWidth<=480;var tableView=window.innerWidth<=960&&window.innerWidth>480;var mobileOneRow=window.innerWidth<=960&&rec.querySelector('.t1025__container_mobile-flex');var mobileTwoItemsInRow=window.innerWidth<=480&&rec.querySelector('.t1025 .mobile-two-columns');if(mobileView){productInRow=1}
if(tableView){productInRow=2}
if(mobileTwoItemsInRow){productInRow=2}
if(mobileOneRow){productInRow=999999}
var count=1;var wrappersInRow=[];Array.prototype.forEach.call(wrappers,function(wrapper){wrapper.style.height='auto';if(productInRow===1){wrapper.style.height='auto'}else{wrappersInRow.push(wrapper);if(wrapper.offsetHeight>maxHeight){maxHeight=wrapper.offsetHeight}
Array.prototype.forEach.call(wrappersInRow,function(wrapperInRow){wrapperInRow.style.height=maxHeight+'px'});if(count===productInRow){count=0;maxHeight=0;wrappersInRow=[]}
count++}})}
function t1025__hoverZoom_init(recid){if(window.isMobile){return}
var rec=document.getElementById('rec'+recid);if(!rec)return;var col=rec.querySelector('.t1025__col');try{if(!col||col.getAttribute('data-hover-zoom')!=='yes')return;var hoverScript='https://static.tildacdn.com/js/tilda-hover-zoom-1.0.min.js';if(document.querySelector("script[src^='"+hoverScript+"']")){t_onFuncLoad('t_hoverZoom_init',function(){t_hoverZoom_init(recid)})}else{var script=document.createElement('script');script.type='text/javascript';script.src=hoverScript;script.onload=function(){setTimeout(function(){t_hoverZoom_init(recid)},500)};script.onerror=function(error){console.log('Upload script error: ',error)};document.head.appendChild(script)}}catch(error){console.log('Zoom image init error: '+error.message)}}
function t1025__updateLazyLoad(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var scrollContainer=rec.querySelector(' .t1025__container_mobile-flex');var currentMode=document.querySelector('.t-records').getAttribute('data-tilda-mode');if(scrollContainer&&currentMode!=='edit'&&currentMode!=='preview'){scrollContainer.addEventListener('scroll',t_throttle(function(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}))}}
function t1025_initPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var openerLink=rec.querySelectorAll('[href^="#prodpopup"]');var popup=rec.querySelector('.t-popup');Array.prototype.forEach.call(openerLink,function(link){var product=link.closest('.js-product');var productLid=product.getAttribute('data-product-lid');var productLinks=document.querySelectorAll('.r a[href$="#!/tproduct/'+recid+'-'+productLid+'"]');Array.prototype.forEach.call(productLinks,function(productLink){productLink.addEventListener('click',function(){if(rec.querySelector('[data-product-lid='+productLid+']')){var currentLink=productLink.querySelector('[href^="#prodpopup"]');var event=document.createEvent('HTMLEvents');event.initEvent('click',!0,!1);currentLink.dispatchEvent(event)}})});link.addEventListener('click',clickOnceHandler,!1);function clickOnceHandler(event){event.preventDefault();var product=link.closest('.js-product');var productLid=product.getAttribute('data-product-lid');t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid+' #t1025__product-'+productLid+'')});link.removeEventListener('click',clickOnceHandler,!1)}
link.addEventListener('click',showPopupHandler,!1);function showPopupHandler(event){event.preventDefault();if(event.target.classList.contains('t1002__addBtn')||event.target.parentNode.classList.contains('t1002__addBtn')){return}
t1025_showPopup(recid);var product=link.closest('.js-product');var productLid=product.getAttribute('data-product-lid');var allProducts=popup.querySelectorAll('.js-product');Array.prototype.forEach.call(allProducts,function(product){product.style.display='none'});var productFull=popup.querySelector('.js-product[data-product-lid="'+productLid+'"]');productFull.style.display='block';var analitics=popup.getAttribute('data-track-popup');if(analitics&&productFull&&window.Tilda){var productName=productFull.querySelector('.js-product-name');if(productName){var virtualTitle=productName.textContent;if(!virtualTitle){virtualTitle='prod'+productLid}
Tilda.sendEventToStatistics(analitics,virtualTitle)}}
var currentUrl=window.location.href;if(currentUrl.indexOf('#!/tproduct/')===-1&&currentUrl.indexOf('%23!/tproduct/')===-1){if(typeof history.replaceState!=='undefined'){window.history.replaceState('','',window.location.href+'#!/tproduct/'+recid+'-'+productLid)}}
t1025_updateSlider(recid+' #t1025__product-'+productLid);if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}});if(document.querySelectorAll('#record'+recid).length===0){t1025_checkUrl(recid)}
if(popup&&popup.hasAttribute('data-fixed-button')){t1025_fixedPopupButton(recid)}}
function t1025_checkUrl(recid){var currentUrl=window.location.href;var tprodIndex=(currentUrl.indexOf('#!/tproduct/')+1||currentUrl.indexOf('%23!/tproduct/')+1||currentUrl.indexOf('#%21%2Ftproduct%2F')+1||currentUrl.indexOf('#!%2Ftproduct%2F')+1||currentUrl.indexOf('%23%21%2Ftproduct%2F')+1)-1;if(tprodIndex!==-1){var currentUrl=currentUrl.substring(tprodIndex,currentUrl.length);var curProdLid=currentUrl.substring(currentUrl.indexOf('-')+1,currentUrl.length);if(curProdLid){var curProdLidMatch=curProdLid.match(/([0-9]+)/g);if(curProdLidMatch){curProdLid=curProdLidMatch[0]}}
if(currentUrl.indexOf(recid)===-1)return;var rec=document.getElementById('rec'+recid);if(!rec)return;if(currentUrl.indexOf(recid)!==0&&rec.querySelector('[data-product-lid="'+curProdLid+'"]')){var currentLink=rec.querySelector('[data-product-lid="'+curProdLid+'"] [href^="#prodpopup"]');var event=document.createEvent('HTMLEvents');event.initEvent('click',!0,!1);if(currentLink){currentLink.dispatchEvent(event)}}}}
function t1025_updateSlider(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;t_onFuncLoad('t_slds_SliderWidth',function(){t_slds_SliderWidth(recid)});var slider=rec.querySelector('.t-slds__container');var paddingLeft=parseInt(slider.style.paddingLeft)||0;var paddingRight=parseInt(slider.style.paddingRight)||0;var sliderWrapper=rec.querySelector('.t-slds__items-wrapper');var sliderWidth=slider.clientWidth-(paddingLeft+paddingRight);var position=parseFloat(sliderWrapper.getAttribute('data-slider-pos'));sliderWrapper.style.transform='translate3d(-'+sliderWidth*position+'px, 0, 0)';t_onFuncLoad('t_slds_UpdateSliderHeight',function(){t_slds_UpdateSliderHeight(recid)});t_onFuncLoad('t_slds_UpdateSliderArrowsHeight',function(){t_slds_UpdateSliderArrowsHeight(recid)})}
function t1025_showPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var popup=rec.querySelector('.t-popup');popup.style.display='block';setTimeout(function(){popup.querySelector('.t-popup__container').classList.add('t-popup__container-animated');popup.classList.add('t-popup_show');t_triggerEvent(popup,t1025_POPUP_SHOWED_EVENT_NAME);if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},100);var body=document.body;if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');body.classList.add('t-body_popupshowed');var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);body.dispatchEvent(event);popup.addEventListener('mousedown',function(event){var windowWidth=window.innerWidth;var maxScrollBarWidth=17;var windowWithoutScrollBar=windowWidth-maxScrollBarWidth;if(event.clientX>windowWithoutScrollBar){return}
if(event.target===this){t1025_closePopup(body,popup)}});var closeButtons=rec.querySelectorAll('.t-popup__close, .t1025__close-text');Array.prototype.forEach.call(closeButtons,function(button){button.addEventListener('click',function(){t1025_closePopup(body,popup)})});document.addEventListener('keydown',function(event){var isGalleryShowedOldLib=document.body.classList.contains('t-zoomer__show');if(isGalleryShowedOldLib)return;var isGalleryShowedNewLib=document.body.classList.contains('t-zoomer__active');if(isGalleryShowedNewLib)return;var isPopupShowed=document.body.classList.contains('t-body_popupshowed');if(!isPopupShowed)return;if(popup&&popup.classList.contains('t-popup_show')){if(event.keyCode===27){t1025_closePopup(body,popup)}}});if(window.isSafari){setTimeout(function(){popup.scrollTop=1})}}
function t1025_closePopup(body,popup){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');body.classList.remove('t-body_popupshowed');popup.classList.remove('t-popup_show');var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);body.dispatchEvent(event);var currentUrl=window.location.href;var indexToRemove=currentUrl.indexOf('#!/tproduct/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=currentUrl.indexOf('%23!/tproduct/')}
currentUrl=currentUrl.substring(0,indexToRemove);setTimeout(function(){popup.scrollTop=0;popup.style.display='none';if(typeof history.replaceState!=='undefined'){window.history.replaceState('','',currentUrl)}},300);t_triggerEvent(popup,t1025_POPUP_CLOSED_EVENT_NAME)}
function t1025_fixedPopupButton(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var MOBILE_MAX_WIDTH=560;var popup=rec.querySelector('.t-popup');var popupContainer=popup.querySelector('.t-popup__container');var btnWrappers=rec.querySelectorAll('.t1025__btn-wrapper');Array.prototype.forEach.call(btnWrappers,function(el){el.classList.add('t1025__btn-wrapper-fixed')});function addStyle(){popupContainer.style.paddingBottom='90px';popupContainer.style.cssText+=';transform:none !important;'}
function resetStyle(){popupContainer.style.paddingBottom='';popupContainer.style.transform=''}
function handleResize(){if(window.innerWidth>MOBILE_MAX_WIDTH){resetStyle();return}
addStyle()}
if(window.isMobile){window.addEventListener('orientationchange',handleResize)}
popup.addEventListener(t1025_POPUP_SHOWED_EVENT_NAME,function(){setTimeout(function(){handleResize()})});popup.addEventListener(t1025_POPUP_CLOSED_EVENT_NAME,function(){resetStyle()});window.addEventListener('resize',handleResize)}
function t898_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t898');if(!container)return;rec.setAttribute('data-animationappear','off');rec.style.opacity=1;var whatsApp=rec.querySelector('.t898__icon-whatsapp_wrapper');if(whatsApp){var whatsAppHref=whatsApp.getAttribute('href');if(whatsAppHref&&(whatsAppHref.indexOf('whatsapp://')>-1||whatsAppHref.indexOf('wa.me')>-1)){t898_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref)}}
if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t898_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref){if(whatsAppHref&&whatsAppHref.indexOf('?text=')!==-1){var whatsAppHrefArr=whatsAppHref.split('?text=');whatsAppHrefArr[0]=whatsAppHrefArr[0].replace(/[\(\)+-]/g,'');whatsAppHref=whatsAppHrefArr[0]+'?text='+whatsAppHrefArr[1]}else{whatsAppHref=whatsAppHref.replace(/[\(\)+-]/,'')}
whatsApp.setAttribute('href',whatsAppHref)}
function t706_onSuccessCallback(){var products=document.querySelector('.t706__cartwin-products');var cartBottom=document.querySelector('.t706__cartwin-bottom');var cartForm=document.querySelector('.t706 .t-form__inputsbox');if(products)t706_slideUp(products,10);if(cartBottom)t706_slideUp(cartBottom,10);if(cartForm)t706_slideUp(cartForm,700);try{tcart__unlockScroll()}catch(error){}}
function t706_slideUp(target,duration){if(!target)return;if(!duration&&duration!==0)duration=500;target.style.transitionProperty='height, margin, padding';target.style.transitionDuration=duration+'ms';target.style.boxSizing='border-box';target.style.height=target.offsetHeight+'px';target.style.overflow='hidden';target.style.height='0';target.style.paddingTop='0';target.style.paddingBottom='0';target.style.marginTop='0';target.style.marginBottom='0';setTimeout(function(){target.style.display='none';target.style.height='';target.style.paddingTop='';target.style.paddingBottom='';target.style.marginTop='';target.style.marginBottom='';target.style.overflow='';target.style.transitionDuration='';target.style.transitionProperty=''},duration)}
function t602_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var indicator=rec.querySelector('.t602__indicator');if(!indicator)return;window.addEventListener('scroll',t_throttle(function(){var documentHeight=document.body.clientHeight;var windowScrollTop=document.documentElement.scrollTop;var windowHeight=window.innerHeight;var scrollPercent=(windowScrollTop/(documentHeight-windowHeight))*100;indicator.style.width=scrollPercent+'%'},100))}
function t228__init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlock=rec.querySelector('.t228');var mobileMenu=rec.querySelector('.t228__mobile');var menuSubLinkItems=rec.querySelectorAll('.t-menusub__link-item');var rightBtn=rec.querySelector('.t228__right_buttons_but .t-btn');var mobileMenuPosition=mobileMenu?mobileMenu.style.position||window.getComputedStyle(mobileMenu).position:'';var mobileMenuDisplay=mobileMenu?mobileMenu.style.display||window.getComputedStyle(mobileMenu).display:'';var isFixedMobileMenu=mobileMenuPosition==='fixed'&&mobileMenuDisplay==='block';var overflowEvent=document.createEvent('Event');var noOverflowEvent=document.createEvent('Event');overflowEvent.initEvent('t228_overflow',!0,!0);noOverflowEvent.initEvent('t228_nooverflow',!0,!0);if(menuBlock){menuBlock.addEventListener('t228_overflow',function(){t228_checkOverflow(recid)});menuBlock.addEventListener('t228_nooverflow',function(){t228_checkNoOverflow(recid)})}
rec.addEventListener('click',function(e){var targetLink=e.target.closest('.t-menusub__target-link');if(targetLink&&window.isMobile&&window.innerWidth<=980){if(targetLink.classList.contains('t-menusub__target-link_active')){if(menuBlock)menuBlock.dispatchEvent(overflowEvent)}else{if(menuBlock)menuBlock.dispatchEvent(noOverflowEvent)}}
var currentLink=e.target.closest('.t-menu__link-item:not(.tooltipstered):not(.t-menusub__target-link):not(.t794__tm-link):not(.t966__tm-link):not(.t978__tm-link):not(.t978__menu-link)');if(currentLink&&mobileMenu&&isFixedMobileMenu)mobileMenu.click()});Array.prototype.forEach.call(menuSubLinkItems,function(linkItem){linkItem.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})});if(rightBtn){rightBtn.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})}
if(menuBlock){menuBlock.addEventListener('showME601a',function(){var menuLinks=rec.querySelectorAll('.t966__menu-link');Array.prototype.forEach.call(menuLinks,function(menuLink){menuLink.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})})})}}
function t228_checkOverflow(recid){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t228'):null;if(!menu)return;var mobileContainer=document.querySelector('.t228__mobile_container');var mobileContainerHeight=t228_getFullHeight(mobileContainer);var windowHeight=document.documentElement.clientHeight;var menuPosition=menu.style.position||window.getComputedStyle(menu).position;if(menuPosition==='fixed'){menu.classList.add('t228__overflow');menu.style.setProperty('height',(windowHeight-mobileContainerHeight)+'px','important')}}
function t228_checkNoOverflow(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var menu=rec.querySelector('.t228');var menuPosition=menu?menu.style.position||window.getComputedStyle(menu).position:'';if(menuPosition==='fixed'){if(menu)menu.classList.remove('t228__overflow');if(menu)menu.style.height='auto'}}
function t228_setWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuCenterSideList=rec.querySelectorAll('.t228__centerside');Array.prototype.forEach.call(menuCenterSideList,function(menuCenterSide){menuCenterSide.classList.remove('t228__centerside_hidden')});if(window.innerWidth<=980)return;var menuBlocks=rec.querySelectorAll('.t228');Array.prototype.forEach.call(menuBlocks,function(menu){var maxWidth;var centerWidth=0;var paddingWidth=40;var leftSide=menu.querySelector('.t228__leftside');var rightSide=menu.querySelector('.t228__rightside');var menuList=menu.querySelector('.t228__list');var mainContainer=menu.querySelector('.t228__maincontainer');var leftContainer=menu.querySelector('.t228__leftcontainer');var rightContainer=menu.querySelector('.t228__rightcontainer');var centerContainer=menu.querySelector('.t228__centercontainer');var centerContainerLi=centerContainer?centerContainer.querySelectorAll('li'):[];var leftContainerWidth=t228_getFullWidth(leftContainer);var rightContainerWidth=t228_getFullWidth(rightContainer);var mainContainerWidth=mainContainer?mainContainer.offsetWidth:0;var dataAlign=menu.getAttribute('data-menu-items-align');var isDataAlignCenter=dataAlign==='center'||dataAlign===null;maxWidth=leftContainerWidth>=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}