function t121_setHeight(recid){var rec=$('#rec'+recid);var div=$('#youtubeiframe'+recid);var height=div.width()*0.5625;div.height(height);div.parent().height(height);var videoLazy=rec.find('.t-video-lazyload');if(videoLazy!==undefined){var iframeLazy=videoLazy.find('iframe');var heightLazy=videoLazy.width()*0.5625;videoLazy.height(heightLazy);iframeLazy.height(heightLazy);setTimeout(function(){div=$('#youtubeiframe'+recid);div.height(div.width()*0.5625)},200)}}
function t142_checkSize(recid){var el=$("#rec"+recid).find(".t142__submit");if(el.length){var btnheight=el.height()+5;var textheight=el[0].scrollHeight;if(btnheight<textheight){var btntext=el.text();el.addClass("t142__submit-overflowed")}}}
function t190_scrollToTop(){$('html, body').animate({scrollTop:0},700)}
function t228__init(recid){var el=$('#rec'+recid);var mobile=el.find('.t228__mobile');var fixedBlock=mobile.css('position')==='fixed'&&mobile.css('display')==='block';setTimeout(function(){el.on('click','.t-menusub__target-link',function(){if(isMobile){if($(this).hasClass('t-menusub__target-link_active')){el.find('.t228').trigger('overflow')}else{el.find('.t228').trigger('nooverflow')}}});el.find('.t-menu__link-item:not(.t-menusub__target-link):not(.tooltipstered):not(.t794__tm-link)').on('click',function(){if($(this).is('.tooltipstered, .t-menusub__target-link, .t794__tm-link, .t966__tm-link, .t978__tm-link')){return}
if(fixedBlock){mobile.trigger('click')}});el.find('.t-menusub__link-item').on('click',function(){if(fixedBlock){mobile.trigger('click')}});el.find('.t228__right_buttons_but .t-btn').on('click',function(){if(fixedBlock){mobile.trigger('click')}});el.find('.t228__positionabsolute');el.find('.t228').on('overflow',function(){t228_checkOverflow(recid)});el.find('.t228').on('nooverflow',function(){t228_checkNoOverflow(recid)})},500)}
function t228_highlight(){var url=window.location.href;var pathname=window.location.pathname;if(url.substr(url.length-1)=="/"){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)=="/"){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)=="/"){pathname=pathname.slice(1)}
if(pathname==""){pathname="/"}
$(".t228__list_item a[href='"+url+"']").addClass("t-active");$(".t228__list_item a[href='"+url+"/']").addClass("t-active");$(".t228__list_item a[href='"+pathname+"']").addClass("t-active");$(".t228__list_item a[href='/"+pathname+"']").addClass("t-active");$(".t228__list_item a[href='"+pathname+"/']").addClass("t-active");$(".t228__list_item a[href='/"+pathname+"/']").addClass("t-active")}
function t228_checkAnchorLinks(recid){var el=$('#rec'+recid);if($(window).width()>980){var t228_navLinks=el.find(".t228__list_item a:not(.tooltipstered)[href*='#']");if(t228_navLinks.length>0){setTimeout(function(){t228_catchScroll(t228_navLinks)},500)}}}
function t228_checkOverflow(recid){var el=$('#rec'+recid);var menu=el.find('.t228');var winHeight=$(window).height();if(menu.css('position')==='fixed'){menu.addClass('t228__overflow');menu[0].style.setProperty('height',winHeight-$('.t228__mobile_container').outerHeight(!0)+'px','important')}}
function t228_checkNoOverflow(recid){var el=$('#rec'+recid);var menu=el.find('.t228');var submenus=el.find('.t966__tooltip-menu_mobile');if(menu.css('position')==='fixed'){menu.removeClass('t228__overflow');menu[0].style.setProperty('height','auto')}}
function t228_catchScroll(t228_navLinks){var t228_clickedSectionId=null,t228_sections=[],t228_sectionIdTonavigationLink=[],t228_interval=100,t228_lastCall,t228_timeoutId;t228_navLinks=$(t228_navLinks.get().reverse());t228_navLinks.each(function(){var t228_cursection=t228_getSectionByHref($(this));if(typeof t228_cursection.attr("id")!="undefined"){t228_sections.push(t228_cursection)}
t228_sectionIdTonavigationLink[t228_cursection.attr("id")]=$(this)});t228_sections.sort(function(a,b){return b.offset().top-a.offset().top});t228_highlightNavLinks(t228_navLinks,t228_sections,t228_sectionIdTonavigationLink,t228_clickedSectionId);t228_navLinks.click(function(){var clickedSection=t228_getSectionByHref($(this));if(!$(this).hasClass("tooltipstered")&&typeof clickedSection.attr("id")!="undefined"){t228_navLinks.removeClass('t-active');$(this).addClass('t-active');t228_clickedSectionId=t228_getSectionByHref($(this)).attr("id")}});$(window).scroll(function(){var t228_now=new Date().getTime();if(t228_lastCall&&t228_now<(t228_lastCall+t228_interval)){clearTimeout(t228_timeoutId);t228_timeoutId=setTimeout(function(){t228_lastCall=t228_now;t228_clickedSectionId=t228_highlightNavLinks(t228_navLinks,t228_sections,t228_sectionIdTonavigationLink,t228_clickedSectionId)},t228_interval-(t228_now-t228_lastCall))}else{t228_lastCall=t228_now;t228_clickedSectionId=t228_highlightNavLinks(t228_navLinks,t228_sections,t228_sectionIdTonavigationLink,t228_clickedSectionId)}})}
function t228_getSectionByHref(curlink){var curLinkValue=curlink.attr('href').replace(/\s+/g,'').replace(/.*#/,'');if(curlink.is('[href*="#rec"]')){return $(".r[id='"+curLinkValue+"']")}else{return $(".r[data-record-type='215']").has("a[name='"+curLinkValue+"']")}}
function t228_highlightNavLinks(t228_navLinks,t228_sections,t228_sectionIdTonavigationLink,t228_clickedSectionId){var t228_scrollPosition=$(window).scrollTop();var t228_valueToReturn=t228_clickedSectionId;if(t228_sections.length!==0&&t228_clickedSectionId===null&&t228_sections[t228_sections.length-1].offset().top>(t228_scrollPosition+300)){t228_navLinks.removeClass('t-active');return null}
$(t228_sections).each(function(e){var t228_curSection=$(this),t228_id=t228_curSection.attr('id'),t228_sectionTop=t228_curSection.offset().top,t228_navLink=t228_sectionIdTonavigationLink[t228_id];if(((t228_scrollPosition+300)>=t228_sectionTop)||(t228_sections[0].attr("id")==t228_id&&t228_scrollPosition>=$(document).height()-$(window).height())){if(t228_clickedSectionId==null&&!t228_navLink.hasClass('t-active')){t228_navLinks.removeClass('t-active');t228_navLink.addClass('t-active');t228_valueToReturn=null}else{if(t228_clickedSectionId!=null&&t228_id==t228_clickedSectionId){t228_valueToReturn=null}}
return!1}});return t228_valueToReturn}
function t228_setWidth(recid){var el=$('#rec'+recid);if($(window).width()>980){el.find(".t228").each(function(){var el=$(this);var left_exist=el.find('.t228__leftcontainer').length;var left_w=el.find('.t228__leftcontainer').outerWidth(!0);var max_w=left_w;var right_exist=el.find('.t228__rightcontainer').length;var right_w=el.find('.t228__rightcontainer').outerWidth(!0);var items_align=el.attr('data-menu-items-align');if(left_w<right_w)max_w=right_w;max_w=Math.ceil(max_w);var center_w=0;el.find('.t228__centercontainer').find('li').each(function(){center_w+=$(this).outerWidth(!0)});var padd_w=40;var maincontainer_width=el.find(".t228__maincontainer").outerWidth();if(maincontainer_width-max_w*2-padd_w*2>center_w+20){if(items_align=="center"||typeof items_align==="undefined"){el.find(".t228__leftside").css("min-width",max_w+"px");el.find(".t228__rightside").css("min-width",max_w+"px");el.find(".t228__list").removeClass("t228__list_hidden")}}else{el.find(".t228__leftside").css("min-width","");el.find(".t228__rightside").css("min-width","")}})}
el.find(".t228__centerside").removeClass("t228__centerside_hidden")}
function t228_setBg(recid){var el=$('#rec'+recid);if($(window).width()>980){el.find(".t228").each(function(){var el=$(this);if(el.attr('data-bgcolor-setbyscript')=="yes"){var bgcolor=el.attr("data-bgcolor-rgba");el.css("background-color",bgcolor)}})}else{el.find(".t228").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-hex");el.css("background-color",bgcolor);el.attr("data-bgcolor-setbyscript","yes")})}}
function t228_appearMenu(recid){var el=$('#rec'+recid);if($(window).width()>980){el.find(".t228").each(function(){var el=$(this);var appearoffset=el.attr("data-appearoffset");if(appearoffset!=""){if(appearoffset.indexOf('vh')>-1){appearoffset=Math.floor((window.innerHeight*(parseInt(appearoffset)/100)))}
appearoffset=parseInt(appearoffset,10);if($(window).scrollTop()>=appearoffset){if(el.css('visibility')=='hidden'){el.finish();el.css("top","-50px");el.css("visibility","visible");var topoffset=el.data('top-offset');if(topoffset&&parseInt(topoffset)>0){el.animate({"opacity":"1","top":topoffset+"px"},200,function(){})}else{el.animate({"opacity":"1","top":"0px"},200,function(){})}}}else{el.stop();el.css("visibility","hidden");el.css("opacity","0")}}})}}
function t228_changebgopacitymenu(recid){var el=$('#rec'+recid);if($(window).width()>980){el.find(".t228").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-rgba");var bgcolor_afterscroll=el.attr("data-bgcolor-rgba-afterscroll");var bgopacityone=el.attr("data-bgopacity");var bgopacitytwo=el.attr("data-bgopacity-two");var menushadow=el.attr("data-menushadow");if(menushadow=='100'){var menushadowvalue=menushadow}else{var menushadowvalue='0.'+menushadow}
if($(window).scrollTop()>20){el.css("background-color",bgcolor_afterscroll);if(bgopacitytwo=='0'||(typeof menushadow=="undefined"&&menushadow==!1)){el.css("box-shadow","none")}else{el.css("box-shadow","0px 1px 3px rgba(0,0,0,"+menushadowvalue+")")}}else{el.css("background-color",bgcolor);if(bgopacityone=='0.0'||(typeof menushadow=="undefined"&&menushadow==!1)){el.css("box-shadow","none")}else{el.css("box-shadow","0px 1px 3px rgba(0,0,0,"+menushadowvalue+")")}}})}}
function t228_createMobileMenu(recid){var el=$("#rec"+recid);var menu=el.find(".t228");var burger=el.find(".t228__mobile");burger.on('click',function(e){menu.fadeToggle(300);burger.toggleClass("t228_opened")});$(window).bind('resize',t_throttle(function(){if($(window).width()>980){menu.fadeIn(0)}}))}
function t235__next(){var cur=Number.parseInt($(".t235").attr("data-slide-count"),10);if($(window).width()>980){t235_addVideo()}
if((cur+1)>=$(".r").not('[data-t263-block-notslide=yes]').size())return;cur++;$(".r").not('[data-t263-block-notslide=yes]').each(function(i){if((cur-1)==i){var el=$(this);var trans_out_y='-100px';if(el.height()+100>$(window).height())trans_out_y='0px';el.transition({y:trans_out_y,opacity:0},250,'out',function(){el.css('display','none')})}
if(cur==i){var el=$(this);var speed='slow';if(cur==0){speed=0}
el.css('display','none');var trans_in_y='50px';if(el.height()+100>$(window).height())trans_in_y='0px';el.transition({y:trans_in_y},1,'ease',function(){});el.animate({opacity:"0"},300,function(){el.css('display','block');el.css('opacity','0');el.transition({y:'0px',opacity:1},500,'ease',function(){});$('.r').removeClass('t235__active');el.addClass('t235__active');$('.t223, .t396, .t498, .t738, .t604, .t650').trigger('displayChanged');if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}});if(el.height()>$(window).height()){$('#t235__scrldonwicon').fadeIn('slow',function(){$('#t235__scrldonwicon').delay(1000).fadeOut('slow')})}
var bg=el.attr('data-bg-color');if(bg!==undefined&&bg!=='none'){$('#allrecordstable').css('background-color',bg)}else{$('#allrecordstable').css('background-color','')}}});$(".t235").attr("data-slide-count",cur);t235__update()}
function t235__prev(){var cur=Number.parseInt($(".t235").attr("data-slide-count"),10);if((cur-1)==-1)return;cur--;$(".r").not('[data-t263-block-notslide=yes]').each(function(i){if((cur+1)==i){var el=$(this);el.css('display','none')}
if(cur==i){var el=$(this);el.css('display','block');el.css('opacity','0');el.transition({y:'0px'},1,'easeOutSine');el.animate({opacity:"1"},50,function(){});$('.r').removeClass('t235__active');el.addClass('t235__active');var bg=el.attr('data-bg-color');if(bg!==undefined&&bg!=='none'){$('#allrecordstable').css('background-color',bg)}else{$('#allrecordstable').css('background-color','')}
$('.t223, .t396, .t498, .t738, .t604, .t650').trigger('displayChanged')}});$(".t235").attr("data-slide-count",cur);t235__update()}
function t235__galnext(){var elactive=$('.t235__active');var tplid=elactive.attr('data-record-type');if(tplid=='5')elactive.find('[data-slide=next]').trigger('click')}
function t235__update(){var cur=Number.parseInt($(".t235").attr("data-slide-count"),10);var c=cur+1;var t=$(".r").not('[data-t263-block-notslide=yes]').size();$('.t235__count').html(c+"/"+t);if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t235__init(){$("#allrecords").wrap("<table id='allrecordstable' width='100%' height='100%' style='height:100vh; border:0px; margin:0px; padding:0px; border-spacing:0px;'><tr><td></td></tr></table>");$("#allrecords").css('width',$(window).width()+'px');var wnd=$(window);$(".r").not('[data-t263-block-notslide=yes]').each(function(i){var el=$(this);el.css('padding','0px');if(el.height()>wnd.height()){el.css('padding-top','150px');el.css('padding-bottom','150px')}
el.css('display','none');el.css('opacity','');el.css('background-color','')});var cur=-1;var slideCount=$(".t235").attr("data-slide-count");if(typeof slideCount!=="undefined"){cur=Number.parseInt(slideCount,10)}else{$(".t235").attr("data-slide-count",cur)}
if(!isNaN(cur)){$(".t235").find(".t235__next").on("click",function(){t235__next()});$(".t235").find(".t235__prev").on("click",function(){t235__prev()});t235__next();$('#tildacopy').css('display','none');$('.t235').css('right','-=100');setTimeout(function(){$('.t235').addClass('t235_anim');$('.t235').css('right','+=100')},800);$(document).keydown(function(e){switch(e.which){case 38:t235__prev();break;case 40:t235__next();break;case 33:t235__prev();break;case 34:t235__next();break;case 32:t235__next();break;case 190:t235__galnext();break;default:return}
if(e.which!=190){e.preventDefault()}})}
$('#allrecordstable').css('transition','background-color 500ms linear');$('.t-cover__carrier').css('background-attachment','scroll')}
function t235_addVideo(){setTimeout(function(){if($('.t235__active').next().find('.t-video-lazyload').length>0){$('.t235__active').next().find('.t-video-lazyload').each(function(){var $this=$(this);var videoHeight=$this.attr('data-videolazy-height')?$(this).attr('data-videolazy-height'):'100%';if($this.parents('.t223').length>0||$this.parents('.t230').length>0||$this.parents('.t368').length>0){var videoHeight='100%'}
var videoId=$this.attr('data-videolazy-id').trim();var blockId=$this.attr('data-blocklazy-id')||'';var videoTwoId='_'+$this.attr('data-videolazy-two-id')+'_'||'';if($this.attr('data-videolazy-load')=='false'){$this.attr('data-videolazy-load','true');if($this.attr('data-videolazy-type')=='youtube'){$this.prepend('<iframe id="youtubeiframe'+videoTwoId+blockId+'" width="100%" height="'+videoHeight+'" src="//www.youtube.com/embed/'+videoId+'?rel=0&fmt=18&html5=1&showinfo=0" frameborder="0" allowfullscreen></iframe>')}
if($this.attr('data-videolazy-type')=='vimeo'){$this.prepend('<iframe src="//player.vimeo.com/video/'+videoId+'?title=0&byline=0&portrait=0&badge=0&color=ffffff" width="100%" height="'+videoHeight+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')}}})}},0)}
function t232_expandtext(recid){$("#rec"+recid).find(".t232__text").toggle()}
function t270_scroll(hash,offset,speed){if(hash.indexOf('#!/tproduct/')!==-1||hash.indexOf('#!/tab/')!==-1){return!0}
var root=$('html, body');var target="";if(speed===undefined){speed=400}
try{target=$(hash)}catch(event){console.log("Exception t270: "+event.message);return!0}
if(target.length===0){target=$('a[name="'+hash.substr(1)+'"]');if(target.length===0){return!0}}
var isHistoryChangeAllowed=window.location.hash!==hash;var complete=function(){if(!isHistoryChangeAllowed){return}
if(history.pushState){history.pushState(null,null,hash)}else{window.location.hash=hash}
isHistoryChangeAllowed=!1}
var dontChangeHistory=Boolean($('.t270').attr('data-history-disabled'));if(dontChangeHistory){complete=function(){}}
root.animate({scrollTop:target.offset().top-offset},speed,complete);return!0}
function t280_showMenu(recid){var el=$("#rec"+recid);el.find('.t280__burger, .t280__menu__bg, .t280__menu__item:not(".tooltipstered"):not(".t280__menu__item_submenu"), .t978__tooltip-menu_mobile').click(function(e){if($(this).is(".t280__menu__item.tooltipstered, .t794__tm-link")){return}
var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);var menuItemsLength=el.find('.t280__menu__item').length;var isAndroid=/(android)/i.test(navigator.userAgent);if(window.location.hash&&isChrome&&menuItemsLength>10&&isAndroid){setTimeout(function(){var hash=window.location.hash;window.location.hash="";window.location.hash=hash},50)}
if(!$(this).is(".t978__tm-link, .t966__tm-link")){$('body').toggleClass('t280_opened');el.find('.t280').toggleClass('t280__main_opened')}
t280_changeSize(recid);el.find(".t978__tm-link, .t966__tm-link").click(function(){t280_changeSize(recid);el.find(".t280__menu").css('transition','none');el.find(".t978__menu-link").click(function(){t280_changeSize(recid)})})});$('.t280').bind('clickedAnchorInTooltipMenu',function(){$('body').removeClass('t280_opened');el.find('.t280').removeClass('t280__main_opened')});if(el.find('.t-menusub__link-item')){el.find('.t-menusub__link-item').on('click',function(){$('body').removeClass('t280_opened');el.find('.t280').removeClass('t280__main_opened')})}}
function t280_changeSize(recid){var el=$("#rec"+recid);var div=el.find(".t280__menu").height();var bottomheight=el.find(".t280__bottom").height();var headerheight=el.find(".t280__container").height();var wrapper=el.find(".t280__menu__wrapper");var win=$(window).height()-bottomheight-headerheight-160;if(div>win){wrapper.addClass('t280__menu_static')}
else{wrapper.removeClass('t280__menu_static')}}
function t280_changeBgOpacityMenu(recid){var window_width=$(window).width();var record=$("#rec"+recid);record.find(".t280__container__bg").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-rgba");var bgcolor_afterscroll=el.attr("data-bgcolor-rgba-afterscroll");var bgopacity=el.attr("data-bgopacity");var bgopacity_afterscroll=el.attr("data-bgopacity2");var menu_shadow=el.attr("data-menu-shadow");if($(window).scrollTop()>20){el.css("background-color",bgcolor_afterscroll);if(bgopacity_afterscroll!="0"&&bgopacity_afterscroll!="0.0"){el.css('box-shadow',menu_shadow)}else{el.css('box-shadow','none')}}else{el.css("background-color",bgcolor);if(bgopacity!="0"&&bgopacity!="0.0"){el.css('box-shadow',menu_shadow)}else{el.css('box-shadow','none')}}})}
function t280_appearMenu(){$('.t280').each(function(){var el=$(this);var appearoffset=el.attr('data-appearoffset');if(appearoffset!=''){if(appearoffset.indexOf('vh')>-1){appearoffset=Math.floor(window.innerHeight*(parseInt(appearoffset)/100))}
appearoffset=parseInt(appearoffset,10);if($(window).scrollTop()>=appearoffset){if(el.css('visibility')=='hidden'){el.finish();el.css('top','-50px');el.css('opacity','1');el.css('visibility','visible')}}else{el.stop();el.css('opacity','0');el.css('visibility','hidden')}}})}
function t280_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;if(url.substr(url.length-1)=="/"){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)=="/"){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)=="/"){pathname=pathname.slice(1)}
if(pathname==""){pathname="/"}
$(".t280__menu a[href='"+url+"']").addClass("t-active");$(".t280__menu a[href='"+url+"/']").addClass("t-active");$(".t280__menu a[href='"+pathname+"']").addClass("t-active");$(".t280__menu a[href='/"+pathname+"']").addClass("t-active");$(".t280__menu a[href='"+pathname+"/']").addClass("t-active");$(".t280__menu a[href='/"+pathname+"/']").addClass("t-active")}
function t331_initPopup(recid){$('#rec'+recid).attr('data-animationappear','off');$('#rec'+recid).css('opacity','1');var el=$('#rec'+recid).find('.t-popup'),hook=el.attr('data-tooltip-hook'),analitics=el.attr('data-track-popup');if(hook!==''){$('.r').on('click','a[href="'+hook+'"]',function(e){t331_showPopup(recid);t331_resizePopup(recid);e.preventDefault();if(analitics>''){var virtTitle=hook;if(virtTitle.substring(0,7)=='#popup:'){virtTitle=virtTitle.substring(7)}
Tilda.sendEventToStatistics(analitics,virtTitle)}})}}
function t331_setHeight(recid){var el=$("#rec"+recid);var div=el.find(".t331__video-carier");var ratiowidth=div.attr("data-video-width");var ratioheight=div.attr("data-video-height");if(ratioheight.indexOf('vh')!==-1){ratioheight=parseInt(ratioheight,10)*0.01*$(window).height()}
ratioheight=parseInt(ratioheight,10);var ratio=ratioheight/ratiowidth;var height=div.width()*ratio;div.height(height);div.parent().height(height)}
function t331_showPopup(recid){var el=$('#rec'+recid),popup=el.find('.t-popup');var youtubeid=el.find(".t331__youtube").attr('data-content-popup-video-url-youtube');var videourl='https://www.youtube.com/embed/'+youtubeid;el.find(".t331__video-carier").html("<iframe id=\"youtubeiframe"+recid+"\" class=\"t331__iframe\" width=\"100.5%\" height=\"100.5%\" src=\""+videourl+(videourl.indexOf('?')!==-1?'&':'?')+"autoplay=1&rel=0\" frameborder=\"0\" allowfullscreen></iframe>");popup.css('display','block');t331_setHeight(recid);setTimeout(function(){popup.find('.t-popup__container').addClass('t-popup__container-animated');popup.addClass('t-popup_show')},50);$('body').addClass('t-body_popupshowed');$('body').addClass('t331__body_popupshowed');el.find('.t-popup').click(function(e){if(e.target==this){t331_popup_close(recid)}});el.find('.t-popup__close').click(function(e){t331_popup_close(recid)});$(document).keydown(function(e){if(e.keyCode==27){t331_popup_close(recid)}})}
function t331_popup_close(recid){$('body').removeClass('t-body_popupshowed');$('body').removeClass('t331__body_popupshowed');$('#rec'+recid+' .t-popup').removeClass('t-popup_show');setTimeout(function(){$("#rec"+recid+" .t331__video-carier").html("");$('#rec'+recid+' .t-popup').not('.t-popup_show').css('display','none')},300)}
function t331_resizePopup(recid){var el=$("#rec"+recid),div=el.find(".t-popup__container").height(),win=$(window).height(),popup=el.find(".t-popup__container");if(div>win){popup.addClass('t-popup__container-static')}else{popup.removeClass('t-popup__container-static')}}
function t331_sendPopupEventToStatistics(popupname){var virtPage='/tilda/popup/';var virtTitle='Popup: ';if(popupname.substring(0,7)=='#popup:'){popupname=popupname.substring(7)}
virtPage+=popupname;virtTitle+=popupname;if(ga){if(window.mainTracker!='tilda'){ga('send',{'hitType':'pageview','page':virtPage,'title':virtTitle})}}
if(window.mainMetrika>''&&window[window.mainMetrika]){window[window.mainMetrika].hit(virtPage,{title:virtTitle,referer:window.location.href})}}
function t367_createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}
else var expires="";document.cookie=name+"="+value+expires+"; path=/"}
function t367_readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}
return null}
function t367_autoInit(recid){var winWidth=$(window).width();var screenMin=$('#rec'+recid).attr("data-screen-min");var screenMax=$('#rec'+recid).attr("data-screen-max");if(typeof screenMin!=='undefined'){if(winWidth<parseInt(screenMin,10)){return!1}}
if(typeof screenMax!=='undefined'){if(winWidth>parseInt(screenMax,10)){return!1}}
var el=$('#rec'+recid).find('.t367__opener');var name=el.attr('data-cookie-name');var time=el.attr('data-cookie-time');var value="t367cookie";var cookie=t367_readCookie(name);var delay=el.attr('data-trigger-time');var delaytime=delay*1000;if(cookie){$("#rec"+recid+" .t367").html("")}else if(el.length){setTimeout(function(){el.trigger('click');$("#rec"+recid+" .t367").html("");t367_createCookie(name,value,time)},delaytime)}}
var t386={};t386.equalheight=function(recid){var currentTallest=0,currentRowStart=0,rowDivs=new Array(),$el,topPosition=0;$('#rec'+recid+' .t386__textwrapper').each(function(){$el=$(this);$($el).height('auto')
topPostion=$el.position().top;if(currentRowStart!=topPostion){for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++){rowDivs[currentDiv].height(currentTallest)}
rowDivs.length=0;currentRowStart=topPostion;currentTallest=$el.height();rowDivs.push($el)}else{rowDivs.push($el);currentTallest=(currentTallest<$el.height())?($el.height()):(currentTallest)}
for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++){rowDivs[currentDiv].height(currentTallest)}})};function t389_scrollToTop(){$('html, body').animate({scrollTop:0},700)}
function t390_initPopup(recid){$('#rec'+recid).attr('data-animationappear','off');$('#rec'+recid).css('opacity','1');var el=$('#rec'+recid).find('.t-popup'),hook=el.attr('data-tooltip-hook'),analitics=el.attr('data-track-popup');el.bind('scroll',t_throttle(function(){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},200));if(hook!==''){$('.r').on('click','a[href="'+hook+'"]',function(e){t390_showPopup(recid);t390_resizePopup(recid);e.preventDefault();if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}
if(analitics>''){var virtTitle=hook;if(virtTitle.substring(0,7)=='#popup:'){virtTitle=virtTitle.substring(7)}
Tilda.sendEventToStatistics(analitics,virtTitle)}})}
var curPath=window.location.pathname;var curFullPath=window.location.origin+curPath;var isAndroid=/(android)/i.test(navigator.userAgent);if(isAndroid){$('#rec'+recid).find('a[href^="#"]:not([href="#"],[href^="#price"],[href^="#popup"],[href^="#prodpopup"],[href^="#order"],a[href^="#!"]),a[href^="'+curPath+'#"]:not(a[href*="#!/tproduct/"],a[href*="#!/tab/"],[href*="#popup"]),a[href^="'+curFullPath+'#"]:not(a[href*="#!/tproduct/"],a[href*="#!/tab/"],[href*="#popup"])').click(function(e){e.preventDefault();var hash=this.hash.trim();if(window.location.hash){setTimeout(function(){window.location.href=hash},50)}})}}
function t390_showPopup(recid){var el=$('#rec'+recid),popup=el.find('.t-popup');popup.css('display','block');setTimeout(function(){popup.find('.t-popup__container').addClass('t-popup__container-animated');popup.addClass('t-popup_show')},50);$('body').addClass('t-body_popupshowed');el.find('.t-popup').mousedown(function(e){var windowWidth=$(window).width();var maxScrollBarWidth=17;var windowWithoutScrollBar=windowWidth-maxScrollBarWidth;if(e.clientX>windowWithoutScrollBar){return}
if(e.target==this){t390_closePopup(recid)}});el.find('.t-popup__close').click(function(e){t390_closePopup(recid)});el.find('a[href*="#"]').click(function(e){var url=$(this).attr('href');if(!url||url.substring(0,7)!='#price:'){t390_closePopup(recid);if(!url||url.substring(0,7)=='#popup:'){setTimeout(function(){$('body').addClass('t-body_popupshowed')},300)}}});$(document).keydown(function(e){if(e.keyCode==27){t390_closePopup(recid)}})}
function t390_closePopup(recid){$('body').removeClass('t-body_popupshowed');$('#rec'+recid+' .t-popup').removeClass('t-popup_show');setTimeout(function(){$('.t-popup').not('.t-popup_show').css('display','none')},300)}
function t390_resizePopup(recid){var el=$("#rec"+recid),div=el.find(".t-popup__container").height(),win=$(window).height()-120,popup=el.find(".t-popup__container");if(div>win){popup.addClass('t-popup__container-static')}else{popup.removeClass('t-popup__container-static')}}
function t390_sendPopupEventToStatistics(popupname){var virtPage='/tilda/popup/';var virtTitle='Popup: ';if(popupname.substring(0,7)=='#popup:'){popupname=popupname.substring(7)}
virtPage+=popupname;virtTitle+=popupname;if(window.Tilda&&typeof Tilda.sendEventToStatistics=='function'){Tilda.sendEventToStatistics(virtPage,virtTitle,'',0)}else{if(ga){if(window.mainTracker!='tilda'){ga('send',{'hitType':'pageview','page':virtPage,'title':virtTitle})}}
if(window.mainMetrika>''&&window[window.mainMetrika]){window[window.mainMetrika].hit(virtPage,{title:virtTitle,referer:window.location.href})}}}
function t395_init(recid){var el=$('#rec'+recid);var curMode=$('.t-records').attr('data-tilda-mode');var tabs=el.find('.t395__tab');if(curMode!='edit'&&curMode!='preview'){t395_scrollToTabs(recid)}
if(tabs.length>0){tabs.click(function(){if($(this).hasClass('t395__tab_active')){return}
el.find('.t395__tab').removeClass('t395__tab_active');$(this).addClass('t395__tab_active');t395_removeUrl();var tabNumber=el.find(".t395__tab_active").index()+1;if(curMode!='edit'&&curMode!='preview'&&tabNumber!==0){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumber)}}
t395_alltabs_updateContent(recid);t395_updateSelect(recid);var recids=$(this).attr('data-tab-rec-ids').split(',');recids.forEach(function(recid){var el=$('#rec'+recid);el.find('.t-feed, .t-store, .t-store__product-snippet, .t117, .t121, .t132, .t223, .t226, .t228, .t229, .t230, .t268, .t279, .t341, .t346, .t347, .t349, .t351, .t353, .t384, .t385, .t386, .t396, .t400, .t404, .t409, .t410, .t412, .t418, .t422, .t425, .t428, .t433, .t456, .t477, .t478, .t480, .t486, .t498, .t504, .t506, .t509, .t511, .t517, .t518, .t519, .t520, .t532, .t533, .t538, .t539, .t544, .t545, .t552, .t554, .t570, .t577, .t592, .t598, .t599, .t601, .t604, .t605, .t609, .t615, .t616, .t650, .t659, .t670, .t675, .t686, .t688, .t694, .t698, .t700, .t726, .t728, .t730, .t734, .t738, .t740, .t744, .t754, .t760, .t762, .t764, .t774, .t776, .t778, .t780, .t786, .t798, .t799, .t801, .t813, .t814, .t822, .t826, .t827, .t829, .t842, .t843, .t849, .t850, .t851, .t856, .t858, .t859, .t860, .t881, .t902, .t912, .t923, .t937, .t959, .t979, .t982, .t983, .t989').trigger('displayChanged')});t395_startUpdateLazyLoad($(this));if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}});t395_alltabs_updateContent(recid);t395_updateContentBySelect(recid);var bgcolor=el.css("background-color");var bgcolor_target=el.find(".t395__select, .t395__firefoxfix");bgcolor_target.css("background",bgcolor)}}
function t395_alltabs_updateContent(recid){var mainRecid=recid;var el=$('#rec'+recid);var activeTab=el.find(".t395__tab_active");if(activeTab.length===1){var active=activeTab.attr('data-tab-rec-ids').split(',');var noactive=[];el.find(".t395__tab:not(.t395__tab_active)").each(function(i,tab){noactive=noactive.concat($(tab).attr('data-tab-rec-ids').split(','))});var unique=noactive.filter(function(value,index,self){return self.indexOf(value)===index});var off=unique.filter(function(value){return $.inArray(value,active)===-1});if(el.find(".t395__tab_active").is(":visible")||el.find(".t395__select").is(":visible")){active.forEach(function(recid){if(recid!==''){var el=$('#rec'+recid);var recordType=el.attr('data-record-type');el.removeClass('t395__off');el.css('opacity','');if(recordType==='395'&&mainRecid!==recid){t395_alltabs_updateContent(recid);t395_updateSelect(recid);el.find('.t395__tab:nth-child(1)').trigger('click')}
if(recordType==='397'&&t397_alltabs_updateContent!==undefined&&t397_updateSelect!==undefined&&mainRecid!==recid){t397_alltabs_updateContent(recid);t397_updateSelect(recid);el.find('.t397__tab:nth-child(1)').trigger('click')}}})}else{active.forEach(function(recid){var el=$('#rec'+recid);el.attr('data-animationappear','off');el.addClass('t395__off')})}
off.forEach(function(recid){if(recid!==''){var el=$('#rec'+recid);var recordType=el.attr('data-record-type');el.attr('data-connect-with-tab','yes');el.attr('data-animationappear','off');el.addClass('t395__off');if(recordType==='395'&&mainRecid!==recid){t395_alltabs_updateContent(recid);t395_updateSelect(recid);el.find('.t395__tab:nth-child(1)').trigger('click')}
if(recordType==='397'&&t397_alltabs_updateContent!==undefined&&t397_updateSelect!==undefined&&mainRecid!==recid){t397_alltabs_updateContent(recid);t397_updateSelect(recid);el.find('.t397__tab:nth-child(1)').trigger('click')}}})}}
function t395_updateContentBySelect(recid){var el=$('#rec'+recid);el.find(".t395__select").change(function(){var select_val=el.find(".t395__select").val();var tab_index=el.find(".t395__tab[data-tab-rec-ids='"+select_val+"']");tab_index.trigger('click')})}
function t395_updateSelect(recid){var el=$('#rec'+recid);var current_tab=el.find(".t395__tab_active").attr('data-tab-rec-ids');var el_select=el.find(".t395__select");el_select.val(current_tab)}
function t395_startUpdateLazyLoad($this){var rec_ids=$this.attr('data-tab-rec-ids').split(',');rec_ids.forEach(function(rec_id,i,arr){var rec_el=$('#rec'+rec_id);var video=rec_el.find('.t-video-lazyload');if(video.length>0){t395_updateVideoLazyLoad(video)}})}
function t395_updateVideoLazyLoad(video){setTimeout(function(){video.each(function(){var div=$(this);if(!div.hasClass('t-video__isload')){var height=div.attr('data-videolazy-height')?$(this).attr('data-videolazy-height'):'100%';if(height.indexOf('vh')!=-1){height='100%'}
var videoId=div.attr('data-videolazy-id').trim();var blockId=div.attr('data-blocklazy-id')||'';if(typeof div.attr('data-videolazy-two-id')!='undefined'){var videoTwoId='_'+div.attr('data-videolazy-two-id')+'_'}else{var videoTwoId=''}
if(div.attr('data-videolazy-type')=='youtube'){div.find('iframe').remove();div.prepend('<iframe id="youtubeiframe'+videoTwoId+blockId+'" width="100%" height="'+height+'" src="//www.youtube.com/embed/'+videoId+'?rel=0&fmt=18&html5=1&showinfo=0" frameborder="0" allowfullscreen></iframe>')}}
div.addClass('t-video__isload')})},2)}
function t395_scrollToTabs(recid){var el=$('#rec'+recid);var curUrl=window.location.href;var tabIndexNumber=curUrl.indexOf('#!/tab/');var tabIndexNumberStart=curUrl.indexOf('tab/');el.find('.t395__wrapper_mobile .t395__select option:eq(0)').prop('selected',!1);if(tabIndexNumber!==-1){var tabRec=curUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length);if(tabRec==recid){var tabBlock=$('#rec'+tabRec).find('.t395');var tabNumber=parseInt(curUrl.slice(tabIndexNumberStart+4+recid.length+1),10);el.find('.t395__tab').removeClass('t395__tab_active');el.find('.t395__tab:eq('+(tabNumber-1)+')').addClass('t395__tab_active');el.find('.t395__wrapper_mobile .t395__select option:eq('+(tabNumber-1)+')').prop('selected',!0);var targetOffset=tabBlock.offset().top;var target=targetOffset;if($(window).width()>960){target=targetOffset-200}else{target=targetOffset-100}
$('html, body').animate({scrollTop:target},300)}}}
function t395_removeUrl(){var curUrl=window.location.href;var indexToRemove=curUrl.indexOf('#!/tab/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=curUrl.indexOf('%23!/tab/')}
curUrl=curUrl.substring(0,indexToRemove);if(indexToRemove!=-1){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',curUrl)}}}
function t396_init(recid){var data='';var res=t396_detectResolution();t396_initTNobj();t396_switchResolution(res);t396_updateTNobj();t396_artboard_build(data,recid);window.tn_window_width=$(window).width();$(window).resize(function(){tn_console('>>>> t396: Window on Resize event >>>>');t396_waitForFinalEvent(function(){if($isMobile){var ww=$(window).width();if(ww!=window.tn_window_width){t396_doResize(recid)}}else{t396_doResize(recid)}},500,'resizeruniqueid'+recid)});$(window).on("orientationchange",function(){tn_console('>>>> t396: Orient change event >>>>');t396_waitForFinalEvent(function(){t396_doResize(recid)},600,'orientationuniqueid'+recid)});$(window).on('load',function(){var ab=$('#rec'+recid).find('.t396__artboard');t396_allelems__renderView(ab);if(typeof t_lazyload_update==='function'&&ab.css('overflow')==='auto'){ab.bind('scroll',t_throttle(function(){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},500))}if(window.location.hash!==''&&ab.css('overflow')==='visible'){ab.css('overflow','hidden');setTimeout(function(){ab.css('overflow','visible')},1)}});var rec=$('#rec'+recid);if(rec.attr('data-connect-with-tab')=='yes'){rec.find('.t396').bind('displayChanged',function(){var ab=rec.find('.t396__artboard');t396_allelems__renderView(ab)})}}function t396_doResize(recid){var ww;if($isMobile){ww=$(window).width()}else{ww=window.innerWidth}window.tn_window_width=ww;var res=t396_detectResolution();var ab=$('#rec'+recid).find('.t396__artboard');t396_switchResolution(res);t396_updateTNobj();t396_ab__renderView(ab);t396_allelems__renderView(ab)}function t396_detectResolution(){var ww;if($isMobile){ww=$(window).width()}else{ww=window.innerWidth}var res;res=1200;if(ww<1200){res=960}if(ww<960){res=640}if(ww<640){res=480}if(ww<480){res=320}return(res)}function t396_initTNobj(){tn_console('func: initTNobj');window.tn={};window.tn.canvas_min_sizes=["320","480","640","960","1200"];window.tn.canvas_max_sizes=["480","640","960","1200",""];window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"]}function t396_updateTNobj(){tn_console('func: updateTNobj');if(typeof window.zero_window_width_hook!='undefined'&&window.zero_window_width_hook=='allrecords'&&$('#allrecords').length){window.tn.window_width=parseInt($('#allrecords').width())}else{window.tn.window_width=parseInt($(window).width())}if($isMobile){window.tn.window_height=parseInt($(window).height())}else{window.tn.window_height=parseInt(window.innerHeight)}if(window.tn.curResolution==1200){window.tn.canvas_min_width=1200;window.tn.canvas_max_width=window.tn.window_width}if(window.tn.curResolution==960){window.tn.canvas_min_width=960;window.tn.canvas_max_width=1200}if(window.tn.curResolution==640){window.tn.canvas_min_width=640;window.tn.canvas_max_width=960}if(window.tn.curResolution==480){window.tn.canvas_min_width=480;window.tn.canvas_max_width=640}if(window.tn.curResolution==320){window.tn.canvas_min_width=320;window.tn.canvas_max_width=480}window.tn.grid_width=window.tn.canvas_min_width;window.tn.grid_offset_left=parseFloat((window.tn.window_width-window.tn.grid_width)/2)}var t396_waitForFinalEvent=(function(){var timers={};return function(callback,ms,uniqueId){if(!uniqueId){uniqueId="Don't call this twice without a uniqueId"}if(timers[uniqueId]){clearTimeout(timers[uniqueId])}timers[uniqueId]=setTimeout(callback,ms)}})();function t396_switchResolution(res,resmax){tn_console('func: switchResolution');if(typeof resmax=='undefined'){if(res==1200)resmax='';if(res==960)resmax=1200;if(res==640)resmax=960;if(res==480)resmax=640;if(res==320)resmax=480}window.tn.curResolution=res;window.tn.curResolution_max=resmax}function t396_artboard_build(data,recid){tn_console('func: t396_artboard_build. Recid:'+recid);tn_console(data);var ab=$('#rec'+recid).find('.t396__artboard');t396_ab__renderView(ab);ab.find('.tn-elem').each(function(){var item=$(this);if(item.attr('data-elem-type')=='text'){t396_addText(ab,item)}if(item.attr('data-elem-type')=='image'){t396_addImage(ab,item)}if(item.attr('data-elem-type')=='shape'){t396_addShape(ab,item)}if(item.attr('data-elem-type')=='button'){t396_addButton(ab,item)}if(item.attr('data-elem-type')=='video'){t396_addVideo(ab,item)}if(item.attr('data-elem-type')=='html'){t396_addHtml(ab,item)}if(item.attr('data-elem-type')=='tooltip'){t396_addTooltip(ab,item)}if(item.attr('data-elem-type')=='form'){t396_addForm(ab,item)}if(item.attr('data-elem-type')=='gallery'){t396_addGallery(ab,item)}});$('#rec'+recid).find('.t396__artboard').removeClass('rendering').addClass('rendered');if(ab.attr('data-artboard-ovrflw')=='visible'){$('#allrecords').css('overflow','hidden')}if($isMobile){$('#rec'+recid).append('<style>@media only screen and (min-width:1366px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio:2) {.t396__carrier {background-attachment:scroll!important;}}</style>')}}function t396_ab__renderView(ab){var fields=window.tn.ab_fields;for(var i=0;i<fields.length;i++){t396_ab__renderViewOneField(ab,fields[i])}var ab_min_height=t396_ab__getFieldValue(ab,'height');var ab_max_height=t396_ab__getHeight(ab);var offset_top=0;if(ab_min_height==ab_max_height){offset_top=0}else{var ab_valign=t396_ab__getFieldValue(ab,'valign');if(ab_valign=='top'){offset_top=0}else if(ab_valign=='center'){offset_top=parseFloat((ab_max_height-ab_min_height)/2).toFixed(1)}else if(ab_valign=='bottom'){offset_top=parseFloat((ab_max_height-ab_min_height)).toFixed(1)}else if(ab_valign=='stretch'){offset_top=0;ab_min_height=ab_max_height}else{offset_top=0}}ab.attr('data-artboard-proxy-min-offset-top',offset_top);ab.attr('data-artboard-proxy-min-height',ab_min_height);ab.attr('data-artboard-proxy-max-height',ab_max_height);var filter=ab.find('.t396__filter');var carrier=ab.find('.t396__carrier');var abHeightVh=t396_ab__getFieldValue(ab,'height_vh');abHeightVh=parseFloat(abHeightVh);if(window.isMobile&&abHeightVh){var height=document.documentElement.clientHeight*parseFloat(abHeightVh/100);ab.css('height',height);filter.css('height',height);carrier.css('height',height)}}function t396_addText(ab,el){tn_console('func: addText');var fields_str='top,left,width,container,axisx,axisy,widthunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el)}function t396_addImage(ab,el){tn_console('func: addImage');var fields_str='img,width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el);el.find('img').on("load",function(){t396_elem__renderViewOneField(el,'top');if(typeof $(this).attr('src')!='undefined'&&$(this).attr('src')!=''){setTimeout(function(){t396_elem__renderViewOneField(el,'top')},2000)}}).each(function(){if(this.complete)$(this).trigger('load')});el.find('img').on('tuwidget_done',function(e,file){t396_elem__renderViewOneField(el,'top')})}function t396_addShape(ab,el){tn_console('func: addShape');var fields_str='width,height,top,left,';fields_str+='container,axisx,axisy,widthunits,heightunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el)}function t396_addButton(ab,el){tn_console('func: addButton');var fields_str='top,left,width,height,container,axisx,axisy,caption,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el);return(el)}function t396_addVideo(ab,el){tn_console('func: addVideo');var fields_str='width,height,top,left,';fields_str+='container,axisx,axisy,widthunits,heightunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el);var viel=el.find('.tn-atom__videoiframe');var viatel=el.find('.tn-atom');viatel.css('background-color','#000');var vihascover=viatel.attr('data-atom-video-has-cover');if(typeof vihascover=='undefined'){vihascover=''}if(vihascover=='y'){viatel.click(function(){var viifel=viel.find('iframe');if(viifel.length){var foo=viifel.attr('data-original');viifel.attr('src',foo)}viatel.css('background-image','none');viatel.find('.tn-atom__video-play-link').css('display','none')})}var autoplay=t396_elem__getFieldValue(el,'autoplay');var showinfo=t396_elem__getFieldValue(el,'showinfo');var loop=t396_elem__getFieldValue(el,'loop');var mute=t396_elem__getFieldValue(el,'mute');var startsec=t396_elem__getFieldValue(el,'startsec');var endsec=t396_elem__getFieldValue(el,'endsec');var tmode=$('#allrecords').attr('data-tilda-mode');var url='';var viyid=viel.attr('data-youtubeid');if(typeof viyid!='undefined'&&viyid!=''){url='//www.youtube.com/embed/';url+=viyid+'?rel=0&fmt=18&html5=1';url+='&showinfo='+(showinfo=='y'?'1':'0');if(loop=='y'){url+='&loop=1&playlist='+viyid}if(startsec>0){url+='&start='+startsec}if(endsec>0){url+='&end='+endsec}if(mute=='y'){url+='&mute=1'}if(vihascover=='y'){url+='&autoplay=1';viel.html('<iframe id="youtubeiframe" width="100%" height="100%" data-original="'+url+'" frameborder="0" allowfullscreen data-flag-inst="y"></iframe>')}else{if(typeof tmode!='undefined'&&tmode=='edit'){}else{if(autoplay=='y'){url+='&autoplay=1'}}if(window.lazy=='y'){viel.html('<iframe id="youtubeiframe" class="t-iframe" width="100%" height="100%" data-original="'+url+'" frameborder="0" allowfullscreen data-flag-inst="lazy"></iframe>');el.append('<script>lazyload_iframe = new LazyLoad({elements_selector: ".t-iframe"});<\/script>')}else{viel.html('<iframe id="youtubeiframe" width="100%" height="100%" src="'+url+'" frameborder="0" allowfullscreen data-flag-inst="y"></iframe>')}}}var vivid=viel.attr('data-vimeoid');if(typeof vivid!='undefined'&&vivid>0){url='//player.vimeo.com/video/';url+=vivid+'?color=ffffff&badge=0';if(showinfo=='y'){url+='&title=1&byline=1&portrait=1'}else{url+='&title=0&byline=0&portrait=0'}if(loop=='y'){url+='&loop=1'}if(mute=='y'){url+='&muted=1'}if(vihascover=='y'){url+='&autoplay=1';viel.html('<iframe data-original="'+url+'" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')}else{if(typeof tmode!='undefined'&&tmode=='edit'){}else{if(autoplay=='y'){url+='&autoplay=1'}}if(window.lazy=='y'){viel.html('<iframe class="t-iframe" data-original="'+url+'" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');el.append('<script>lazyload_iframe = new LazyLoad({elements_selector: ".t-iframe"});<\/script>')}else{viel.html('<iframe src="'+url+'" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')}}}}function t396_addHtml(ab,el){tn_console('func: addHtml');var fields_str='width,height,top,left,';fields_str+='container,axisx,axisy,widthunits,heightunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el)}function t396_addTooltip(ab,el){tn_console('func: addTooltip');var fields_str='width,height,top,left,';fields_str+='container,axisx,axisy,widthunits,heightunits,leftunits,topunits,tipposition';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el);var pinEl=el.find('.tn-atom__pin');var tipEl=el.find('.tn-atom__tip');var tipopen=el.attr('data-field-tipopen-value');if(isMobile||(typeof tipopen!='undefined'&&tipopen=='click')){t396_setUpTooltip_mobile(el,pinEl,tipEl)}else{t396_setUpTooltip_desktop(el,pinEl,tipEl)}setTimeout(function(){$('.tn-atom__tip-img').each(function(){var foo=$(this).attr('data-tipimg-original');if(typeof foo!='undefined'&&foo!=''){$(this).attr('src',foo)}})},3000)}function t396_addForm(ab,el){tn_console('func: addForm');var fields_str='width,top,left,';fields_str+='inputs,container,axisx,axisy,widthunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el)}function t396_addGallery(ab,el){tn_console('func: addForm');var fields_str='width,height,top,left,';fields_str+='imgs,container,axisx,axisy,widthunits,heightunits,leftunits,topunits';var fields=fields_str.split(',');el.attr('data-fields',fields_str);t396_elem__renderView(el)}function t396_elem__setFieldValue(el,prop,val,flag_render,flag_updateui,res){if(res=='')res=window.tn.curResolution;if(res<1200&&prop!='zindex'){el.attr('data-field-'+prop+'-res-'+res+'-value',val)}else{el.attr('data-field-'+prop+'-value',val)}if(flag_render=='render')elem__renderViewOneField(el,prop);if(flag_updateui=='updateui')panelSettings__updateUi(el,prop,val)}function t396_elem__getFieldValue(el,prop){var res=window.tn.curResolution;var r;if(res<1200){if(res==960){r=el.attr('data-field-'+prop+'-res-960-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-value')}}if(res==640){r=el.attr('data-field-'+prop+'-res-640-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-res-960-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-value')}}}if(res==480){r=el.attr('data-field-'+prop+'-res-480-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-res-640-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-res-960-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-value')}}}}if(res==320){r=el.attr('data-field-'+prop+'-res-320-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-res-480-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-res-640-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-res-960-value');if(typeof r=='undefined'){r=el.attr('data-field-'+prop+'-value')}}}}}}else{r=el.attr('data-field-'+prop+'-value')}return(r)}function t396_elem__renderView(el){tn_console('func: elem__renderView');var fields=el.attr('data-fields');if(!fields){return!1}fields=fields.split(',');for(var i=0;i<fields.length;i++){t396_elem__renderViewOneField(el,fields[i])}}function t396_elem__renderViewOneField(el,field){var value=t396_elem__getFieldValue(el,field);if(field=='left'){value=t396_elem__convertPosition__Local__toAbsolute(el,field,value);el.css('left',parseFloat(value).toFixed(1)+'px')}if(field=='top'){value=t396_elem__convertPosition__Local__toAbsolute(el,field,value);el.css('top',parseFloat(value).toFixed(1)+'px')}if(field=='width'){value=t396_elem__getWidth(el,value);el.css('width',parseFloat(value).toFixed(1)+'px');var eltype=el.attr('data-elem-type');if(eltype=='tooltip'){var pinSvgIcon=el.find('.tn-atom__pin-icon');if(pinSvgIcon.length>0){var pinSize=parseFloat(value).toFixed(1)+'px';pinSvgIcon.css({'width':pinSize,'height':pinSize})}el.css('height',parseInt(value).toFixed(1)+'px')}if(eltype=='gallery'){var borderWidth=t396_elem__getFieldValue(el,'borderwidth');var borderStyle=t396_elem__getFieldValue(el,'borderstyle');if(borderStyle=='none'||typeof borderStyle=='undefined'||typeof borderWidth=='undefined'||borderWidth=='')borderWidth=0;value=value*1-borderWidth*2;el.css('width',parseFloat(value).toFixed(1)+'px');el.find('.t-slds__main').css('width',parseFloat(value).toFixed(1)+'px');el.find('.tn-atom__slds-img').css('width',parseFloat(value).toFixed(1)+'px')}}if(field=='height'){var eltype=el.attr('data-elem-type');if(eltype=='tooltip'){return}value=t396_elem__getHeight(el,value);el.css('height',parseFloat(value).toFixed(1)+'px');if(eltype==='gallery'){var borderWidth=t396_elem__getFieldValue(el,'borderwidth');var borderStyle=t396_elem__getFieldValue(el,'borderstyle');if(borderStyle=='none'||typeof borderStyle=='undefined'||typeof borderWidth=='undefined'||borderWidth=='')borderWidth=0;value=value*1-borderWidth*2;el.css('height',parseFloat(value).toFixed(1)+'px');el.find('.tn-atom__slds-img').css('height',parseFloat(value).toFixed(1)+'px');el.find('.t-slds__main').css('height',parseFloat(value).toFixed(1)+'px')}}if(field=='container'){t396_elem__renderViewOneField(el,'left');t396_elem__renderViewOneField(el,'top')}if(field=='width'||field=='height'||field=='fontsize'||field=='fontfamily'||field=='letterspacing'||field=='fontweight'||field=='img'){t396_elem__renderViewOneField(el,'left');t396_elem__renderViewOneField(el,'top')}if(field=='inputs'){value=el.find('.tn-atom__inputs-textarea').val();try{t_zeroForms__renderForm(el,value)}catch(err){}}}function t396_elem__convertPosition__Local__toAbsolute(el,field,value){value=parseInt(value);if(field=='left'){var el_container,offset_left,el_container_width,el_width;var container=t396_elem__getFieldValue(el,'container');if(container=='grid'){el_container='grid';offset_left=window.tn.grid_offset_left;el_container_width=window.tn.grid_width}else{el_container='window';offset_left=0;el_container_width=window.tn.window_width}var el_leftunits=t396_elem__getFieldValue(el,'leftunits');if(el_leftunits=='%'){value=t396_roundFloat(el_container_width*value/100)}value=offset_left+value;var el_axisx=t396_elem__getFieldValue(el,'axisx');if(el_axisx=='center'){el_width=t396_elem__getWidth(el);value=el_container_width/2-el_width/2+value}if(el_axisx=='right'){el_width=t396_elem__getWidth(el);value=el_container_width-el_width+value}}if(field=='top'){var ab=el.parent();var el_container,offset_top,el_container_height,el_height;var container=t396_elem__getFieldValue(el,'container');if(container=='grid'){el_container='grid';offset_top=parseFloat(ab.attr('data-artboard-proxy-min-offset-top'));el_container_height=parseFloat(ab.attr('data-artboard-proxy-min-height'))}else{el_container='window';offset_top=0;el_container_height=parseFloat(ab.attr('data-artboard-proxy-max-height'))}var el_topunits=t396_elem__getFieldValue(el,'topunits');if(el_topunits=='%'){value=(el_container_height*(value/100))}value=offset_top+value;var el_axisy=t396_elem__getFieldValue(el,'axisy');if(el_axisy=='center'){el_height=t396_elem__getHeight(el);if(el.attr('data-elem-type')==='image'){el_width=t396_elem__getWidth(el);var fileWidth=t396_elem__getFieldValue(el,'filewidth');var fileHeight=t396_elem__getFieldValue(el,'fileheight');if(fileWidth&&fileHeight){var ratio=parseInt(fileWidth)/parseInt(fileHeight);el_height=el_width/ratio}}value=el_container_height/2-el_height/2+value}if(el_axisy=='bottom'){el_height=t396_elem__getHeight(el);if(el.attr('data-elem-type')==='image'){el_width=t396_elem__getWidth(el);var fileWidth=t396_elem__getFieldValue(el,'filewidth');var fileHeight=t396_elem__getFieldValue(el,'fileheight');if(fileWidth&&fileHeight){var ratio=parseInt(fileWidth)/parseInt(fileHeight);el_height=el_width/ratio}}value=el_container_height-el_height+value}}return(value)}function t396_ab__setFieldValue(ab,prop,val,res){if(res=='')res=window.tn.curResolution;if(res<1200){ab.attr('data-artboard-'+prop+'-res-'+res,val)}else{ab.attr('data-artboard-'+prop,val)}}function t396_ab__getFieldValue(ab,prop){var res=window.tn.curResolution;var r;if(res<1200){if(res==960){r=ab.attr('data-artboard-'+prop+'-res-960');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'')}}if(res==640){r=ab.attr('data-artboard-'+prop+'-res-640');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'-res-960');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'')}}}if(res==480){r=ab.attr('data-artboard-'+prop+'-res-480');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'-res-640');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'-res-960');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'')}}}}if(res==320){r=ab.attr('data-artboard-'+prop+'-res-320');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'-res-480');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'-res-640');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'-res-960');if(typeof r=='undefined'){r=ab.attr('data-artboard-'+prop+'')}}}}}}else{r=ab.attr('data-artboard-'+prop)}return(r)}function t396_ab__renderViewOneField(ab,field){var value=t396_ab__getFieldValue(ab,field)}function t396_allelems__renderView(ab){tn_console('func: allelems__renderView: abid:'+ab.attr('data-artboard-recid'));ab.find(".tn-elem").each(function(){t396_elem__renderView($(this))})}function t396_ab__filterUpdate(ab){var filter=ab.find('.t396__filter');var c1=filter.attr('data-filtercolor-rgb');var c2=filter.attr('data-filtercolor2-rgb');var o1=filter.attr('data-filteropacity');var o2=filter.attr('data-filteropacity2');if((typeof c2=='undefined'||c2=='')&&(typeof c1!='undefined'&&c1!='')){filter.css("background-color","rgba("+c1+","+o1+")")}else if((typeof c1=='undefined'||c1=='')&&(typeof c2!='undefined'&&c2!='')){filter.css("background-color","rgba("+c2+","+o2+")")}else if(typeof c1!='undefined'&&typeof c2!='undefined'&&c1!=''&&c2!=''){filter.css({background:"-webkit-gradient(linear, left top, left bottom, from(rgba("+c1+","+o1+")), to(rgba("+c2+","+o2+")) )"})}else{filter.css("background-color",'transparent')}}function t396_ab__getHeight(ab,ab_height){if(typeof ab_height=='undefined')ab_height=t396_ab__getFieldValue(ab,'height');ab_height=parseFloat(ab_height);var ab_height_vh=t396_ab__getFieldValue(ab,'height_vh');if(ab_height_vh!=''){ab_height_vh=parseFloat(ab_height_vh);if(isNaN(ab_height_vh)===!1){var ab_height_vh_px=parseFloat(window.tn.window_height*parseFloat(ab_height_vh/100));if(ab_height<ab_height_vh_px){ab_height=ab_height_vh_px}}}return(ab_height)}function t396_hex2rgb(hexStr){var hex=parseInt(hexStr.substring(1),16);var r=(hex&0xff0000)>>16;var g=(hex&0x00ff00)>>8;var b=hex&0x0000ff;return[r,g,b]}String.prototype.t396_replaceAll=function(search,replacement){var target=this;return target.replace(new RegExp(search,'g'),replacement)};function t396_elem__getWidth(el,value){if(typeof value=='undefined')value=parseFloat(t396_elem__getFieldValue(el,'width'));var el_widthunits=t396_elem__getFieldValue(el,'widthunits');if(el_widthunits=='%'){var el_container=t396_elem__getFieldValue(el,'container');if(el_container=='window'){value=parseFloat(window.tn.window_width*parseFloat(parseInt(value)/100))}else{value=parseFloat(window.tn.grid_width*parseFloat(parseInt(value)/100))}}return(value)}function t396_elem__getHeight(el,value){if(typeof value=='undefined')value=t396_elem__getFieldValue(el,'height');value=parseFloat(value);if(el.attr('data-elem-type')=='shape'||el.attr('data-elem-type')=='video'||el.attr('data-elem-type')=='html'||el.attr('data-elem-type')=='gallery'){var el_heightunits=t396_elem__getFieldValue(el,'heightunits');if(el_heightunits=='%'){var ab=el.parent();var ab_min_height=parseFloat(ab.attr('data-artboard-proxy-min-height'));var ab_max_height=parseFloat(ab.attr('data-artboard-proxy-max-height'));var el_container=t396_elem__getFieldValue(el,'container');if(el_container=='window'){value=parseFloat(ab_max_height*parseFloat(value/100))}else{value=parseFloat(ab_min_height*parseFloat(value/100))}}}else if(el.attr('data-elem-type')=='button'){value=value}else{value=parseFloat(el.innerHeight())}return(value)}function t396_roundFloat(n){n=Math.round(n*100)/100;return(n)}function tn_console(str){if(window.tn_comments==1)console.log(str)}function t396_setUpTooltip_desktop(el,pinEl,tipEl){var timer;pinEl.mouseover(function(){$('.tn-atom__tip_visible').each(function(){var thisTipEl=$(this).parents('.t396__elem');if(thisTipEl.attr('data-elem-id')!=el.attr('data-elem-id')){t396_hideTooltip(thisTipEl,$(this))}});clearTimeout(timer);if(tipEl.css('display')=='block'){return}t396_showTooltip(el,tipEl)});pinEl.mouseout(function(){timer=setTimeout(function(){t396_hideTooltip(el,tipEl)},300)})}function t396_setUpTooltip_mobile(el,pinEl,tipEl){pinEl.on('click',function(e){if(tipEl.css('display')=='block'&&$(e.target).hasClass("tn-atom__pin")){t396_hideTooltip(el,tipEl)}else{t396_showTooltip(el,tipEl)}});var id=el.attr("data-elem-id");$(document).click(function(e){var isInsideTooltip=($(e.target).hasClass("tn-atom__pin")||$(e.target).parents(".tn-atom__pin").length>0);if(isInsideTooltip){var clickedPinId=$(e.target).parents(".t396__elem").attr("data-elem-id");if(clickedPinId==id){return}}t396_hideTooltip(el,tipEl)})}function t396_hideTooltip(el,tipEl){tipEl.css('display','');tipEl.css({"left":"","transform":"","right":""});tipEl.removeClass('tn-atom__tip_visible');el.css('z-index','')}function t396_showTooltip(el,tipEl){var pos=el.attr("data-field-tipposition-value");if(typeof pos=='undefined'||pos==''){pos='top'};var elSize=el.height();var elTop=el.offset().top;var elBottom=elTop+elSize;var elLeft=el.offset().left;var elRight=el.offset().left+elSize;var winTop=$(window).scrollTop();var winWidth=$(window).width();var winBottom=winTop+$(window).height();var tipElHeight=tipEl.outerHeight();var tipElWidth=tipEl.outerWidth();var padd=15;if(pos=='right'||pos=='left'){var tipElRight=elRight+padd+tipElWidth;var tipElLeft=elLeft-padd-tipElWidth;if((pos=='right'&&tipElRight>winWidth)||(pos=='left'&&tipElLeft<0)){pos='top'}}if(pos=='top'||pos=='bottom'){var tipElRight=elRight+(tipElWidth/2-elSize/2);var tipElLeft=elLeft-(tipElWidth/2-elSize/2);if(tipElRight>winWidth){var rightOffset=-(winWidth-elRight-padd);tipEl.css({"left":"auto","transform":"none","right":rightOffset+"px"})}if(tipElLeft<0){var leftOffset=-(elLeft-padd);tipEl.css({"left":leftOffset+"px","transform":"none"})}}if(pos=='top'){var tipElTop=elTop-padd-tipElHeight;var tipElBottom=elBottom+padd+tipElHeight;if(winBottom>tipElBottom&&winTop>tipElTop){pos='bottom'}}if(pos=='bottom'){var tipElTop=elTop-padd-tipElHeight;var tipElBottom=elBottom+padd+tipElHeight;if(winBottom<tipElBottom&&winTop<tipElTop){pos='top'}}tipEl.attr('data-tip-pos',pos);tipEl.css('display','block');tipEl.addClass('tn-atom__tip_visible');el.css('z-index','1000')}function t396_hex2rgba(hexStr,opacity){var hex=parseInt(hexStr.substring(1),16);var r=(hex&0xff0000)>>16;var g=(hex&0x00ff00)>>8;var b=hex&0x0000ff;return[r,g,b,parseFloat(opacity)]}
function t397_init(recid){var el=$('#rec'+recid);var curMode=$('.t-records').attr('data-tilda-mode');var tabs=el.find('.t397__tab');if(curMode!='edit'&&curMode!='preview'){t397_scrollToTabs(recid)}
if(tabs.length>0){tabs.click(function(){if($(this).hasClass('t397__tab_active')){return}
el.find('.t397__tab').removeClass('t397__tab_active');$(this).addClass('t397__tab_active');t397_removeUrl();var tabNumber=el.find(".t397__tab_active").index()+1;if(curMode!='edit'&&curMode!='preview'&&tabNumber!==0){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumber)}}
t397_alltabs_updateContent(recid);t397_updateSelect(recid);var recids=$(this).attr('data-tab-rec-ids').split(',');recids.forEach(function(recid){var el=$('#rec'+recid);el.find('.t-feed, .t-store, .t-store__product-snippet, .t117, .t121, .t132, .t223, .t226, .t228, .t229, .t230, .t268, .t279, .t341, .t346, .t347, .t349, .t351, .t353, .t384, .t385, .t386, .t396, .t400, .t404, .t409, .t410, .t412, .t418, .t422, .t425, .t428, .t433, .t456, .t477, .t478, .t480, .t486, .t498, .t504, .t506, .t509, .t511, .t517, .t518, .t519, .t520, .t532, .t533, .t538, .t539, .t544, .t545, .t552, .t554, .t570, .t577, .t592, .t598, .t599, .t601, .t604, .t605, .t609, .t615, .t616, .t650, .t659, .t670, .t675, .t686, .t688, .t694, .t698, .t700, .t726, .t728, .t730, .t734, .t738, .t740, .t744, .t754, .t760, .t762, .t764, .t774, .t776, .t778, .t780, .t786, .t798, .t799, .t801, .t813, .t814, .t822, .t826, .t827, .t829, .t842, .t843, .t849, .t850, .t851, .t856, .t858, .t859, .t860, .t881, .t902, .t912, .t923, .t937, .t958, .t959, .t979, .t982, .t983, .t989, .t994').trigger('displayChanged')});t397_startUpdateLazyLoad($(this));if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}});t397_alltabs_updateContent(recid);t397_updateContentBySelect(recid);var bgcolor=el.css("background-color");var bgcolor_target=el.find(".t397__select, .t397__firefoxfix");bgcolor_target.css("background-color",bgcolor)}
$('.r').on('click','[href*="#!/tab/'+recid+'"]',function(e){var hash=e.currentTarget.hash;t397_scrollToTabs(recid,hash)})}
function t397_alltabs_updateContent(recid){var mainRecid=recid;var el=$('#rec'+recid);var activeTab=el.find(".t397__tab_active");if(activeTab.length===1){var active=activeTab.attr('data-tab-rec-ids').split(',');var noactive=[];el.find(".t397__tab:not(.t397__tab_active)").each(function(i,tab){noactive=noactive.concat($(tab).attr('data-tab-rec-ids').split(','))});var unique=noactive.filter(function(value,index,self){return self.indexOf(value)===index});var off=unique.filter(function(value){return $.inArray(value,active)===-1});if(el.find(".t397__tab_active").is(":visible")||el.find(".t397__select").is(":visible")){active.forEach(function(recid){if(recid!==''){var el=$('#rec'+recid);var recordType=el.attr('data-record-type');el.removeClass('t397__off');el.css('opacity','');if(recordType==='395'&&t395_alltabs_updateContent!==undefined&&t395_updateSelect!==undefined&&mainRecid!==recid){t395_alltabs_updateContent(recid);t395_updateSelect(recid);el.find('.t395__tab:nth-child(1)').trigger('click')}
if(recordType==='397'&&mainRecid!==recid){t397_alltabs_updateContent(recid);t397_updateSelect(recid);el.find('.t397__tab:nth-child(1)').trigger('click')}}})}else{active.forEach(function(recid){var el=$('#rec'+recid);el.attr('data-animationappear','off');el.addClass('t397__off')})}
off.forEach(function(recid){if(recid!==''){var el=$('#rec'+recid);var recordType=el.attr('data-record-type');el.attr('data-connect-with-tab','yes');el.attr('data-animationappear','off');el.addClass('t397__off');if(recordType==='395'&&t395_alltabs_updateContent!==undefined&&t395_updateSelect!==undefined&&mainRecid!==recid){t395_alltabs_updateContent(recid);t395_updateSelect(recid);el.find('.t395__tab:nth-child(1)').trigger('click')}
if(recordType==='397'&&mainRecid!==recid){t397_alltabs_updateContent(recid);t397_updateSelect(recid);el.find('.t397__tab:nth-child(1)').trigger('click')}}})}}
function t397_updateContentBySelect(recid){var el=$('#rec'+recid);el.find(".t397__select").change(function(){var select_val=el.find(".t397__select").val();var tab_index=el.find(".t397__tab[data-tab-rec-ids='"+select_val+"']");tab_index.trigger('click')})}
function t397_updateSelect(recid){var el=$('#rec'+recid);var current_tab=el.find(".t397__tab_active").attr('data-tab-rec-ids');var el_select=el.find(".t397__select");el_select.val(current_tab)}
function t397_startUpdateLazyLoad($this){var rec_ids=$this.attr('data-tab-rec-ids').split(',');rec_ids.forEach(function(rec_id,i,arr){var rec_el=$('#rec'+rec_id);var video=rec_el.find('.t-video-lazyload');if(video.length>0){t397_updateVideoLazyLoad(video)}})}
function t397_updateVideoLazyLoad(video){setTimeout(function(){video.each(function(){var div=$(this);if(!div.hasClass('t-video__isload')){var height=div.attr('data-videolazy-height')?$(this).attr('data-videolazy-height'):'100%';if(height.indexOf('vh')!=-1){height='100%'}
var videoId=div.attr('data-videolazy-id').trim();var blockId=div.attr('data-blocklazy-id')||'';if(typeof div.attr('data-videolazy-two-id')!='undefined'){var videoTwoId='_'+div.attr('data-videolazy-two-id')+'_'}else{var videoTwoId=''}
if(div.attr('data-videolazy-type')=='youtube'){div.find('iframe').remove();div.prepend('<iframe id="youtubeiframe'+videoTwoId+blockId+'" width="100%" height="'+height+'" src="//www.youtube.com/embed/'+videoId+'?rel=0&fmt=18&html5=1&showinfo=0" frameborder="0" allowfullscreen></iframe>')}}
div.addClass('t-video__isload')})},2)}
function t397_scrollToTabs(recid,hash){var el=$('#rec'+recid);var curUrl='';if(hash){curUrl=hash}else{curUrl=window.location.href}
var tabIndexNumber=curUrl.indexOf('#!/tab/');var tabIndexNumberStart=curUrl.indexOf('tab/');el.find('.t397__wrapper_mobile .t397__select option:eq(0)').prop('selected',!1);if(tabIndexNumber!==-1){var tabRec=curUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length);if(tabRec==recid){var tabBlock=$('#rec'+tabRec).find('.t397');var tabNumber=parseInt(curUrl.slice(tabIndexNumberStart+4+recid.length+1),10);el.find('.t397__tab').removeClass('t397__tab_active');el.find('.t397__tab:eq('+(tabNumber-1)+')').trigger('click').addClass('t397__tab_active');el.find('.t397__wrapper_mobile .t397__select option:eq('+(tabNumber-1)+')').prop('selected',!0);var targetOffset=tabBlock.offset().top;var target=targetOffset;if($(window).width()>960){target=targetOffset-200}else{target=targetOffset-100}
$('html, body').animate({scrollTop:target},300)}}}
function t397_removeUrl(){var curUrl=window.location.href;var indexToRemove=curUrl.indexOf('#!/tab/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=curUrl.indexOf('%23!/tab/')}
curUrl=curUrl.substring(0,indexToRemove);if(indexToRemove!=-1){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',curUrl)}}}
function t412_init(recid){var rec=$('#rec'+recid);if(rec.find('a[href^="#order"]')){rec.find('a[href^="#order"]').on('click',function(e){var $linkelem=$(this);var $jspaybox=$('.js-payment-systembox');t412_setCoordinateToPaymentBox(e,$linkelem,$jspaybox);$jspaybox.css('margin-top','0');$jspaybox.css('margin-left','0');$(window).resize(function(){if($jspaybox.css('display')=='block'&&$linkelem){t412_setCoordinateToPaymentBox(e,$linkelem,$jspaybox)}})})}}
function t412_setCoordinateToPaymentBox(event,$linkelem,$jspaybox){var oldTopCoord=0;var newTopCoord=0;var offset=$linkelem.offset();var top=offset.top+$linkelem.parents('.t412__col').height()-$jspaybox.height();var left=offset.left+$linkelem.parents('.t412__col').width()/2-$jspaybox.width()/2;oldTopCoord=$jspaybox.css('top');$jspaybox.css('top',top+'px');$jspaybox.css('left',left+'px');newTopCoord=$jspaybox.css('top');if(parseInt(oldTopCoord)-parseInt(newTopCoord)==21){$jspaybox.css('top',(top+21)+'px')}}
function t412_unifyHeights(recid){var el=$("#rec"+recid);el.find('.t412__descr').css('height',"auto");$('#rec'+recid+' .t412 .t-container').each(function(){var highestBox2=0;$('.t412__descr',this).each(function(){if($(this).height()>highestBox2)highestBox2=$(this).height()});if($(window).width()>=960&&$(this).is(':visible')){$('.t412__descr',this).css('height',highestBox2)}else{$('.t412__descr',this).css('height',"auto")}});el.find('.t412__title').css('height',"auto");$('#rec'+recid+' .t412 .t-container').each(function(){var highestBox3=0;$('.t412__title',this).each(function(){if($(this).height()>highestBox3)highestBox3=$(this).height()});if($(window).width()>=960&&$(this).is(':visible')){$('.t412__title',this).css('height',highestBox3)}else{$('.t412__title',this).css('height',"auto")}});el.find('.t412__wrapper').css('height',"auto");$('#rec'+recid+' .t412 .t-container').each(function(){var highestBox=0;$('.t412__wrapper',this).each(function(){if($(this).height()>highestBox)highestBox=$(this).height()});if($(window).width()>=960&&$(this).is(':visible')){$('.t412__wrapper',this).css('height',highestBox)}else{$('.t412__wrapper',this).css('height',"auto")}})}
function t418_init(recid){var el=$('#rec'+recid);var container=el.find('.t418__slidecontainer');if(container.length===0){return}
var totalSlides=el.find('.t418__item').length;var sliderWidth=el.find('.t418__item').width();var pos=parseInt(container.attr('data-slide-pos'),10)||0;t418_checkSize(recid);container.width(sliderWidth*totalSlides);$(window).bind('resize',t_throttle(function(){t418_checkSize(recid);sliderWidth=el.find('.t418__item').width();container.width(sliderWidth*totalSlides);var matrix=container.css('transform').replace(/[^0-9\-.,]/g,'').split(',');var x=matrix[12]||matrix[4];if(-((totalSlides-1)*sliderWidth)>x){container.css("transform","translate(-"+(totalSlides-1)*sliderWidth+"px, 0)")}}));el.find('.t418').bind('displayChanged',function(){t418_checkSize(recid);sliderWidth=el.find('.t418__item').width();container.width(sliderWidth*totalSlides);setTimeout(function(){sliderWidth=el.find('.t418__item').width();container.width(sliderWidth*totalSlides);t418_checkSize(recid)},300)});el.find('.t418__next').click(function(){t418_slideRight(recid)});el.find('.t418__previous').click(function(){t418_slideLeft(recid)})}
function t418_slideLeft(recid){var el=$('#rec'+recid);var container=el.find('.t418__slidecontainer');var totalSlides=el.find('.t418__item').length;var sliderWidth=el.find('.t418__item').width();var pos=parseInt(container.attr('data-slide-pos'),10);container.attr('data-slide-pos',--pos);if(pos<=-1){pos=totalSlides-1;container.attr('data-slide-pos',pos)}
container.css({transform:'translate(-'+(sliderWidth*pos)+'px, 0)'}).css("transition-duration",".3s");if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t418_slideRight(recid){var el=$('#rec'+recid);var container=el.find('.t418__slidecontainer');var totalSlides=el.find('.t418__item').length;var sliderWidth=el.find('.t418__item').width();var pos=parseInt(container.attr('data-slide-pos'),10);container.attr('data-slide-pos',++pos);if(pos>=totalSlides){pos=0;container.attr('data-slide-pos',pos)}
container.css({transform:'translate(-'+(sliderWidth*pos)+'px, 0)'}).css("transition-duration",".3s");if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t418_checkSize(recid){var el=$('#rec'+recid);var sizer=el.find('.t418__height');var height=sizer.height();var width=sizer.width();var ratio=width/height;var gallerywrapper=el.find(".t418__slider");var gallerywidth=gallerywrapper.width();gallerywrapper.css({'height':((gallerywidth/ratio)+'px')});var maxwidth=el.find(".t418__height").width();var windowwidth=$(window).width();var value=windowwidth-80;if(maxwidth>windowwidth){el.find(".t418__item").css("max-width",value+"px");el.find(".t418__img").css("left","20px");el.find(".t418__img").css("right","20px")}else{el.find(".t418__item").css("max-width","");el.find(".t418__img").css("left","");el.find(".t418__img").css("right","")}}
function t431_init(recid){var tableHead=t431__escapeHTML($('#rec'+recid+' .t431 .t431__data-part1').html()||"");var tableBody=t431__escapeHTML($('#rec'+recid+' .t431 .t431__data-part2').html()||"");var tableColSize=$('#rec'+recid+' .t431 .t431__table').attr("data-table-width");var hasTargetBlank=$('#rec'+recid+' .t431 .t431__table').attr("data-target-blank");var tHead=t431_parseData(tableHead);var tBody=t431_parseData(tableBody);var colSize=t431_parseData(tableColSize);var maxColNum=t431__findMaxRowLengthInTable(tHead,tBody);var colWidth=t431__setColumnsWidth(colSize,maxColNum,recid);var container=$('#rec'+recid+' .t431 .t431__table');var html="";if(tHead){html+=t431__generateTable(tHead,"th",hasTargetBlank,colWidth,maxColNum)}
if(tBody){html+=t431__generateTable(tBody,"td",hasTargetBlank,colWidth,maxColNum)}
container.append(html)}
function t431__findMaxRowLengthInTable(arrayHead,arrayData){var headMaxLength=0;var dataMaxLength=0;if(arrayHead){headMaxLength=t431__findMaxRowLengInArray(arrayHead)}
if(arrayData){dataMaxLength=t431__findMaxRowLengInArray(arrayData)}
if(dataMaxLength>headMaxLength){return dataMaxLength}else{return headMaxLength}}
function t431__escapeHTML(string){var html=string.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&').replace(/&nbsp;/g,' ');var result="";var allowedTags="";['b','i','u','ul','li','ol','br','img','s','sub','sup','span','hr','pre','code','mark','strong','small'].forEach(function(value){allowedTags+=":not("+value+")"});var allowedAttrs=['alt','class','title','id','src','style','width','height','data-replace-key'];var fakeDOM=document.implementation.createHTMLDocument('fake');$.each($.parseHTML(html,fakeDOM)||[],function(i,$el){var el=$($el)[0];if(!$($el).is(allowedTags)){if(el.nodeType!==3&&el.nodeType!==8){var temp=document.createElement(el.tagName);allowedAttrs.forEach(function(value){if(el.getAttribute(value)!==null){temp.setAttribute(value,el.getAttribute(value).replace(/javascript:/gi,''))}});temp.textContent=el.textContent;result+=temp.outerHTML}else{result+=el.textContent}}});return result}
function t431__findMaxRowLengInArray(curArray){var maxLength=0;for(var i=0;i<curArray.length;i++){if(curArray[i].length>maxLength){maxLength=curArray[i].length}}
return maxLength}
function t431__setColumnsWidth(colWidth,colsNumber,recid){if(colWidth){return colWidth[0]}else{var tableWidth=$('#rec'+recid+' .t431 .t-container .t-col').width();return(tableWidth/colsNumber+"px")}}
function t431__generateTable(arrayValues,colTag,hasTargetBlank,colWidth,maxColNumber){var html="";var tag="";if(colTag=="td"){tag="tbody"}else{tag="thead"}
html+='<'+tag+' class="t431__'+tag+'">';for(var i=0;i<arrayValues.length;i++){if(colTag=="td"){if((i+1)%2>0){html+='<tr class="t431__oddrow">'}else{html+='<tr class="t431__evenrow">'}}else{html+='<tr>'}
var addingCols=0;if(arrayValues[i].length<maxColNumber){addingCols=maxColNumber-arrayValues[i].length}
for(var j=0;j<(arrayValues[i].length+addingCols);j++){if(arrayValues[i][j]){var curWidth="";if(Array.isArray(colWidth)&&colWidth[j]){curWidth=colWidth[j].myText}else{curWidth=colWidth}
var ColWithAttr='';if(colTag=="td"){ColWithAttr='<td class="t431__td t-text" width="'+curWidth+'">'}else{ColWithAttr='<th class="t431__th t-title" width="'+curWidth+'">'}
if(arrayValues[i][j].myHref){var tBlank="";if(hasTargetBlank){tBlank="target=\"_blank\""}
var linkWithAttr="";var linkCloseTag="";if(arrayValues[i][j].myHrefType=="link"){linkWithAttr='<a href="'+arrayValues[i][j].myHref+'"'+tBlank+'>';linkCloseTag='</a>'}else{linkWithAttr='<div class="t431__btnwrapper"><a href="'+arrayValues[i][j].myHref+'"'+tBlank+' class="t-btn t-btn_sm"><table style="width:100%; height:100%"><tr><td>';linkCloseTag='</td></tr></table></a></div>'}
html+=ColWithAttr+linkWithAttr+arrayValues[i][j].myText+linkCloseTag+'</'+colTag+'>'}else{html+=ColWithAttr+arrayValues[i][j].myText+'</'+colTag+'>'}}else{html+='<'+colTag+' class="t431__'+colTag+'" width="'+curWidth+'">'+'</'+colTag+'>'}}
html+="</tr>"}
html+="</"+tag+">";return html}
function t431_parseData(data){if(data!==""&&typeof data!="undefined"){data=t431__addBrTag(data);var arrayTable=[];var arrayRow=[];var curItem={myText:"",myHref:"",myHrefType:""};var hasLink="";var hasLinkWithSpace="";var hasBtn="";var hasBtnWithSpace="";var endLine="";for(var i=0;i<data.length;i++){if(data[i]==";"&&!(data.slice(i-4,i)=="&lt;"||data.slice(i-4,i)=="&gt;"||data.slice(i-5,i)=="&amp;"||data.slice(i-6,i)=="&nbsp;")){arrayRow.push(curItem);curItem={myText:"",myHref:""};hasLink="";hasLinkWithSpace="";hasBtn="";hasBtnWithSpace=""}else{if(hasLink=="link="||hasLinkWithSpace==" link="||hasBtn=="button="||hasBtnWithSpace==" button="){if(curItem.myHref===""&&hasLink==="link="){curItem.myText=curItem.myText.slice(0,-5);curItem.myHrefType="link"}else{if(curItem.myHref===""&&hasLinkWithSpace===" link="){curItem.myText=curItem.myText.slice(0,-6);curItem.myHrefType="link"}else{if(curItem.myHref===""&&hasBtn==="button="){curItem.myText=curItem.myText.slice(0,-7);curItem.myHrefType="btn"}else{if(curItem.myHref===""&&hasBtnWithSpace===" button="){curItem.myText=curItem.myText.slice(0,-8);curItem.myHrefType="btn"}}}}
curItem.myHref+=(data[i])}else{curItem.myText+=(data[i]);hasLink=t431__checkSubstr("link=",hasLink,data[i]);hasLinkWithSpace=t431__checkSubstr(" link=",hasLinkWithSpace,data[i]);hasBtn=t431__checkSubstr("button=",hasBtn,data[i]);hasBtnWithSpace=t431__checkSubstr(" button=",hasBtnWithSpace,data[i])}
endLine=t431__checkSubstr("<br />",endLine,data[i]);if(endLine=="<br />"){if(curItem.myHref){curItem.myHref=curItem.myHref.slice(0,-6)}else{curItem.myText=curItem.myText.slice(0,-6)}
arrayRow.push(curItem);arrayTable.push(arrayRow);curItem={myText:"",myHref:""};hasLink="";hasLinkWithSpace="";hasBtn="";hasBtnWithSpace="";arrayRow=[]}}}
if(arrayRow.length>0||curItem.myText!==""){if(curItem!==""){arrayRow.push(curItem)}
arrayTable.push(arrayRow)}}
return arrayTable}
function t431__checkSubstr(targetSubstr,curSubstr,curSymbol){if(!curSubstr&&curSymbol==targetSubstr[0]){return curSymbol}else{if(curSubstr){for(var i=0;i<(targetSubstr.length-1);i++){if(curSubstr[curSubstr.length-1]==targetSubstr[i]&&curSymbol==targetSubstr[i+1]){return(curSubstr+=curSymbol)}}}}}
function t431__addBrTag(oldStringItem){var newStringItem="";for(var i=0;i<oldStringItem.length;i++){if(oldStringItem[i]=="\n"||oldStringItem[i]=="\r"){newStringItem+="<br />"}else{newStringItem+=oldStringItem[i]}}
return newStringItem.replace(/&nbsp;/g,' ')}
function t431_createTable(recid,tablehead,tabledata,tablecolsize,hastargetblank,btnstyles,t431__tdstyles,t431__thstyles,t431__oddrowstyles,t431__evenrowstyles){var t431__arrayColSize=t431_parseData(tablecolsize);var t431__arrayHead=t431_parseData(tablehead);var t431__arrayData=t431_parseData(tabledata);var t431__maxcolnumber=t431__findMaxRowLengthInTable(t431__arrayHead,t431__arrayData);var t431__colWidth=t431__setColumnsWidth(t431__arrayColSize,t431__maxcolnumber,recid);if(t431__colWidth[0].myText&&t431__colWidth[0].myText[t431__colWidth[0].myText.length-1]=="%"){for(var i=0;i<t431__colWidth.length;i++){t431__colWidth[i].myText=t431__colWidth[i].myText.slice(0,-1);t431__colWidth[i].myText+="vw"}}
var t431__container=$('#rec'+recid+' .t431 .t-container .t431__table');var t431__htmlTable="";if(t431__arrayHead){t431__htmlTable+=t431__generateHtml(recid,t431__arrayHead,"th",hastargetblank,t431__colWidth,btnstyles,t431__thstyles,null,null,t431__maxcolnumber)}
t431__container.append(t431__htmlTable);t431__htmlTable="";if(t431__arrayData){t431__htmlTable+=t431__generateHtml(recid,t431__arrayData,"td",hastargetblank,t431__colWidth,btnstyles,t431__tdstyles,t431__oddrowstyles,t431__evenrowstyles,t431__maxcolnumber)}
t431__container.append(t431__htmlTable)}
function t431__generateHtml(recid,arrayValues,coltag,hastargetblank,colWidth,btnstyles,colstyles,oddrowstyles,evenrowstyles,maxcolnumber){var t431__htmlpart="";if(coltag=="td"){var t431__theadorbodytag="tbody"}else{var t431__theadorbodytag="thead"}
t431__htmlpart+='<'+t431__theadorbodytag+' class="t431__'+t431__theadorbodytag+'">';var t431__firstbodyrowstyle="";if($('#rec'+recid+' .t431 .t-container .t431__thead th').length>0&&$('#rec'+recid+' .t431 .t-container .t431__thead th').css("border-bottom-width")[0]!="0"){t431__firstbodyrowstyle="border-top: 0 !important;"}
for(var i=0;i<arrayValues.length;i++){if(coltag=="td"){if((i+1)%2>0){t431__htmlpart+="<tr class=\"t431__oddrow\""+"style=\""+oddrowstyles+"\">"}else{t431__htmlpart+="<tr class=\"t431__evenrow\""+"style=\""+evenrowstyles+"\">"}}else{t431__htmlpart+="<tr>"}
var t431__addingcols=0;if(arrayValues[i].length<maxcolnumber){t431__addingcols=maxcolnumber-arrayValues[i].length}
for(var j=0;j<(arrayValues[i].length+t431__addingcols);j++){if(arrayValues[i][j]){if(Array.isArray(colWidth)&&colWidth[j]){var t431__curWidth=colWidth[j].myText}else{var t431__curWidth=colWidth}
if(i==0&&coltag=="td"){var t431__colwithattr="<"+coltag+" class=\"t431__"+coltag+"\" style=\"width:"+t431__curWidth+";"+colstyles+t431__firstbodyrowstyle+"\">"}else{var t431__colwithattr="<"+coltag+" class=\"t431__"+coltag+"\" style=\"width:"+t431__curWidth+";"+colstyles+"\">"}
if(arrayValues[i][j].myHref){var t431__tblank="";if(hastargetblank){var t431__tblank="target=\"_blank\""}
if(arrayValues[i][j].myHrefType=="link"){var t431__linkwithattr="<a href=\""+arrayValues[i][j].myHref+"\""+t431__tblank+">";var t431__linkclosetag="</a>"}else{var t431__linkwithattr="<div class=\"t431__btnwrapper\"><a href=\""+arrayValues[i][j].myHref+"\""+t431__tblank+" class=\"t-btn t-btn_sm\" style=\""+btnstyles+"\"><table style=\"width:100%; height:100%;\"><tr><td>";var t431__linkclosetag="</td></tr></table></a></div>"}
t431__htmlpart+=t431__colwithattr+t431__linkwithattr+arrayValues[i][j].myText+t431__linkclosetag+"</"+coltag+">"}else{t431__htmlpart+=t431__colwithattr+arrayValues[i][j].myText+"</"+coltag+">"}}else{t431__htmlpart+="<"+coltag+" class=\"t431__"+coltag+"\" style=\"width:"+t431__curWidth+";"+colstyles+"\">"+"</"+coltag+">"}}
t431__htmlpart+="</tr>"}
t431__htmlpart+="</"+t431__theadorbodytag+">";return t431__htmlpart}
function t433_init(recid){var el=$('#rec'+recid);$('#separateMap'+recid).css("height","auto");t433_setMapHeight(recid);el.find('.t433').bind('displayChanged',function(){t433_setMapHeight(recid)});$(window).bind('resize',t_throttle(function(){t433_setMapHeight(recid)}))}
function t433_setMapHeight(recid){var el=$('#rec'+recid);var map=el.find('.t433__map');var textwrapper=el.find('.t433__col_text').height();map.css('height',textwrapper);el.find('.t-map').css('height',textwrapper).trigger('sizechange')}
function t478_setHeight(recid){var el=$('#rec'+recid);var sizer=el.find('.t478__sizer');var height=sizer.height();var width=sizer.width();var ratio=width/height;var imgwrapper=el.find(".t478__blockimg, .t478__textwrapper");var imgwidth=imgwrapper.width();if(height!=$(window).height()){imgwrapper.css({'height':((width/ratio)+'px')})}}
function t480_init(recid){var el=$('#rec'+recid);t480_setHeight(recid);if(window.isMobile){$(window).on('orientationchange',function(){t480_setHeight(recid)})}else{$(window).on('resize',function(){if(typeof window.noAdaptive!="undefined"&&window.noAdaptive==!0&&window.isMobile){return}
t480_setHeight(recid)})}
el.find('.t480').on('displayChanged',function(){t480_setHeight(recid)})}
function t480_setHeight(recid){var el=$('#rec'+recid);var sizer=el.find('.t480__sizer');var height=sizer.height();var width=sizer.width();var ratio=width/height;var imgwrapper=el.find(".t480__blockimg");var imgwidth=imgwrapper.width();var rawSizerHeight=sizer.attr('style');if(window.isMobile&&rawSizerHeight.indexOf('vh')!==-1){var height=document.documentElement.clientHeight*parseFloat($(window).height()/height);imgwrapper.css('height',((imgwidth/ratio)+'px'))}else if(height!=$(window).height()){imgwrapper.css('height',((imgwidth/ratio)+'px'))}}
function t481_highlight(){var url=window.location.href;var pathname=window.location.pathname;if(url.substr(url.length-1)=="/"){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)=="/"){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)=="/"){pathname=pathname.slice(1)}
if(pathname==""){pathname="/"}
$(".t481__list_item a[href='"+url+"']").addClass("t-active");$(".t481__list_item a[href='"+url+"/']").addClass("t-active");$(".t481__list_item a[href='"+pathname+"']").addClass("t-active");$(".t481__list_item a[href='/"+pathname+"']").addClass("t-active");$(".t481__list_item a[href='"+pathname+"/']").addClass("t-active");$(".t481__list_item a[href='/"+pathname+"/']").addClass("t-active")}
function t481_checkAnchorLinks(recid){if($(window).width()>=960){var t481_navLinks=$("#rec"+recid+" .t481__list_item a:not(.tooltipstered)[href*='#']");if(t481_navLinks.length>0){t481_catchScroll(t481_navLinks)}}}
function t481_catchScroll(t481_navLinks){var t481_clickedSectionId=null,t481_sections=new Array(),t481_sectionIdTonavigationLink={},t481_interval=100,t481_lastCall,t481_timeoutId,t481_offsetTop=$(".t270").attr("data-offset-top");if(typeof t481_offsetTop=="undefined"){t481_offsetTop=0}
t481_navLinks=$(t481_navLinks.get().reverse());t481_navLinks.each(function(){var t481_cursection=t481_getSectionByHref($(this));if(typeof t481_cursection.attr("id")!="undefined"){t481_sections.push(t481_cursection)}
t481_sectionIdTonavigationLink[t481_cursection.attr("id")]=$(this)});t481_highlightNavLinks(t481_navLinks,t481_sections,t481_sectionIdTonavigationLink,t481_clickedSectionId,t481_offsetTop);t481_navLinks.click(function(){if(!$(this).hasClass("tooltipstered")){t481_navLinks.removeClass('t-active');t481_sectionIdTonavigationLink[t481_getSectionByHref($(this)).attr("id")].addClass('t-active');t481_clickedSectionId=t481_getSectionByHref($(this)).attr("id")}});$(window).scroll(function(){var t481_now=new Date().getTime();if(t481_lastCall&&t481_now<(t481_lastCall+t481_interval)){clearTimeout(t481_timeoutId);t481_timeoutId=setTimeout(function(){t481_lastCall=t481_now;t481_clickedSectionId=t481_highlightNavLinks(t481_navLinks,t481_sections,t481_sectionIdTonavigationLink,t481_clickedSectionId,t481_offsetTop)},t481_interval-(t481_now-t481_lastCall))}else{t481_lastCall=t481_now;t481_clickedSectionId=t481_highlightNavLinks(t481_navLinks,t481_sections,t481_sectionIdTonavigationLink,t481_clickedSectionId,t481_offsetTop)}})}
function t481_getSectionByHref(curlink){if(curlink.is('[href*="#rec"]')){return $(".r[id='"+curlink.attr("href").substring(1)+"']")}
else{return $(".r[data-record-type='215']").has("a[name='"+curlink.attr("href").substring(1)+"']")}}
function t481_highlightNavLinks(t481_navLinks,t481_sections,t481_sectionIdTonavigationLink,t481_clickedSectionId,offsetTop){var t481_scrollPosition=$(window).scrollTop(),t481_valueToReturn=t481_clickedSectionId;$(t481_sections).each(function(e){var t481_curSection=$(this),t481_sectionTop=t481_curSection.offset().top,t481_id=t481_curSection.attr('id'),t481_navLink=t481_sectionIdTonavigationLink[t481_id];if(t481_scrollPosition>=(t481_sectionTop-offsetTop)||(t481_sections[0].attr("id")==t481_id&&$(window).scrollTop()>=$(document).height()-$(window).height())){if(t481_clickedSectionId==null&&!t481_navLink.hasClass('t-active')){t481_navLinks.removeClass('t-active');t481_navLink.addClass('t-active');t481_valueToReturn=null}else{if(t481_clickedSectionId!=null&&t481_id==t481_clickedSectionId){t481_valueToReturn=null}}
return!1}});return t481_valueToReturn}
function t481_setPath(){}
function t481_setWidth(recid){var window_width=$(window).width();if(window_width>980){$(".t481").each(function(){var el=$(this);var left_exist=el.find('.t481__leftcontainer').length;var left_w=el.find('.t481__leftcontainer').outerWidth(!0);var max_w=left_w;var right_exist=el.find('.t481__rightcontainer').length;var right_w=el.find('.t481__rightcontainer').outerWidth(!0);var items_align=el.attr('data-menu-items-align');if(left_w<right_w)max_w=right_w;max_w=Math.ceil(max_w);var center_w=0;el.find('.t481__centercontainer').find('li').each(function(){center_w+=$(this).outerWidth(!0)});var padd_w=40;var maincontainer_width=el.find(".t481__maincontainer").outerWidth(!0);if(maincontainer_width-max_w*2-padd_w*2>center_w+20){if(items_align=="center"||typeof items_align==="undefined"){el.find(".t481__leftside").css("min-width",max_w+"px");el.find(".t481__rightside").css("min-width",max_w+"px")}}else{el.find(".t481__leftside").css("min-width","");el.find(".t481__rightside").css("min-width","")}})}}
function t481_setBg(recid){var window_width=$(window).width();if(window_width>980){$(".t481").each(function(){var el=$(this);if(el.attr('data-bgcolor-setbyscript')=="yes"){var bgcolor=el.attr("data-bgcolor-rgba");el.css("background-color",bgcolor)}})}else{$(".t481").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-hex");el.css("background-color",bgcolor);el.attr("data-bgcolor-setbyscript","yes")})}}
function t481_appearMenu(recid){var window_width=$(window).width();if(window_width>980){$(".t481").each(function(){var el=$(this);var appearoffset=el.attr("data-appearoffset");if(appearoffset!=""){if(appearoffset.indexOf('vh')>-1){appearoffset=Math.floor((window.innerHeight*(parseInt(appearoffset)/100)))}
appearoffset=parseInt(appearoffset,10);if($(window).scrollTop()>=appearoffset){if(el.css('visibility')=='hidden'){el.finish();el.css("visibility","visible");el.animate({"opacity":"1"},200,function(){})}}else{el.stop();el.animate({"opacity":"0"},200,function(){});el.css("visibility","hidden")}}})}}
function t481_changebgopacitymenu(recid){var window_width=$(window).width();if(window_width>980){$(".t481").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-rgba");var bgcolor_afterscroll=el.attr("data-bgcolor-rgba-afterscroll");var bgopacityone=el.attr("data-bgopacity");var bgopacitytwo=el.attr("data-bgopacity-two");var menushadow=el.attr("data-menushadow");if(menushadow=='100'){var menushadowvalue=menushadow}else{var menushadowvalue='0.'+menushadow}
if($(window).scrollTop()>20){el.css("background-color",bgcolor_afterscroll);if(bgopacitytwo=='0'||menushadow==' '){el.css("box-shadow","none")}else{el.css("box-shadow","0px 1px 3px rgba(0,0,0,"+menushadowvalue+")")}}else{el.css("background-color",bgcolor);if(bgopacityone=='0.0'||menushadow==' '){el.css("box-shadow","none")}else{el.css("box-shadow","0px 1px 3px rgba(0,0,0,"+menushadowvalue+")")}}})}}
function t481_createMobileMenu(recid){var window_width=$(window).width(),el=$("#rec"+recid),menu=el.find(".t481"),burger=el.find(".t481__mobile");burger.click(function(e){menu.fadeToggle(300);$(this).toggleClass("t481_opened")})
$(window).bind('resize',t_throttle(function(){window_width=$(window).width();if(window_width>980){menu.fadeIn(0)}},200))}
function t504_unifyHeights(recid){$('#rec'+recid+' .t504 .t-container').each(function(){var t504__highestBox=0;$('.t504__col',this).each(function(){var t504__curcol=$(this);var t504__curcolchild=t504__curcol.find('.t504__col-wrapper');if(t504__curcol.height()<t504__curcolchild.height())t504__curcol.height(t504__curcolchild.height());if(t504__curcol.height()>t504__highestBox)t504__highestBox=t504__curcol.height()});if($(window).width()>=960){$('.t504__col',this).css('height',t504__highestBox)}else{$('.t504__col',this).css('height',"auto")}})};function t505__createPieChart(recid,data1,data2,data3,data4,sectorcolor,piebgcolor,bgcolor,blocksnumber,diagramwidth,diameter){if(diameter>300||diameter==""||diameter<100){if(diameter==""){var t505__radius=100;diameter=200}
if(diameter>300){var t505__radius=150;diameter=300}
if(diameter<100){var t505__radius=50;diameter=100}}else{var t505__radius=diameter/2}
if(diagramwidth==""){diagramwidth=10}
if(diagramwidth>t505__radius){diagramwidth=10}
if(diagramwidth<1){diagramwidth=1}
if(window.devicePixelRatio>=2){var t505__oldsize=diameter;t505__radius=t505__radius*2;diameter=diameter*2;diagramwidth=diagramwidth*2}
var t505__correction=+diagramwidth/2;var t505__dataarray=[data1,data2,data3,data4];for(var i=0;i<4;i++){if(t505__dataarray[i]!=""&&blocksnumber>i){var t505__canvas=document.querySelector('#rec'+recid+' .t505__pie'+(i+1));t505__canvas.setAttribute("width",diameter);t505__canvas.setAttribute("height",diameter);var t505__context=t505__canvas.getContext("2d");if(window.devicePixelRatio>=2){t505__canvas.style.width=t505__oldsize+"px";t505__canvas.style.height=t505__oldsize+"px"}
for(var j=0;j<2;j++){if(j==1&&t505__dataarray[i]==0){continue}
if(j==0){t505__context.strokeStyle=piebgcolor;var t505__angle=Math.PI*2;t505__context.lineWidth=diagramwidth-1}else{t505__context.strokeStyle=sectorcolor;var t505__angle=Math.PI*2*(t505__dataarray[i]/100);t505__context.lineWidth=diagramwidth}
t505__context.beginPath();t505__context.lineCap="round";t505__context.moveTo(diameter-t505__correction,t505__radius);t505__context.arc(t505__radius,t505__radius,t505__radius-t505__correction,0,t505__angle,!1);t505__context.stroke()}}}}
function t509_setHeight(recid){var t509__el=$("#rec"+recid);var t509__image=t509__el.find(".t509__blockimg");t509__image.each(function(){var t509__width=$(this).attr("data-image-width");var t509__height=$(this).attr("data-image-height");var t509__ratio=t509__height/t509__width;var t509__padding=t509__ratio*100;$(this).css("padding-bottom",t509__padding+"%")});if($(window).width()>960){var t509__textwr=t509__el.find(".t509__textwrapper");var t509__deskimg=t509__el.find(".t509__desktopimg");t509__textwr.each(function(){$(this).css("height",t509__deskimg.innerHeight())})}}
function t517_unifyHeights(recid){if($(window).width()>=960){$('#rec'+recid+' .t517 .t-container .t517__row').each(function(){var t517__highestBox=0;var t517__currow=$(this);$('.t517__col',this).each(function(){var t517__curcol=$(this);var t517__curcolinfo=t517__curcol.find('.t517__sectioninfowrapper');var t517__curcolpers=t517__curcol.find('.t517__personwrapper');var t517__curcolinnerheight=t517__curcolinfo.outerHeight()+t517__curcolpers.outerHeight();if(t517__curcolinnerheight>t517__highestBox){t517__highestBox=t517__curcolinnerheight}});$('.t517__col',this).css('height',t517__highestBox)})}};function t518_unifyColHeadersHeights(recid){if($(window).width()>=960){var t518__highestBox=0;$('#rec'+recid+' .t518 .t-container .t518__col-header').each(function(){var t518__curcolheader=$(this);var t518__curcolheaderinner=t518__curcolheader.find('.t518__col-header-inner');var t518__curcolinnerheight=t518__curcolheaderinner.outerHeight();if(t518__curcolinnerheight>t518__highestBox)t518__highestBox=t518__curcolinnerheight});$('#rec'+recid+' .t518__col-header').css('height',t518__highestBox)}};function t518_unifyColItems(recid,prefixwidth){if($(window).width()>=960&&prefixwidth!=400){var t518__colsitems=new Array();var t518__minitemsnumber=0;for(var i=0;i<3;i++){var t518__curcolitems=document.querySelectorAll('#rec'+recid+' .t518__col_'+(i+1)+' .t518__item');if(typeof t518__curcolitems!="undefined"&&t518__curcolitems!=null&&t518__curcolitems.length>0){t518__colsitems.push(t518__curcolitems)}
if(t518__curcolitems.length>0&&((t518__curcolitems.length<t518__minitemsnumber)||(t518__minitemsnumber==0)))
{t518__minitemsnumber=t518__curcolitems.length}}
for(var i=0;i<t518__minitemsnumber;i++){var t518__maxrowheight=0;for(var j=0;j<t518__colsitems.length;j++){var t518__curiteminfo=t518__colsitems[j][i].querySelector('.t518__sectioninfowrapper');var t518__curitempers=t518__colsitems[j][i].querySelector('.t518__personwrapper');var t518__curiteminnerheight=0;if(typeof t518__curiteminfo!="undefined"&&t518__curiteminfo!=null){t518__curiteminnerheight+=t518__curiteminfo.offsetHeight}
if(typeof t518__curitempers!="undefined"&&t518__curitempers!=null){t518__curiteminnerheight+=t518__curitempers.offsetHeight}
if(t518__curiteminnerheight>t518__maxrowheight){t518__maxrowheight=t518__curiteminnerheight}}
for(var j=0;j<t518__colsitems.length;j++){if(typeof t518__colsitems[j][i]!="undefined"&&t518__colsitems[j][i]!=null){t518__colsitems[j][i].style.height=t518__maxrowheight+"px"}
var t518__personwr=t518__colsitems[j][i].querySelector('.t518__personwrapper');if(typeof t518__personwr!="undefined"&&t518__personwr!=null){t518__personwr.style.position="absolute"}}}}};function t527_setHeight(recid){var t527__el=$("#rec"+recid),t527__image=t527__el.find(".t527__bgimg:first"),t527__width=t527__image.attr("data-image-width"),t527__height=t527__image.attr("data-image-height"),t527__ratio=t527__height/t527__width,t527__padding=t527__ratio*100;$("#rec"+recid+" .t527__bgimg").css("padding-bottom",t527__padding+"%")}
function t531_setHeight(recid){var t531__el=$("#rec"+recid),t531__image=t531__el.find(".t531__blockimg"),t531__width=t531__image.attr("data-image-width"),t531__height=t531__image.attr("data-image-height"),t531__ratio=t531__height/t531__width,t531__padding=t531__ratio*100;$("#rec"+recid+" .t531__blockimg").css("padding-bottom",t531__padding+"%");if($(window).width()>480){var t531__textwr=t531__el.find(".t531__textwrapper");var t531__deskimg=t531__el.find(".t531__imgwrapper");t531__textwr.each(function(){$(this).css("height",t531__deskimg.innerHeight())})}}
function t532__emulateMobileHover(recid){var el=$('#rec'+recid),cell=el.find('.t532__cell');cell.hover(function(){$(this).addClass("t532__cell_hover")},function(){$(this).removeClass("t532__cell_hover")})}
function t532_setHeight(recid){var t532__el=$("#rec"+recid),t532__image=t532__el.find(".t532__bg:first"),t532__wrapper=t532__el.find(".t532__table:first"),t532__width=t532__image.attr("data-image-width"),t532__height=t532__image.attr("data-image-height"),t532__ratio=t532__height/t532__width;$("#rec"+recid+" .t532__table").css("height",t532__wrapper.innerWidth()*t532__ratio)}
function t533_equalHeight(recid){var el=$('#rec'+recid);el.find('.t533').css('visibility','visible');el.find('.t533__textwrapper').css('height','auto');$('#rec'+recid+' .t533__row').each(function(){var highestBox=0;$('.t533__textwrapper',this).each(function(){if($(this).height()>highestBox)highestBox=$(this).height()});if($(window).width()>=960&&$(this).is(':visible')){$('.t533__textwrapper',this).css('height',highestBox)}else{$('.t533__textwrapper',this).css('height',"auto")}})};function t537_setHeight(recid){var t537__el=$("#rec"+recid),t537__image=t537__el.find(".t537__bgimg:first"),t537__width=t537__image.attr("data-image-width"),t537__height=t537__image.attr("data-image-height"),t537__ratio=t537__height/t537__width,t537__padding=t537__ratio*100;$("#rec"+recid+" .t537__bgimg").css("padding-bottom",t537__padding+"%")}
function t539_equalHeight(recid,blocks){if(blocks==''||parseInt(blocks)==0){return!1}
var t539__el=$('#rec'+recid),t539__cols=t539__el.find(".t539__textwrapper");t539__cols.css("height","auto");if($(window).width()<=480){t539__el.find('.t539').css('visibility','visible');return}
if($(window).width()<=960){var t539__perRow=2}
else{var t539__perRow=+blocks}
for(var i=0;i<t539__cols.length;i+=t539__perRow)
{var t539__maxHeight=0,t539__row=t539__cols.slice(i,i+t539__perRow);t539__row.each(function(){var t539__itemHeight=$(this).outerHeight();if(t539__itemHeight>t539__maxHeight){t539__maxHeight=t539__itemHeight}});t539__row.css("height",t539__maxHeight)}
t539__el.find('.t539').css('visibility','visible')};function t539_setHeight(recid){var t539__el=$("#rec"+recid),t539__image=t539__el.find(".t539__bgimg:first"),t539__width=t539__image.attr("data-image-width"),t539__height=t539__image.attr("data-image-height"),t539__ratio=t539__height/t539__width,t539__padding=t539__ratio*100;$("#rec"+recid+" .t539__bgimg").css("padding-bottom",t539__padding+"%")}
function t544_setHeight(recid){var el=$('#rec'+recid);var sizer=el.find('.t544__sizer');var height=sizer.height();var width=sizer.width();var ratio=width/height;var imgwrapper=el.find(".t544__blockimg, .t544__textwrapper");var imgwidth=imgwrapper.width();if(height!=$(window).height()){imgwrapper.css({'height':((imgwidth/ratio)+'px')})}}
function t545_setHeight(recid){var el=$('#rec'+recid);var t545_height=el.find('.t-container').attr("data-height");el.find('.t-container').each(function(){var highestBox=0;$('.t545__col',this).each(function(){if($(this).height()>highestBox){highestBox=$(this).height()}});if(t545_height>highestBox){highestBox=t545_height}
$('.t545__textwrapper',this).css('height',highestBox);$('.t545__blockimg',this).css('height',highestBox)})}
function t557_init(recid,snowtype){$('<img/>').attr('src','https://static.tildacdn.com/img/snowflakes_1.png').load(function(){$(this).remove()});$('<img/>').attr('src','https://static.tildacdn.com/img/snowflakes_2.png').load(function(){$(this).remove()});$('<img/>').attr('src','https://static.tildacdn.com/img/snowflakes_3.png').load(function(){$(this).remove();t557__addSnow(recid,snowtype)})}
function t557__addSnow(recid,snowtype){var el=$('#rec'+recid),t557_ids=el.find('.t557__snow-recid-holder').attr('data-snow-rec-ids').split(',');if(t557_ids!=""){t557_ids.forEach(function(rec_id,i,arr){var t557_zeroattr=$('#rec'+rec_id).attr('data-record-type');if(t557_zeroattr==396){var t557_wrappertype=" .t396__artboard"}else{var t557_wrappertype=" .t-cover"}
var t557_cover=document.querySelector('#rec'+rec_id+t557_wrappertype);$(t557_cover).find('.t796__shape-border').css('z-index',1);if(t557_cover!=null){var t557_snow=document.createElement('div');t557_snow.className=snowtype;t557_cover.appendChild(t557_snow)}})}else{t557_cover=$('.t-cover').first();var t557_snow=document.createElement('div');t557_snow.className=snowtype;t557_cover.append(t557_snow)}
$('.'+snowtype).animate({"opacity":"1"},1000,function(){})}
function t569_init(recid){var el=$('#rec'+recid);var line=el.find('.t569__line');var blocksnumber=el.find('.t569').attr('data-blocks-count');if(blocksnumber=='4'){var cirqlenumber=4}else{var cirqlenumber=8}
line.each(function(){var e=$(this).find('.t569__cirqle');for(i=0;i<cirqlenumber;i++){e.clone().insertAfter(e)}});line.css('max-width',el.find('.t569__col').width()-el.find('.t569__bgimg').outerWidth());$(window).on('resize',t_throttle(function(){line.css('max-width',el.find('.t569__col').width()-el.find('.t569__bgimg').outerWidth())}))}
function t582_init(recid){$(document).ready(function(){var t582__showMenu;$(window).bind('scroll',t_throttle(function(){clearTimeout(t582__showMenu);t582__showMenu=setTimeout(function(){t582_appearMenu(recid)},50)},200));$('.t582').removeClass('t582__beforeready');t582_appearMenu(recid)})}
function t582_appearMenu(recid){$(".t582").each(function(){var el=$(this),appearoffset=el.attr("data-appearoffset"),window_width=$(window).width(),window_scrollTop=$(window).scrollTop(),window_height=$(window).height();if(window_width<=980&&appearoffset!=""){appearoffset="150"}
if(appearoffset==""){appearoffset="0"}
if(appearoffset.indexOf('vh')>-1){appearoffset=Math.floor((window_height*(parseInt(appearoffset)/100)))}
appearoffset=parseInt(appearoffset,10);if(window_scrollTop>=appearoffset&&window_scrollTop+window_height+70<=$(document).height()){if(el.css('visibility')=='hidden'){el.finish();el.css("bottom","-100px");el.css("visibility","visible");el.animate({"opacity":"1","bottom":"0"},400,function(){})}}else{el.stop();el.css("visibility","hidden");el.css("opacity","0")}})}
function t585_init(recid){var el=$('#rec'+recid);var toggler=el.find(".t585__header");var accordion=el.find('.t585__accordion');if(accordion){accordion=accordion.attr('data-accordion')}else{accordion="false"}
var scrolltoExpand=el.find('.t585__accordion').attr('data-scroll-to-expanded');toggler.click(function(){if(accordion==="true"){toggler.not(this).removeClass("t585__opened").next().slideUp()}
$(this).toggleClass("t585__opened");var _this=$(this);$(this).next().slideToggle(function(){if(scrolltoExpand==="true"){$('html, body').animate({scrollTop:$(_this).offset().top||el.offset().top},300)}});if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
function t592_init(recid){var element=$('#rec'+recid).find('.t592__descr');var highestBox=0;element.css('height','');element.each(function(){if($(this).height()>highestBox)highestBox=$(this).height()});if($(window).width()>=960){element.css('height',highestBox)}else{element.css('height','')}};function t598_init(recid){var el=$('#rec'+recid);if(el.find('.t598__title').length){t598_equalHeight(el.find('.t598__title'))}
if(el.find('.t598__descr').length){t598_equalHeight(el.find('.t598__descr'))}
if(el.find('.t598__price').length){t598_equalHeight(el.find('.t598__price'))}
if(el.find('.t598__imgwrapper').length){t598_equalHeight(el.find('.t598__imgwrapper'));$(window).on('load',function(){t598_equalHeight(el.find('.t598__imgwrapper'))})}};function t598_equalHeight(element){var highestBox=0;element.css('height','');element.each(function(){if($(this).height()>highestBox)highestBox=$(this).height()});if($(window).width()>=960){element.css('height',highestBox)}else{element.css('height','')}}
function t599_init(recid){var el=$('#rec'+recid);if(el.find('.t599__title').length){t599_equalHeight(el.find('.t599__title'))}
if(el.find('.t599__descr').length){t599_equalHeight(el.find('.t599__descr'))}
if(el.find('.t599__price').length){t599_equalHeight(el.find('.t599__price'))}
if(el.find('.t599__subtitle').length){t599_equalHeight(el.find('.t599__subtitle'))}};function t599_equalHeight(element){var highestBox=0;element.css('height','');element.each(function(){if($(this).height()>highestBox)highestBox=$(this).height()});if($(window).width()>=960){element.css('height',highestBox)}else{element.css('height','')}}
function t604_init(recid){var el=$('#rec'+recid);t604_imageHeight(recid);t604_arrowWidth(recid);t604_show(recid);t604_hide(recid);$(window).bind('resize',t_throttle(function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t604_arrowWidth(recid)}));el.find('.t604').bind('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t604_arrowWidth(recid)})}
function t604_show(recid){var el=$("#rec"+recid),play=el.find('.t604__play');play.click(function(){if($(this).attr('data-slider-video-type')=='youtube'){var url=$(this).attr('data-slider-video-url');$(this).next().html("<iframe class=\"t604__iframe\" width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/"+url+"?autoplay=1\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>")}
if($(this).attr('data-slider-video-type')=='vimeo'){var url=$(this).attr('data-slider-video-url');$(this).next().html("<iframe class=\"t604__iframe\" width=\"100%\" height=\"100%\" src=\"https://player.vimeo.com/video/"+url+"?autoplay=1\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>")}
$(this).next().css('z-index','3')})}
function t604_hide(recid){var el=$("#rec"+recid),body=el.find('.t604__frame');el.on('updateSlider',function(){body.html('').css('z-index','')})}
function t604_imageHeight(recid){var el=$("#rec"+recid);var image=el.find(".t604__separator");image.each(function(){var width=$(this).attr("data-slider-image-width");var height=$(this).attr("data-slider-image-height");var ratio=height/width;var padding=ratio*100;$(this).css("padding-bottom",padding+"%")})}
function t604_arrowWidth(recid){var el=$("#rec"+recid),arrow=el.find('.t-slds__arrow_wrapper'),slideWidth=el.find('.t-slds__wrapper').width(),windowWidth=$(window).width(),arrowWidth=windowWidth-slideWidth;if(windowWidth>960){arrow.css('width',arrowWidth/2)}else{arrow.css('width','')}}
function t607_init(recid){t607_checkAnchorLinks(recid)}
function t607_checkAnchorLinks(recid){if($(window).width()>=960){var t607_navLinks=$("#rec"+recid+" .t607__list_item a:not(.tooltipstered)[href*='#']");if(t607_navLinks.length>0){t607_catchScroll(t607_navLinks)}}}
function t607_catchScroll(t607_navLinks){var t607_clickedSectionId=null,t607_sections=new Array(),t607_sectionIdTonavigationLink={},t607_interval=100,t607_lastCall,t607_timeoutId;t607_navLinks=$(t607_navLinks.get().reverse());t607_navLinks.each(function(){var t607_cursection=t607_getSectionByHref($(this));if(typeof t607_cursection.attr("id")!="undefined"){t607_sections.push(t607_cursection)}
t607_sectionIdTonavigationLink[t607_cursection.attr("id")]=$(this)});t607_highlightNavLinks(t607_navLinks,t607_sections,t607_sectionIdTonavigationLink,t607_clickedSectionId);setTimeout(function(){t607_highlightNavLinks(t607_navLinks,t607_sections,t607_sectionIdTonavigationLink,t607_clickedSectionId)},1000);$(document).keydown(function(e){var t607_direction="";switch(e.which){case 38:t607_direction="top";break;case 40:t607_direction="bottom";break;case 33:t607_direction="top";break;case 34:t607_direction="bottom";break;default:return}
if(t607_direction!=""){var t607_curActiveSectionId=t607_getSectionByHref(t607_navLinks.filter(".t-active")).attr("id"),t607_newActiveSectionIndex=$.map(t607_sections,function(obj,index){if(obj.attr("id")==t607_curActiveSectionId&&t607_direction=="top"){return index+1}
if(obj.attr("id")==t607_curActiveSectionId&&t607_direction=="bottom"){return index-1}});var t607_newActiveSection=t607_sections[t607_newActiveSectionIndex[0]];if(typeof t607_newActiveSection=="undefined"){return}
t607_navLinks.removeClass('t-active');var $root=$('html, body'),t607_offsetTop=$(".t607").attr("data-offset-top");t607_sectionIdTonavigationLink[t607_newActiveSection.attr("id")].addClass('t-active');t607_clickedSectionId=t607_newActiveSection.attr("id");if(typeof t607_offsetTop!="undefined"){$root.animate({scrollTop:t607_newActiveSection.offset().top-t607_offsetTop},500)}
else{$root.animate({scrollTop:t607_newActiveSection.offset().top},500)}}});t607_navLinks.click(function(){if(!$(this).hasClass("tooltipstered")){t607_navLinks.removeClass('t-active');var t607_clickedSection=t607_getSectionByHref($(this)),$root=$('html, body'),t607_offsetTop=$(".t607").attr("data-offset-top");if(!$(this).hasClass("t-active")){t607_clickedSectionId=t607_clickedSection.attr("id")}
t607_sectionIdTonavigationLink[t607_clickedSection.attr("id")].addClass('t-active');if(typeof t607_offsetTop!="undefined"){$root.animate({scrollTop:t607_clickedSection.offset().top-t607_offsetTop},500)}
else{$root.animate({scrollTop:t607_clickedSection.offset().top},500)}
return!1}});$(window).scroll(function(){var t607_now=new Date().getTime();if(t607_lastCall&&t607_now<(t607_lastCall+t607_interval)){clearTimeout(t607_timeoutId);t607_timeoutId=setTimeout(function(){t607_lastCall=t607_now;t607_clickedSectionId=t607_highlightNavLinks(t607_navLinks,t607_sections,t607_sectionIdTonavigationLink,t607_clickedSectionId)},t607_interval-(t607_now-t607_lastCall))}else{t607_lastCall=t607_now;t607_clickedSectionId=t607_highlightNavLinks(t607_navLinks,t607_sections,t607_sectionIdTonavigationLink,t607_clickedSectionId)}})}
function t607_getSectionByHref(curlink){var t651_curLinkValue=curlink.attr("href").replace(/\s+/g,'');if(curlink.is('[href*="#rec"]')){return $(".r[id='"+t651_curLinkValue.substring(1)+"']")}else{return $(".r[data-record-type='215']").has("a[name='"+t651_curLinkValue.substring(1)+"']")}}
function t607_highlightNavLinks(t607_navLinks,t607_sections,t607_sectionIdTonavigationLink,t607_clickedSectionId){var t607_scrollPosition=$(window).scrollTop(),t607_valueToReturn=t607_clickedSectionId;if(typeof t607_sections[t607_sections.length-2]!="undefined"&&t607_sections[t607_sections.length-2].offset().top<=$(window).height()/2&&t607_scrollPosition==0){t607_navLinks.removeClass('t-active');t607_navLink=t607_sectionIdTonavigationLink[t607_sections[t607_sections.length-1].attr("id")];t607_navLink.addClass('t-active');return null}
$(t607_sections).each(function(e){var t607_curSection=$(this),t607_sectionTop=t607_curSection.offset().top,t607_id=t607_curSection.attr('id'),t607_navLink=t607_sectionIdTonavigationLink[t607_id];if((t607_scrollPosition+$(window).height()/2)>=t607_sectionTop||(t607_sections[0].attr("id")==t607_id&&$(window).scrollTop()>=$(document).height()-$(window).height())){if(t607_clickedSectionId==null&&!t607_navLink.hasClass('t-active')){t607_navLinks.removeClass('t-active');t607_navLink.addClass('t-active');t607_valueToReturn=null}else{if(t607_clickedSectionId!=null&&t607_id==t607_clickedSectionId){t607_valueToReturn=null}}
return!1}});return t607_valueToReturn}
function t615_init(recid){var el=$('#rec'+recid);if(el.find('.t615__title').length){t615_equalHeight(el.find('.t615__title'))}
if(el.find('.t615__descr').length){t615_equalHeight(el.find('.t615__descr'))}
if(el.find('.t615__price').length){t615_equalHeight(el.find('.t615__price'))}
if(el.find('.t615__imgwrapper').length){t615_equalHeight(el.find('.t615__imgwrapper'));$(window).on('load',function(){t615_equalHeight(el.find('.t615__imgwrapper'))})}};function t615_equalHeight(element){var highestBox=0;element.css('height','');element.each(function(){if($(this).height()>highestBox)highestBox=$(this).height()});if($(window).width()>=960){element.css('height',highestBox)}else{element.css('height','')}}
function t635_init(recid){var el=$("#rec"+recid);var data=el.find(".t635__textholder");var animRecId=data.attr("data-recid");var screenmin=parseInt($("#rec"+animRecId).attr("data-screen-min"),10);var screenmax=parseInt($("#rec"+animRecId).attr("data-screen-max"),10);if(isNaN(screenmax)&&isNaN(screenmin)){t635_startType(recid)}else if(!isNaN(screenmax)&&!isNaN(screenmin)){if($(window).width()>=screenmin&&$(window).width()<=screenmax){t635_startType(recid)}}else if(!isNaN(screenmax)){if($(window).width()<=screenmax){t635_startType(recid)}}else if(!isNaN(screenmin)){if($(window).width()>=screenmin){t635_startType(recid)}}}
function t635_startType(recid){var t635_el=$('#rec'+recid),t635_data=t635_el.find(".t635__textholder"),t635_animRecId=t635_data.attr("data-recid"),t635_animText=t635_findAnimElem(t635_animRecId),t635_phrasesList=[],t635_phrase1=t635_data.attr("data-text1"),t635_phrase2=t635_data.attr("data-text2"),t635_phrase3=t635_data.attr("data-text3"),t635_phrase4=t635_data.attr("data-text4"),t635_phrase5=t635_data.attr("data-text5"),t635_speed=t635_data.attr("data-speed"),t635_loop=t635_data.attr("data-loop"),t635_backspaceDelay=t635_data.attr("data-backspacing-delay");if(typeof t635_animText=="undefined"){return}
if(typeof t635_phrase1!="undefined"){t635_phrasesList.push(t635_phrase1.slice(0,80))}
if(typeof t635_phrase2!="undefined"){t635_phrasesList.push(t635_phrase2.slice(0,80))}
if(typeof t635_phrase3!="undefined"){t635_phrasesList.push(t635_phrase3.slice(0,80))}
if(typeof t635_phrase4!="undefined"){t635_phrasesList.push(t635_phrase4.slice(0,80))}
if(typeof t635_phrase5!="undefined"){t635_phrasesList.push(t635_phrase5.slice(0,80))}
if(t635_animText.length!==0&&t635_phrasesList.length!==0){var t635_animTextHtml=t635_animText.html(),t635_animTextSplitted=t635_animTextHtml.split("|"),t635_curWin=$(window);t635_animText.html(t635_animTextSplitted[0]+"<span class=\"t635__typing-text\"></span>"+t635_animTextSplitted[1]);t635_updateAnimTextLimits(t635_animRecId);t635_curWin.bind('resize',t_throttle(function(){t635_updateAnimTextLimits(t635_animRecId)},200));var intervalUpdate=setInterval(function(){t635_updateAnimTextLimits(t635_animRecId)},5000);var t635_animatedText=$("#rec"+t635_animRecId+" .t635__typing-text"),t635_animTextTop=t635_animatedText.attr("data-top-limit"),t635_animTextBottom=t635_animatedText.attr("data-bottom-limit"),t635_winTop=t635_curWin.scrollTop(),t635_winBottom=t635_winTop+t635_curWin.height();t635_animateText(t635_animRecId,t635_phrasesList,t635_speed,t635_loop,t635_backspaceDelay);if(t635_animTextBottom<t635_winTop||t635_animTextTop>t635_winBottom){$("#rec"+t635_animRecId+" .t635__typing-text").data('typed').pauseTyping();$("#rec"+t635_animRecId+" .t635__typing-text").html("")}
t635_curWin.bind('scroll',t_throttle(function(){t635_animTextTop=t635_animatedText.attr("data-top-limit");t635_animTextBottom=t635_animatedText.attr("data-bottom-limit");t635_winTop=t635_curWin.scrollTop();t635_winBottom=t635_winTop+t635_curWin.height();if(t635_animTextBottom<t635_winTop||t635_animTextTop>t635_winBottom){$("#rec"+t635_animRecId+" .t635__typing-text").data('typed').pauseTyping();$("#rec"+t635_animRecId+" .t635__typing-text").html("")}else{$("#rec"+t635_animRecId+" .t635__typing-text").data('typed').continueTyping()}},200))}}
function t635_findAnimElem(animRecId){var animRec=$("#rec"+animRecId);var animH1=animRec.find("h1:contains(\'|\')").last();var animH2=animRec.find("h2:contains(\'|\')").last();var animH3=animRec.find("h3:contains(\'|\')").last();var animDiv=animRec.find("div:contains(\'|\')").last();if(typeof animH1!="undefined"&&animH1.length>0){return animH1}
if(typeof animH2!="undefined"&&animH2.length>0){return animH2}
if(typeof animH3!="undefined"&&animH3.length>0){return animH3}
if(typeof animDiv!="undefined"&&animDiv.length>0){return animDiv}}
function t635_updateAnimTextLimits(t635_animRecId){var t635_animatedBlock=$("#rec"+t635_animRecId),t635_animatedText=t635_animatedBlock.find(".t635__typing-text");if(typeof t635_animatedText.offset()!='undefined'){t635_animatedText.attr("data-top-limit",t635_animatedText.offset().top);t635_animatedText.attr("data-bottom-limit",(t635_animatedBlock.offset().top+t635_animatedBlock.height()))}}
function t635_animateText(t635_animRecId,t635_phrasesList,t635_speed,t635_loop,t635_backspaceDelay){if(typeof t635_speed=="undefined"){t635_speed=40}
if(typeof t635_backspaceDelay=="undefined"){t635_backspaceDelay=800}
if(typeof t635_loop=="undefined"){t635_loop=!0}else{t635_loop=!1}
$("#rec"+t635_animRecId+" .t635__typing-text").typed({strings:t635_phrasesList,typeSpeed:t635_speed*1,startDelay:600,backSpeed:10,backDelay:t635_backspaceDelay*1,loop:t635_loop,contentType:'text'})}
function t650_unifyHeights(recid){if($(window).width()>=960){$('#rec'+recid+' .t650 .t-container .t650__row').each(function(){var t650_highestBox=0,t650_currow=$(this);$('.t650__inner-col',this).each(function(){var t650_curCol=$(this),t650_curText=t650_curCol.find(".t650__text"),t650_curBtn=t650_curCol.find(".t650__btn-container"),t650_curColHeight=t650_curText.outerHeight()+t650_curBtn.outerHeight();if(t650_curColHeight>t650_highestBox){t650_highestBox=t650_curColHeight}});$('.t650__inner-col',this).css('height',t650_highestBox)})}else{$('.t650__inner-col').css('height','auto')}}
function t654_showPanel(recid){var el=$('#rec'+recid),t654_block=el.find('.t654'),t654_closeBtn=el.find('.t654__icon-close'),t654_storageItem=t654_block.attr('data-storage-item'),t654_lastOpen=localStorage.getItem(t654_storageItem),t654_delta=t654_block.attr('data-storage-delta')*86400,t654_today=Math.floor(Date.now()/1000),t654_curDelta=t654_today-t654_lastOpen;if(t654_lastOpen==null||t654_curDelta>=t654_delta){t654_block.removeClass('t654_closed')}
t654_closeBtn.click(function(e){t654_block.addClass('t654_closed');if(t654_delta){localStorage.setItem(t654_storageItem,Math.floor(Date.now()/1000))}
e.preventDefault()});var window_width=$(window).width();if(window_width>980){$(window).bind('scroll',t_throttle(function(){if(t654_block.hasClass('t654_bottom')&&$('#tildacopy').length&&(window.innerHeight+window.scrollY)>=document.body.offsetHeight-70){t654_block.css('visibility','hidden')}else{var appearoffset=t654_block.attr('data-appearoffset');if(appearoffset===''){t654_block.css('visibility','visible')}}}))}}
function t654_setBg(recid){var el=$('#rec'+recid);var window_width=$(window).width();if(window_width>980){el.find(".t654").each(function(){var el=$(this);if(el.attr('data-bgcolor-setbyscript')=="yes"){var bgcolor=el.attr("data-bgcolor-rgba");el.css("background-color",bgcolor)}})}else{el.find(".t654").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-hex");el.css("background-color",bgcolor);el.attr("data-bgcolor-setbyscript","yes")})}}
function t654_appearMenu(recid){var el=$('#rec'+recid);var window_width=$(window).width();if(window_width>980){el.find(".t654").each(function(){var el=$(this);var appearoffset=el.attr("data-appearoffset");if(appearoffset!=""){if(appearoffset.indexOf('vh')>-1){appearoffset=Math.floor((window.innerHeight*(parseInt(appearoffset)/100)))}
appearoffset=parseInt(appearoffset,10);if($(window).scrollTop()>=appearoffset){if(el.css('visibility')=='hidden'){el.finish();if(el.hasClass('t654_top')){el.css("top","-50px");el.css("visibility","visible");el.animate({"opacity":"1","top":"0px"},200)}else{el.css("bottom","-50px");el.css("visibility","visible");el.animate({"opacity":"1","bottom":"0px"},200)}}}else{el.stop();el.css("visibility","hidden")}}})}}
function t654_changebgopacitymenu(recid){var el=$('#rec'+recid);var window_width=$(window).width();if(window_width>980){el.find(".t654").each(function(){var el=$(this);var bgcolor=el.attr("data-bgcolor-rgba");var bgcolor_afterscroll=el.attr("data-bgcolor-rgba-afterscroll");var bgopacityone=el.attr("data-bgopacity");var bgopacitytwo=el.attr("data-bgopacity-two");var menushadow=el.attr("data-menushadow");if(menushadow=='100'){var menushadowvalue=menushadow}else{var menushadowvalue='0.'+menushadow}
if($(window).scrollTop()>20){el.css("background-color",bgcolor_afterscroll);if(bgopacitytwo=='0'||menushadow==' '){el.css("box-shadow","none")}else{el.css("box-shadow","0px 1px 3px rgba(0,0,0,"+menushadowvalue+")")}}else{el.css("background-color",bgcolor);if(bgopacityone=='0.0'||menushadow==' '){el.css("box-shadow","none")}else{el.css("box-shadow","0px 1px 3px rgba(0,0,0,"+menushadowvalue+")")}}})}}
function t657_init(recid){var t657_el=$('#rec'+recid),t657_block=t657_el.find('.t657'),t657_closeBtn=t657_el.find('.t657__btn'),t657_closeIcon=t657_el.find('.t657__icon-close'),t657_storageItem=t657_block.attr('data-storage-item'),t657_lastOpen=localStorage.getItem(t657_storageItem);if(t657_lastOpen==null){t657_block.removeClass('t657_closed')}
t657_closeBtn.add(t657_closeIcon).click(function(e){t657_block.addClass('t657_closed');localStorage.setItem(t657_storageItem,Math.floor(Date.now()/1000));e.preventDefault()})}
function t668_init(recid){var el=$('#rec'+recid);var toggler=el.find(".t668__header");var accordion=el.find('.t668__accordion');if(accordion){accordion=accordion.attr('data-accordion')}else{accordion="false"}
toggler.click(function(){if(accordion==="true"){toggler.not(this).removeClass("t668__opened").next().slideUp()}
$(this).toggleClass("t668__opened");$(this).next().slideToggle();if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
function t670_init(recid){t670_imageHeight(recid);t670_show(recid);t670_hide(recid)}
function t670_show(recid){var el=$('#rec'+recid);var play=el.find('.t670__play');play.click(function(){if($(this).attr('data-slider-video-type')=='youtube'){var url=$(this).attr('data-slider-video-url');$(this).next().html("<iframe class=\"t670__iframe\" width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/"+url+"?autoplay=1\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>")}
if($(this).attr('data-slider-video-type')=='vimeo'){var url=$(this).attr('data-slider-video-url');$(this).next().html("<iframe class=\"t670__iframe\" width=\"100%\" height=\"100%\" src=\"https://player.vimeo.com/video/"+url+"\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe>")}
$(this).next().css('z-index','3')})}
function t670_hide(recid){var el=$('#rec'+recid);var body=el.find('.t670__frame');el.on('updateSlider',function(){body.html('').css('z-index','')})}
function t670_imageHeight(recid){var el=$('#rec'+recid);var image=el.find('.t670__separator');image.each(function(){var width=$(this).attr('data-slider-image-width');var height=$(this).attr('data-slider-image-height');var ratio=height/width;var padding=ratio*100;$(this).css('padding-bottom',padding+'%')})}
function t674_init(recid){var el=$("#rec"+recid);el.find('.t674__img-holder').on('load',function(){var delay=0;if($('#allrecords').attr('data-blocks-animationoff')!=='yes'){delay=600}
setTimeout(function(){$('body').addClass('t674__body_with-bg')},delay)}).each(function(){if(this.complete)$(this).trigger('load')})}
function t678_onSuccess(t678_form){var t678_inputsWrapper=t678_form.find('.t-form__inputsbox');var t678_inputsHeight=t678_inputsWrapper.height();var t678_inputsOffset=t678_inputsWrapper.offset().top;var t678_inputsBottom=t678_inputsHeight+t678_inputsOffset;var t678_targetOffset=t678_form.find('.t-form__successbox').offset().top;if($(window).width()>960){var t678_target=t678_targetOffset-200}else{var t678_target=t678_targetOffset-100}
if(t678_targetOffset>$(window).scrollTop()||($(document).height()-t678_inputsBottom)<($(window).height()-100)){t678_inputsWrapper.addClass('t678__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:t678_target},400);setTimeout(function(){t678_inputsWrapper.addClass('t678__inputsbox_hidden')},400)}
var successurl=t678_form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t690_onSuccess(t690_form){var t690_inputsWrapper=t690_form.find('.t-form__inputsbox');var t690_inputsHeight=t690_inputsWrapper.height();var t690_inputsOffset=t690_inputsWrapper.offset().top;var t690_inputsBottom=t690_inputsHeight+t690_inputsOffset;var t690_targetOffset=t690_form.find('.t-form__successbox').offset().top;if($(window).width()>960){var t690_target=t690_targetOffset-200}else{var t690_target=t690_targetOffset-100}
if(t690_targetOffset>$(window).scrollTop()||($(document).height()-t690_inputsBottom)<($(window).height()-100)){t690_inputsWrapper.addClass('t690__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:t690_target},400);setTimeout(function(){t690_inputsWrapper.addClass('t690__inputsbox_hidden')},400)}
var successurl=t690_form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t696_onSuccess(t696_form){var t696_inputsWrapper=t696_form.find('.t-form__inputsbox');var t696_inputsHeight=t696_inputsWrapper.height();var t696_inputsOffset=t696_inputsWrapper.offset().top;var t696_inputsBottom=t696_inputsHeight+t696_inputsOffset;var t696_targetOffset=t696_form.find('.t-form__successbox').offset().top;if($(window).width()>960){var t696_target=t696_targetOffset-200}else{var t696_target=t696_targetOffset-100}
if(t696_targetOffset>$(window).scrollTop()||($(document).height()-t696_inputsBottom)<($(window).height()-100)){t696_inputsWrapper.addClass('t696__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:t696_target},400);setTimeout(function(){t696_inputsWrapper.addClass('t696__inputsbox_hidden')},400)}
var successurl=t696_form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t702_initPopup(recid){$('#rec'+recid).attr('data-animationappear','off');$('#rec'+recid).css('opacity','1');var el=$('#rec'+recid).find('.t-popup'),hook=el.attr('data-tooltip-hook'),analitics=el.attr('data-track-popup');el.bind('scroll',t_throttle(function(){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}));if(hook!==''){$('.r').on('click','a[href="'+hook+'"]',function(e){t702_showPopup(recid);t702_resizePopup(recid);e.preventDefault();if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}
if(analitics>''){var virtTitle=hook;if(virtTitle.substring(0,7)=='#popup:'){virtTitle=virtTitle.substring(7)}
Tilda.sendEventToStatistics(analitics,virtTitle)}})}}
function t702_onSuccess(t702_form){var t702_inputsWrapper=t702_form.find('.t-form__inputsbox');var t702_inputsHeight=t702_inputsWrapper.height();var t702_inputsOffset=t702_inputsWrapper.offset().top;var t702_inputsBottom=t702_inputsHeight+t702_inputsOffset;var t702_targetOffset=t702_form.find('.t-form__successbox').offset().top;if($(window).width()>960){var t702_target=t702_targetOffset-200}else{var t702_target=t702_targetOffset-100}
if(t702_targetOffset>$(window).scrollTop()||($(document).height()-t702_inputsBottom)<($(window).height()-100)){t702_inputsWrapper.addClass('t702__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:t702_target},400);setTimeout(function(){t702_inputsWrapper.addClass('t702__inputsbox_hidden')},400)}
var successurl=t702_form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t702_lockScroll(){var body=$("body");if(!body.hasClass('t-body_scroll-locked')){var bodyScrollTop=(typeof window.pageYOffset!=='undefined')?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;body.addClass('t-body_scroll-locked');body.css("top","-"+bodyScrollTop+"px");body.attr("data-popup-scrolltop",bodyScrollTop)}}
function t702_unlockScroll(){var body=$("body");if(body.hasClass('t-body_scroll-locked')){var bodyScrollTop=$("body").attr("data-popup-scrolltop");body.removeClass('t-body_scroll-locked');body.css("top","");body.removeAttr("data-popup-scrolltop")
window.scrollTo(0,bodyScrollTop)}}
function t702_showPopup(recid){var el=$('#rec'+recid),popup=el.find('.t-popup');popup.css('display','block');el.find('.t-range').trigger('popupOpened');if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}
setTimeout(function(){popup.find('.t-popup__container').addClass('t-popup__container-animated');popup.addClass('t-popup_show')},50);$('body').addClass('t-body_popupshowed t702__body_popupshowed');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!window.MSStream){setTimeout(function(){t702_lockScroll()},500)}
el.find('.t-popup').mousedown(function(e){var windowWidth=$(window).width();var maxScrollBarWidth=17;var windowWithoutScrollBar=windowWidth-maxScrollBarWidth;if(e.clientX>windowWithoutScrollBar){return}
if(e.target==this){t702_closePopup(recid)}});el.find('.t-popup__close').click(function(e){t702_closePopup(recid)});el.find('.t-submit[href*="#"]').click(function(e){if($('body').hasClass('t-body_scroll-locked')){$('body').removeClass('t-body_scroll-locked')}});el.find('a[href*="#"]').click(function(e){var url=$(this).attr('href');if(!url||url.substring(0,7)!='#price:'){t702_closePopup(recid);if(!url||url.substring(0,7)=='#popup:'){setTimeout(function(){$('body').addClass('t-body_popupshowed')},300)}}});$(document).keydown(function(e){if(e.keyCode==27){t702_closePopup(recid)}})}
function t702_closePopup(recid){$('body').removeClass('t-body_popupshowed t702__body_popupshowed');$('#rec'+recid+' .t-popup').removeClass('t-popup_show');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!window.MSStream){t702_unlockScroll()}
setTimeout(function(){$('.t-popup').not('.t-popup_show').css('display','none')},300)}
function t702_resizePopup(recid){var el=$("#rec"+recid),div=el.find(".t-popup__container").height(),win=$(window).height()-120,popup=el.find(".t-popup__container");if(div>win){popup.addClass('t-popup__container-static')}else{popup.removeClass('t-popup__container-static')}}
function t702_sendPopupEventToStatistics(popupname){var virtPage='/tilda/popup/';var virtTitle='Popup: ';if(popupname.substring(0,7)=='#popup:'){popupname=popupname.substring(7)}
virtPage+=popupname;virtTitle+=popupname;if(window.Tilda&&typeof Tilda.sendEventToStatistics=='function'){Tilda.sendEventToStatistics(virtPage,virtTitle,'',0)}else{if(ga){if(window.mainTracker!='tilda'){ga('send',{'hitType':'pageview','page':virtPage,'title':virtTitle})}}
if(window.mainMetrika>''&&window[window.mainMetrika]){window[window.mainMetrika].hit(virtPage,{title:virtTitle,referer:window.location.href})}}}
function t716_onSuccess(t716_form){var t716_inputsWrapper=t716_form.find('.t-form__inputsbox');var t716_inputsHeight=t716_inputsWrapper.height();var t716_inputsOffset=t716_inputsWrapper.offset().top;var t716_inputsBottom=t716_inputsHeight+t716_inputsOffset;var t716_targetOffset=t716_form.find('.t-form__successbox').offset().top;if($(window).width()>960){var t716_target=t716_targetOffset-200}else{var t716_target=t716_targetOffset-100}
if(t716_targetOffset>$(window).scrollTop()||($(document).height()-t716_inputsBottom)<($(window).height()-100)){t716_inputsWrapper.addClass('t716__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:t716_target},400);setTimeout(function(){t716_inputsWrapper.addClass('t716__inputsbox_hidden')},400)}
var successurl=t716_form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t716_fixcontentheight(id){var el=$("#rec"+id);var hcover=el.find(".t-cover").height();var hcontent=el.find("div[data-hook-content]").outerHeight();if(hcontent>300&&hcover<hcontent){var hcontent=hcontent+120;if(hcontent>1000){hcontent+=100}
console.log('auto correct cover height: '+hcontent);el.find(".t-cover").height(hcontent);el.find(".t-cover__filter").height(hcontent);el.find(".t-cover__carrier").height(hcontent);el.find(".t-cover__wrapper").height(hcontent);el.find(".t-cover__container").height(hcontent);if($isMobile==!1){setTimeout(function(){var divvideo=el.find(".t-cover__carrier");if(divvideo.find('iframe').length>0){console.log('correct video from cover_fixcontentheight');setWidthHeightYoutubeVideo(divvideo,hcontent+'px')}},2000)}}}
function t722_onSuccess(t722_form){var t722_inputsWrapper=t722_form.find('.t-form__inputsbox');var t722_inputsHeight=t722_inputsWrapper.height();var t722_inputsOffset=t722_inputsWrapper.offset().top;var t722_inputsBottom=t722_inputsHeight+t722_inputsOffset;var t722_targetOffset=t722_form.find('.t-form__successbox').offset().top;if($(window).width()>960){var t722_target=t722_targetOffset-200}else{var t722_target=t722_targetOffset-100}
if(t722_targetOffset>$(window).scrollTop()||($(document).height()-t722_inputsBottom)<($(window).height()-100)){t722_inputsWrapper.addClass('t722__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:t722_target},400);setTimeout(function(){t722_inputsWrapper.addClass('t722__inputsbox_hidden')},400)}
var successurl=t722_form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t722_fixcontentheight(id){var el=$("#rec"+id);var hcover=el.find(".t-cover").height();var hcontent=el.find("div[data-hook-content]").outerHeight();if(hcontent>300&&hcover<hcontent){var hcontent=hcontent+120;if(hcontent>1000){hcontent+=100}
console.log('auto correct cover height: '+hcontent);el.find(".t-cover").height(hcontent);el.find(".t-cover__filter").height(hcontent);el.find(".t-cover__carrier").height(hcontent);el.find(".t-cover__wrapper").height(hcontent);el.find(".t-cover__container").height(hcontent);if($isMobile==!1){setTimeout(function(){var divvideo=el.find(".t-cover__carrier");if(divvideo.find('iframe').length>0){console.log('correct video from cover_fixcontentheight');setWidthHeightYoutubeVideo(divvideo,hcontent+'px')}},2000)}}}
function t734_init(recid){var rec=$('#rec'+recid);if($('body').find('.t830').length>0){if(rec.find('.t-slds__items-wrapper').hasClass('t-slds_animated-none')){t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)})}else{setTimeout(function(){t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)})},500)}}else{t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)})}
rec.find('.t734').bind('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)})})}
function t746_initPopup(recid){$('#rec'+recid).attr('data-animationappear','off');$('#rec'+recid).css('opacity','1');var el=$('#rec'+recid);var popup=el.find('.t-popup');var iframeBody=el.find('.t746__frame');var hook=popup.attr('data-tooltip-hook');var analitics=popup.attr('data-track-popup');t746_imageHeight(recid);t746_arrowWidth(recid);t746_show(recid);t746_hide(recid);$(window).bind('resize',t_throttle(function(){t746_arrowWidth(recid)},200));$(window).on("orientationchange",function(event){setTimeout(function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)})},500)});if(hook!==''){t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)});popup.click(function(e){if(e.target==this){iframeBody.html('').css('z-index','');t746_closePopup(recid)}});el.find('.t-popup__close').click(function(e){iframeBody.html('').css('z-index','');t746_closePopup(recid)});$(document).keydown(function(e){if(e.keyCode==27){t746_closePopup(recid);iframeBody.html('').css('z-index','')}});$('.r').on('click','a[href="'+hook+'"]',function(e){t746_showPopup(recid);t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t746_arrowWidth(recid);t746_resizePopup(recid);e.preventDefault();if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}
if(analitics>''){var virtTitle=hook;if(virtTitle.substring(0,7)=='#popup:'){virtTitle=virtTitle.substring(7)}
Tilda.sendEventToStatistics(analitics,virtTitle)}})}}
function t746_showPopup(recid){var el=$('#rec'+recid);var popup=el.find('.t-popup');var iframeBody=el.find('.t746__frame');popup.css('display','block');setTimeout(function(){popup.find('.t-popup__container').addClass('t-popup__container-animated');popup.addClass('t-popup_show')},50);$('body').addClass('t-body_popupshowed')}
function t746_closePopup(recid){$('body').removeClass('t-body_popupshowed');$('#rec'+recid+' .t-popup').removeClass('t-popup_show');setTimeout(function(){$('.t-popup').not('.t-popup_show').css('display','none')},300)}
function t746_resizePopup(recid){var el=$("#rec"+recid),div=el.find(".t-popup__container").height(),win=$(window).height(),popup=el.find(".t-popup__container");if(div>win){popup.addClass('t-popup__container-static')}else{popup.removeClass('t-popup__container-static')}}
function t746_sendPopupEventToStatistics(popupname){var virtPage='/tilda/popup/';var virtTitle='Popup: ';if(popupname.substring(0,7)=='#popup:'){popupname=popupname.substring(7)}
virtPage+=popupname;virtTitle+=popupname;if(ga){if(window.mainTracker!='tilda'){ga('send',{'hitType':'pageview','page':virtPage,'title':virtTitle})}}
if(window.mainMetrika>''&&window[window.mainMetrika]){window[window.mainMetrika].hit(virtPage,{title:virtTitle,referer:window.location.href})}}
function t746_show(recid){var el=$("#rec"+recid),play=el.find('.t746__play');play.click(function(){if($(this).attr('data-slider-video-type')=='youtube'){var url=$(this).attr('data-slider-video-url');$(this).next().html("<iframe class=\"t746__iframe\" width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/"+url+"?autoplay=1\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>")}
if($(this).attr('data-slider-video-type')=='vimeo'){var url=$(this).attr('data-slider-video-url');$(this).next().html("<iframe class=\"t746__iframe\" width=\"100%\" height=\"100%\" src=\"https://player.vimeo.com/video/"+url+"?autoplay=1\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>")}
$(this).next().css('z-index','3')})}
function t746_hide(recid){var el=$("#rec"+recid),body=el.find('.t746__frame');el.on('updateSlider',function(){body.html('').css('z-index','')})}
function t746_imageHeight(recid){var el=$("#rec"+recid);var image=el.find(".t746__separator");image.each(function(){var width=$(this).attr("data-slider-image-width");var height=$(this).attr("data-slider-image-height");var ratio=height/width;var padding=ratio*100;$(this).css("padding-bottom",padding+"%")})}
function t746_arrowWidth(recid){var el=$("#rec"+recid),arrow=el.find('.t-slds__arrow_wrapper'),slideWidth=el.find('.t-slds__wrapper').width(),windowWidth=$(window).width(),arrowWidth=windowWidth-slideWidth;if(windowWidth>960&&arrow.parents('.t-slds__arrow_container').hasClass('t-slds__arrow-nearpic')){arrow.css('width',arrowWidth/2)}else{arrow.css('width','')}}
function t754__init(recid){setTimeout(function(){t_onFuncLoad('t_prod__init',function(){t_prod__init(recid)});t754__hoverZoom_init(recid);t754_initPopup(recid);t754__updateLazyLoad(recid);t754__alignButtons_init(recid);if(typeof t_store_addProductQuantityEvents!=='undefined'){t754_initProductQuantity(recid)}},500)}
function t754_initProductQuantity(recid){var el=$('#rec'+recid);var productList=el.find(".t754__col, .t754__product-full");productList.each(function(i,product){t_store_addProductQuantityEvents($(product))})}
function t754__showMore(recid){var el=$('#rec'+recid).find(".t754");var showmore=el.find('.t754__showmore');var cards_count=parseInt(el.attr('data-show-count'),10);if(cards_count>0){if(showmore.text()===''){showmore.find('td').text(t754__dict('loadmore'))}
showmore.show();el.find('.t754__col').hide();var cards_size=el.find('.t754__col').size();var cards_count=parseInt(el.attr('data-show-count'),10);var x=cards_count;var y=cards_count;t754__showSeparator(el,x);el.find('.t754__col:lt('+x+')').show();showmore.click(function(){x=(x+y<=cards_size)?x+y:cards_size;el.find('.t754__col:lt('+x+')').show();if(x==cards_size){showmore.hide()}
if(typeof $('.t-records').attr('data-tilda-mode')=='undefined'){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
t754__showSeparator(el,x);if($('#rec'+recid).find('[data-buttons-v-align]')[0]){t754__alignButtons(recid)}})}}
function t754__showSeparator(el,x){el.find('.t754__separator_number').addClass('t754__separator_hide');el.find('.t754__separator_hide').each(function(){if($(this).attr('data-product-separator-number')<=x){$(this).removeClass('t754__separator_hide')}})}
function t754__dict(msg){var dict=[];dict.loadmore={EN:'Load more',RU:'Загрузить еще',FR:'Charger plus',DE:'Mehr laden',ES:'Carga más',PT:'Carregue mais',UK:'Завантажити ще',JA:'もっと読み込む',ZH:'裝載更多',};var lang=window.browserLang;if(typeof dict[msg]!=='undefined'){if(typeof dict[msg][lang]!=='undefined'&&dict[msg][lang]!=''){return dict[msg][lang]}else{return dict[msg].EN}}
return 'Text not found "'+msg+'"'}
function t754__alignButtons_init(recid){var el=$('#rec'+recid);if(el.find('[data-buttons-v-align]')[0]){try{t754__alignButtons(recid);$(window).bind('resize',t_throttle(function(){if(typeof window.noAdaptive!=='undefined'&&window.noAdaptive===!0&&$isMobile){return}
t754__alignButtons(recid)},200));el.find('.t754').bind('displayChanged',function(){t754__alignButtons(recid)});if($isMobile){$(window).on('orientationchange',function(){t754__alignButtons(recid)})}}catch(e){console.log('buttons-v-align error: '+e.message)}}}
function t754__alignButtons(recid){var rec=$('#rec'+recid);var wrappers=rec.find('.t754__textwrapper');var maxHeight=0;var itemsInRow=rec.find('.t-container').attr('data-blocks-per-row')*1;var mobileView=$(window).width()<=480;var tableView=$(window).width()<=960&&$(window).width()>480;var mobileOneRow=$(window).width()<=960&&rec.find('.t754__container_mobile-flex')[0]?!0:!1;var mobileTwoItemsInRow=$(window).width()<=480&&rec.find('.t754 .mobile-two-columns')[0]?!0:!1;if(mobileView){itemsInRow=1}
if(tableView){itemsInRow=2}
if(mobileTwoItemsInRow){itemsInRow=2}
if(mobileOneRow){itemsInRow=999999}
var i=1;var wrappersInRow=[];$.each(wrappers,function(key,element){element.style.height='auto';if(itemsInRow===1){element.style.height='auto'}else{wrappersInRow.push(element);if(element.offsetHeight>maxHeight){maxHeight=element.offsetHeight}
$.each(wrappersInRow,function(key,wrapper){wrapper.style.height=maxHeight+'px'});if(i===itemsInRow){i=0;maxHeight=0;wrappersInRow=[]}
i++}})}
function t754__hoverZoom_init(recid){if(isMobile){return}
var rec=$('#rec'+recid);try{if(rec.find('[data-hover-zoom]')[0]){if(!jQuery.cachedZoomScript){jQuery.cachedZoomScript=function(url){var options={dataType:'script',cache:!0,url:url};return jQuery.ajax(options)}}
$.cachedZoomScript('https://static.tildacdn.com/js/tilda-hover-zoom-1.0.min.js').done(function(script,textStatus){if(textStatus=='success'){setTimeout(function(){t_hoverZoom_init(recid,".t-slds__container")},500)}else{console.log('Upload script error: '+textStatus)}})}}catch(e){console.log('Zoom image init error: '+e.message)}}
function t754__updateLazyLoad(recid){var scrollContainer=$("#rec"+recid+" .t754__container_mobile-flex");var curMode=$(".t-records").attr("data-tilda-mode");if(scrollContainer.length&&curMode!="edit"&&curMode!="preview"){scrollContainer.bind('scroll',t_throttle(function(){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}))}}
function t754_initPopup(recid){var rec=$('#rec'+recid);rec.find('[href^="#prodpopup"]').one("click",function(e){e.preventDefault();var el_popup=rec.find('.t-popup');var el_prod=$(this).closest('.js-product');var lid_prod=el_prod.attr('data-product-lid');t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid+' #t754__product-'+lid_prod+'')})});rec.find('[href^="#prodpopup"]').click(function(e){e.preventDefault();t754_showPopup(recid);var el_popup=rec.find('.t-popup');var el_prod=$(this).closest('.js-product');var lid_prod=el_prod.attr('data-product-lid');el_popup.find('.js-product').css('display','none');var el_fullprod=el_popup.find('.js-product[data-product-lid="'+lid_prod+'"]');el_fullprod.css('display','block');var analitics=el_popup.attr('data-track-popup');if(analitics>''){var virtTitle=el_fullprod.find('.js-product-name').text();if(!virtTitle){virtTitle='prod'+lid_prod}
Tilda.sendEventToStatistics(analitics,virtTitle)}
var curUrl=window.location.href;if(curUrl.indexOf('#!/tproduct/')<0&&curUrl.indexOf('%23!/tproduct/')<0&&curUrl.indexOf('#%21%2Ftproduct%2F')<0){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',window.location.href+'#!/tproduct/'+recid+'-'+lid_prod)}}
t754_updateSlider(recid+' #t754__product-'+lid_prod+'');if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}});if($('#record'+recid).length==0){t754_checkUrl(recid)}
t754_copyTypography(recid)}
function t754_checkUrl(recid){var curUrl=window.location.href;var tprodIndex=curUrl.indexOf('#!/tproduct/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&tprodIndex<0){tprodIndex=curUrl.indexOf('%23!/tproduct/');if(tprodIndex<0){tprodIndex=curUrl.indexOf('#%21%2Ftproduct%2F')}}
if(tprodIndex>=0){var curUrl=curUrl.substring(tprodIndex,curUrl.length);var curProdLid=curUrl.substring(curUrl.indexOf('-')+1,curUrl.length);var rec=$('#rec'+recid);if(curUrl.indexOf(recid)>=0&&rec.find('[data-product-lid='+curProdLid+']').length){rec.find('[data-product-lid='+curProdLid+'] [href^="#prodpopup"]').triggerHandler('click')}}}
function t754_updateSlider(recid){var el=$('#rec'+recid);t_onFuncLoad('t_slds_SliderWidth',function(){t_slds_SliderWidth(recid)});var sliderWrapper=el.find('.t-slds__items-wrapper');var sliderWidth=el.find('.t-slds__container').width();var pos=parseFloat(sliderWrapper.attr('data-slider-pos'));sliderWrapper.css({transform:'translate3d(-'+(sliderWidth*pos)+'px, 0, 0)'});t_onFuncLoad('t_slds_UpdateSliderHeight',function(){t_slds_UpdateSliderHeight(recid)});t_onFuncLoad('t_slds_UpdateSliderArrowsHeight',function(){t_slds_UpdateSliderArrowsHeight(recid)})}
function t754_showPopup(recid){var el=$('#rec'+recid);var popup=el.find('.t-popup');popup.css('display','block');setTimeout(function(){popup.find('.t-popup__container').addClass('t-popup__container-animated');popup.addClass('t-popup_show');if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},50);$('body').addClass('t-body_popupshowed');el.find('.t-popup').mousedown(function(e){var windowWidth=$(window).width();var maxScrollBarWidth=17;var windowWithoutScrollBar=windowWidth-maxScrollBarWidth;if(e.clientX>windowWithoutScrollBar){return}
if(e.target==this){t754_closePopup()}});el.find('.t-popup__close, .t754__close-text').click(function(e){t754_closePopup()});$(document).keydown(function(e){if(e.keyCode==27){t754_closePopup()}})}
function t754_closePopup(){$('body').removeClass('t-body_popupshowed');$('.t-popup').removeClass('t-popup_show');var curUrl=window.location.href;var indexToRemove=curUrl.indexOf('#!/tproduct/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=curUrl.indexOf('%23!/tproduct/');if(indexToRemove<0){indexToRemove=curUrl.indexOf('#%21%2Ftproduct%2F')}}
curUrl=curUrl.substring(0,indexToRemove);setTimeout(function(){$(".t-popup").scrollTop(0);$('.t-popup').not('.t-popup_show').css('display','none');if(typeof history.replaceState!='undefined'){window.history.replaceState('','',curUrl)}},300)}
function t754_removeSizeStyles(styleStr){if(typeof styleStr!="undefined"&&(styleStr.indexOf('font-size')>=0||styleStr.indexOf('padding-top')>=0||styleStr.indexOf('padding-bottom')>=0)){var styleStrSplitted=styleStr.split(';');styleStr="";for(var i=0;i<styleStrSplitted.length;i++){if(styleStrSplitted[i].indexOf('font-size')>=0||styleStrSplitted[i].indexOf('padding-top')>=0||styleStrSplitted[i].indexOf('padding-bottom')>=0){styleStrSplitted.splice(i,1);i--;continue}
if(styleStrSplitted[i]==""){continue}
styleStr+=styleStrSplitted[i]+";"}}
return styleStr}
function t754_copyTypography(recid){var rec=$('#rec'+recid);var titleStyle=rec.find('.t754__title').attr('style');var descrStyle=rec.find('.t754__descr').attr('style');rec.find('.t-popup .t754__title').attr("style",t754_removeSizeStyles(titleStyle));rec.find('.t-popup .t754__descr, .t-popup .t754__text').attr("style",t754_removeSizeStyles(descrStyle))}
function t764_init(recid){var el=$('#rec'+recid);t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid)});t_onFuncLoad('t_slds_SliderWidth',function(){t_slds_SliderWidth(recid)});var sliderWrapper=el.find('.t-slds__items-wrapper');var sliderWidth=el.find('.t-slds__container').width();var pos=parseFloat(sliderWrapper.attr('data-slider-pos'),10);sliderWrapper.css({transform:'translate3d(-'+(sliderWidth*pos)+'px, 0, 0)'});t_onFuncLoad('t_slds_UpdateSliderHeight',function(){t_slds_UpdateSliderHeight(recid)});t_onFuncLoad('t_slds_UpdateSliderArrowsHeight',function(){t_slds_UpdateSliderArrowsHeight(recid)});el.find('.t764').bind('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)})})}
function t794_init(recid){var hook=$('#rec'+recid+' .t794').attr('data-tooltip-hook');if(typeof hook==="undefined"||hook===""){return}
var hookLinks=$('a[href="'+hook+'"][data-submenu-disallowed!="yes"]');hookLinks.addClass('t794__tm-link');hookLinks.attr('data-tooltip-menu-id',recid);t794_addArrow(recid,hookLinks);t794_setUpMenu(recid,hookLinks);t794_highlight()}
function t794_setUpMenu(recid,hookLinks){var submenu=$('#rec'+recid+' .t794__tooltip-menu');var content=submenu.find('t794__content');if(window.isMobile){t794_setUpMenu_mobile(recid,hookLinks,submenu)}else{t794_setUpMenu_desktop(recid,hookLinks,submenu)}
$(window).bind('scroll',t_throttle(function(){content.hover(function(){},function(){if(submenu.hasClass('t794__tooltip-menu_show')){t794_hideSubmenu(submenu)}})},300));$('.t794__tooltip-menu a[href*="#"]').click(function(){t794_hideSubmenu(submenu);$('.t450, .t199__mmenu, .t280, .t282, .t204__burger, .t451, .t466').trigger('clickedAnchorInTooltipMenu');$('.t794__tooltip-menu a[href*="#"]').removeClass('t-active');$(this).addClass('t-active')})}
function t794_setUpMenu_mobile(recid,hookLinks,submenu){var vIndent=$('#rec'+recid+' .t794').attr('data-tooltip-margin');hookLinks.on('click',function(e){if(submenu.hasClass('t794__tooltip-menu_show')){t794_hideSubmenu(submenu)}else{var curAnchor=$(this);t794_showSubmenu(curAnchor,submenu,vIndent)}
e.preventDefault()});$(document).click(function(e){var isInsideSubmenu=($(e.target).hasClass('t794__tooltip-menu')||$(e.target).parents('.t794__tooltip-menu').length>0);var isAnchor=($(e.target).hasClass('t794__tm-link')||$(e.target).parents('.t794__tm-link').length>0);if(isAnchor){var curAnchor;if($(e.target).hasClass('t794__tm-link')){curAnchor=$(e.target)}else{curAnchor=$(e.target).parents('.t794__tm-link')}
if(curAnchor.attr('data-tooltip-menu-id')!=recid&&submenu.hasClass('t794__tooltip-menu_show')){t794_hideSubmenu(submenu)}}
if(!isInsideSubmenu&&!isAnchor&&submenu.hasClass('t794__tooltip-menu_show')){t794_hideSubmenu(submenu)}})}
function t794_setUpMenu_desktop(recid,hookLinks,submenu){var vIndent=$('#rec'+recid+' .t794').attr('data-tooltip-margin');var timer;hookLinks.add(submenu).on('mouseover',function(){if($(this).hasClass('t794__tooltip-menu')&&!$(this).hasClass('t794__tooltip-menu_show')){return}
clearTimeout(timer);if($(this).hasClass('t794__tooltip-menu')&&submenu.hasClass('t794__tooltip-menu_show')){return}
var curAnchor=$(this);t794_showSubmenu(curAnchor,submenu,vIndent)});hookLinks.add(submenu).on('mouseout',function(){timer=setTimeout(function(){t794_hideSubmenu(submenu)},300)});hookLinks.on('click',function(e){e.preventDefault()})}
function t794_showSubmenu(curAnchor,submenu,vIndent){var submenuHeight=submenu.outerHeight();var submenuWidth=submenu.outerWidth();var anchorHeight=curAnchor.height();var anchorWidth=curAnchor.width();if(curAnchor.hasClass('t-btn')){anchorWidth=curAnchor.outerWidth()}
var winHeight=$(window).height();var winWidth=$(window).width();var scrollTop=$(window).scrollTop();var anchorLeft=curAnchor.offset().left;var anchorTop=curAnchor.offset().top;submenu.attr('data-pos-fixed','no');var parentMenu=curAnchor.closest('[data-menu="yes"]');if(parentMenu.length&&parentMenu.css('position')==='fixed'){submenu.attr('data-pos-fixed','yes')}
var menuFixed=submenu.attr('data-pos-fixed');var submenuContent=submenu.find('.t794__content');if(typeof vIndent!='undefined'&&vIndent!=''){vIndent=vIndent.replace('px','')*1;vIndent=vIndent+10}
var posy;if(menuFixed=='yes'){posy=(anchorTop-scrollTop)+anchorHeight+vIndent;submenu.css('position','fixed');submenu.removeClass('t794__tooltip-menu_top').addClass('t794__tooltip-menu_bottom');submenuContent.css('max-height','calc(100vh - '+posy+'px)')}else{posy=anchorTop+anchorHeight+vIndent;submenu.css('position','absolute');var topSpace=anchorTop-scrollTop,bottomSpace=winHeight-topSpace;if(posy+submenuHeight>scrollTop+winHeight&&topSpace>bottomSpace){posy=posy-submenuHeight-anchorHeight-vIndent*2;submenu.removeClass('t794__tooltip-menu_bottom').addClass('t794__tooltip-menu_top')}else{submenu.removeClass('t794__tooltip-menu_top').addClass('t794__tooltip-menu_bottom')}}
var posx=anchorLeft;if(posx+submenuWidth/2<winWidth){posx=posx+(anchorWidth-submenuWidth)/2;if(posx<0){posx=10}}else{posx=winWidth-submenuWidth-10}
submenu.css({'display':'block','left':posx,'top':posy});submenu[0].offsetHeight;submenu.addClass('t794__tooltip-menu_show');curAnchor.addClass('t794__tm-link_active')}
function t794_hideSubmenu(submenu){submenu.css({'display':'','left':'','top':''});submenu.removeClass('t794__tooltip-menu_show');$('.t794__tm-link_active').removeClass('t794__tm-link_active')}
function t794_addArrow(recid,hookLinks){var arrow=$('#rec'+recid+' .t794').attr('data-add-arrow');if(typeof arrow==='undefined'||arrow===''){return}
hookLinks.each(function(i,el){$(el).append('<div class="t794__arrow"></div>')})}
function t794_highlight(){var url=window.location.href;var pathname=window.location.pathname;var hash=window.location.hash;if(url.substr(url.length-1)=='/'){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)=='/'){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)=='/'){pathname=pathname.slice(1)}
if(pathname==''){pathname='/'}
$('.t794__list_item a[href="'+url+'"]').addClass('t-active');$('.t794__list_item a[href="'+url+'/"]').addClass('t-active');$('.t794__list_item a[href="'+pathname+'"]').addClass('t-active');$('.t794__list_item a[href="/'+pathname+'"]').addClass('t-active');$('.t794__list_item a[href="'+pathname+'/"]').addClass('t-active');$('.t794__list_item a[href="/'+pathname+'/"]').addClass('t-active');if(hash){$('.t794__list_item a[href="'+hash+'"]').addClass('t-active')}}
function t796_init(recid){var el=$("#rec"+recid);var winWidth=$(window).width();var screenMin=el.attr("data-screen-min");var screenMax=el.attr("data-screen-max");if(typeof screenMin!=='undefined'){if(winWidth<parseInt(screenMin,10)){return!1}}
if(typeof screenMax!=='undefined'){if(winWidth>parseInt(screenMax,10)){return!1}}
var shapeEl=el.find(".t796__shape-border");var recs=el.find(".t796").attr("data-shape-rec-ids");if(typeof recs!="undefined"){recs=recs.split(",");recs.forEach(function(rec_id,i,arr){var curRec=$("#rec"+rec_id);var curShapeEl=shapeEl.clone();t796_setColor(el,curShapeEl);t796_addDivider(curRec,curShapeEl)})}else{var excludesBlocks=[215,316,390,651,702,706,708,750,756,766,825,862,868,];var excludes='';excludesBlocks.forEach(function(el){excludes+='[data-record-type=\''+el+'\'],'});if(excludes.slice(-1)===','){excludes=excludes.slice(0,-1)}
var curRec;if(shapeEl.hasClass('t796__shape-border_top')||shapeEl.hasClass('t796__shape-border_top-flip')){curRec=el.nextAll(".r:not("+excludes+")").eq(0)}
if(shapeEl.hasClass('t796__shape-border_bottom')||shapeEl.hasClass('t796__shape-border_bottom-flip')){curRec=el.prevAll(".r:not("+excludes+")").eq(0)}
if(curRec.length!==0){var curShapeEl=shapeEl.clone();t796_setColor(el,curShapeEl);t796_addDivider(curRec,curShapeEl)}}}
function t796_addDivider(curRec,curShapeEl){curRec.attr("data-animationappear","off").removeClass('r_hidden');var coverWrapper=curRec.find(".t-cover");var zeroWrapper=curRec.find(".t396");if(coverWrapper.find('.t557__snow-layer').length>0){curShapeEl.css('z-index',1)}
if(coverWrapper.length>0||zeroWrapper.length>0){if(coverWrapper.length>0){coverWrapper.find(".t-cover__filter").after(curShapeEl)}
if(zeroWrapper.length>0){zeroWrapper.after(curShapeEl);curRec.css("position","relative")}
if(zeroWrapper.find('.t396__filter').length>0){curShapeEl.css('z-index',1)}
curShapeEl.css("display","block")}else{var wrapper=curRec;var curRecType=Number.parseInt(curRec.attr("data-record-type"));if(wrapper.length===0){return!0}
wrapper.append(curShapeEl);wrapper.css("position","relative");var excludesBlocks=[125,331,554,746,754,776,778,786,858,896,897,924,915,951,];if(excludesBlocks.indexOf(curRecType)===-1){wrapper.children("div").first().css({"position":"relative","z-index":"1"}).addClass("t796_cont-near-shape-divider")}
var blocks=[195,279,675,694,734,938,];if(blocks.indexOf(curRecType)!==-1){curShapeEl.css("z-index",1)}
curShapeEl.css("display","block")}}
function t796_setColor(el,curShapeEl){if(typeof curShapeEl.attr("data-fill-color")!="undefined"){return}
var nearestBlock;if(curShapeEl.hasClass("t796__shape-border_bottom")||curShapeEl.hasClass("t796__shape-border_bottom-flip")){nearestBlock=el.next(".r")}else{nearestBlock=el.prev(".r")}
if(nearestBlock.length===0){return}
var fillColor=nearestBlock.attr("data-bg-color");if(typeof fillColor=="undefined"){return}
curShapeEl.find(".t796__svg").css("fill",fillColor)}
function t806__init(recid){t_onFuncLoad('tvote__init',function(){tvote__init(recid)});var testWrap=$('#rec'+recid);var testContainer=testWrap.find('.t806');var rightAnswersCount;var testAnswers=testWrap.find('.t806__answers');var testBlock=testWrap.find('.t806__test');var testResultWrap=testWrap.find('.t806__result-wrap');var shareVK=testWrap.find('.t806__social-btn-vk');var shareFB=testWrap.find('.t806__social-btn-fb');var shareTwitter=testWrap.find('.t806__social-btn-twitter');var rightTestAnswers=[];var testImgSrc=[];var startTitle=testWrap.find('.t806__start-title').text();var startText=testWrap.find('.t806__start-text').text();var siteLocation=window.location.href;testBlock.addClass('t806__counter');testBlock.attr('data-count',0);testResultWrap.each(function(i){if($(testResultWrap[i]).find('img').attr('src')!==''){testImgSrc.push($(testResultWrap[i]).find('img').attr('src'))}});if(testImgSrc.length==1){testResultWrap.each(function(i){$(testResultWrap[i]).find('img').attr('src',testImgSrc[0]);$(testResultWrap[i]).find('.t806__result-desc').removeClass('t806__result-desc_withoutimg');$(testResultWrap[i]).find('.t806__result-count, .t806__result-variant').css('color','#ffffff')})}
testAnswers.each(function(){var answer=$(this).attr('data-right-answer')||'';rightTestAnswers.push(answer.trim());$(this).removeAttr('data-right-answer')});t806__changeRadio(recid,rightTestAnswers);t806__changeTestInput(recid);t806__startClickBtn(recid);t806__checkClickBtn(recid,rightTestAnswers);t806__nextClickBtn(recid);t806__resultClickBtn(recid);t806__restartClickBtn(recid,rightTestAnswers);shareVK.click(function(){t806_shareVK(recid,startTitle,siteLocation)});shareFB.click(function(){t806_shareFB(recid,startTitle,startText,siteLocation)});shareTwitter.click(function(){t806_shareTwitter(recid,startTitle,siteLocation)});t806__clearFormOnBackClick(testWrap)}
function t806_scrollToTop(testBlock){var topCoordinate=testBlock.offset().top;$('html, body').animate({scrollTop:topCoordinate},0)}
function t806__clearFormOnBackClick(testWrap){window.addEventListener('pagehide',function(){testWrap.find('.t806__input').prop('checked',!1)})}
function t806__startClickBtn(test){var testWrap=$('#rec'+test);var questionFirst=1;var testBtnStart=testWrap.find('.t806__start-btn');testBtnStart.on('click',function(e){var testStart=$(this).parents('.t806__start');testStart.hide();testStart.next().show();t806__showNumber(test,questionFirst);t806_fixcontentheight(test);t806_scrollToTop(testWrap);if(typeof $(".t-records").attr("data-tilda-mode")=="undefined"){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
e.preventDefault()})}
function t806__changeRadio(test,rightansw){var testBlock=$('#rec'+test);var testInput=testBlock.find('.t806__input[type="radio"]');var lastQuestion=testBlock.find('.t806__question').last();lastQuestion.addClass('t806__lastquestion');testInput.change(function(){var rightAnswersCount=testBlock.find('.t806__counter').attr('data-count');var testItem=$(this).parents('#rec'+test+' .t806__question');var testAnswers=$(this).parents('#rec'+test+' .t806__answers');var answerVote=$(this).parents('#rec'+test+' .t806__answers').find('.t806__answer .t-vote__btn-res');var currentRightAnswer=rightansw[testItem.attr('data-question-num')-1];if($(this).attr('type')==='radio'){var checkedRadio=$(this).val();testAnswers.addClass('t806__answers_answered');if(testItem.hasClass('t806__lastquestion')){testAnswers.siblings('.t806__btn-wrapper').find('.t806__btn_result').addClass('t806__btn_show')}else{testAnswers.siblings('.t806__btn-wrapper').find('.t806__btn_next').addClass('t806__btn_show')}
testItem.find('.t806__input').attr('disabled',!0);if(+checkedRadio===+currentRightAnswer){rightAnswersCount++;testBlock.find('.t806__counter').attr('data-count',rightAnswersCount)}
if(+testItem.find('.t806__input:checked').val()!==+currentRightAnswer){testItem.find('.t806__input:checked').parents('.t806__answer').addClass('t806__answer_wrong')}
testItem.find('.t806__input:checked').parent().siblings('.t806__details').show();testItem.find('.t806__input[value="'+currentRightAnswer+'"]').parents('.t806__answer').addClass('t806__answer_correct');answerVote.addClass('t806__answer-vote_show');testItem.find('.t806__input:checked').parents('.t806__answer_correct').addClass('t806__answer_withoutopacity');testItem.find('.t806__input[type="radio"]').parents('.t806__answer_correct').addClass('t806__answer_withoutopacity')}
t806_fixcontentheight(test)})}
function t806__changeTestInput(test){var testBlock=$('#rec'+test);var testInput=testBlock.find('.t806__input[type="checkbox"]');var lastQuestion=testBlock.find('.t806__question').last();var checkedAnswerCheck=[];testBlock.find('.t806__answers').attr('data-test-checked','');lastQuestion.addClass('t806__lastquestion');testInput.change(function(){var testAnswers=$(this).parents('#rec'+test+' .t806__answers');if($(this).attr('type')==='checkbox'){testAnswers.siblings('.t806__btn-wrapper').find('.t806__btn_check').addClass('t806__btn_show')}
if($(this).attr('type')==='checkbox'&&$(this).is(':checked')&&checkedAnswerCheck.indexOf($(this).val())===-1){checkedAnswerCheck.push($(this).val())}
if($(this).attr('type')==='checkbox'&&!$(this).is(":checked")){checkedAnswerCheck.splice(checkedAnswerCheck.indexOf($(this).val()),1)}
testAnswers.attr('data-test-checked',checkedAnswerCheck.join(','));t806_fixcontentheight(test)});return checkedAnswerCheck}
function t806__checkClickBtn(test,rightansw){var rightChecked=!1;var testBlock=$('#rec'+test);var testBtnCheck=testBlock.find('.t806__btn_check');var testInput=testBlock.find('.t806__input');var checkedAnswersTruth=[];testBtnCheck.on('click',function(e){var rightAnswersCount=testBlock.find('.t806__counter').attr('data-count');var testItem=$(this).parents('#rec'+test+' .t806__question');var testAnswers=$(this).parents('#rec'+test+' .t806__question').find('.t806__answers');var answerVote=$(this).parents('.t806__btn-wrapper').siblings('#rec'+test+' .t806__answers').find('.t806__answer .t-vote__btn-res');var checkboxAnswersArr=[];var checkboxAnswers=rightansw[testItem.attr('data-question-num')-1].split(',');var checkedAnswers=testAnswers.attr('data-test-checked').split(',');for(var i=0;i<checkboxAnswers.length;i++){checkboxAnswersArr.push(checkboxAnswers[i])}
testItem.find(testInput).attr('disabled',!0);answerVote.addClass('t806__answer-vote_show');checkedAnswers.forEach(function(item,i){var checkedCheckboxSort=checkedAnswers.sort();var checkboxAnswersArrSort=checkboxAnswersArr.sort();if(+checkedCheckboxSort[i]===+checkboxAnswersArrSort[i]&&checkedCheckboxSort.length===checkboxAnswersArrSort.length){checkedAnswersTruth.push(1)}else{checkedAnswersTruth.push(0)}});var rightChecked=checkedAnswersTruth.every(function(item){return item==1});if(testItem.find(testInput).attr('type')==='checkbox'){checkboxAnswersArr.forEach(function(item){testItem.find('.t806__input[value="'+ +item+'"]').parents('.t806__answer').addClass('t806__answer_correct')});checkedAnswers.forEach(function(item){if(checkboxAnswersArr.indexOf(item)===-1){testItem.find('.t806__input[value="'+ +item+'"]:checked').parents('.t806__answer').addClass('t806__answer_wrong');testItem.find('.t806__input[value="'+ +item+'"]').parent().siblings().show()}})}
testItem.find('.t806__input:checked').parents('.t806__answer_correct').addClass('t806__answer_withoutopacity');if(rightChecked){rightAnswersCount++;testBlock.find('.t806__counter').attr('data-count',rightAnswersCount)}
checkedAnswersTruth=[];$(this).removeClass('t806__btn_show');if(testItem.hasClass('t806__lastquestion')){$(this).parents('.t806__question').find('.t806__btn_result').addClass('t806__btn_show')}else{$(this).parents('.t806__question').find('.t806__btn_next').addClass('t806__btn_show')}
testAnswers.addClass('t806__answers_answered');t806_fixcontentheight(test);if(typeof $(".t-records").attr("data-tilda-mode")=="undefined"){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
testItem.find('.t806__input:checked').parent().siblings('.t806__details').show();t806__changeTestInput(test);e.preventDefault()})}
function t806__nextClickBtn(test){var testBlock=$('#rec'+test);var testBtnNext=testBlock.find('.t806__btn_next');var questionNumber;testBtnNext.on('click',function(e){var parentTop=$(this).parents('#rec'+test+' .t806').offset().top;var testItem=$(this).parents('#rec'+test+' .t806__question');questionNumber=testItem.next().attr('data-question-num');testItem.hide();testItem.next().show();t806__showNumber(test,questionNumber);t806_fixcontentheight(test);t806_scrollToTop(testBlock);if(typeof $(".t-records").attr("data-tilda-mode")=="undefined"){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
e.preventDefault()})}
function t806__resultClickBtn(test){var testBtnResult=$('#rec'+test+' .t806__btn_result');var testBlock=$('#rec'+test);testBtnResult.on('click',function(e){var parentTop=$(this).parents('#rec'+test+' .t806__test').offset().top;var testItem=$(this).parents('#rec'+test+' .t806__question');testItem.hide();t806_scrollToTop(testBlock);t806__showResult(test);t806_fixcontentheight(test);if(typeof $(".t-records").attr("data-tilda-mode")=="undefined"){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
e.preventDefault()})}
function t806__restartClickBtn(test,rightansw){var testBlock=$('#rec'+test);var testContainer=testBlock.find('.t806');var testRestart=testBlock.find('.t806__btn_restart');var testItemAll=testBlock.find('.t806__question');testRestart.on('click',function(e){testBlock.find('.t806__start').show();testBlock.find('.t806__result').hide();testBlock.find('.t806__btn_next').removeClass('t806__btn_show');testBlock.find('.t806__btn_result').removeClass('t806__btn_show');testBlock.find('.t806__btn_check').removeClass('t806__btn_show');testBlock.find('.t806__details').hide();testBlock.find('.t806__answers').removeClass('t806__answers_answered');testBlock.find('.t806__answers').attr('data-test-checked','');testBlock.find('.t806__answer').removeClass('t806__answer_correct');testBlock.find('.t806__answer').removeClass('t806__answer_wrong');testBlock.find('.t806__input').parents('.t806__answer').removeClass('t806__answer_withoutopacity');testBlock.find('.t806__input').prop('checked',!1);testBlock.find('.t806__input').removeAttr('disabled');testBlock.find('.t806__answer .t-vote__btn-res').removeClass('t806__answer-vote_show');$('#rec'+test+' .t806__counter').attr('data-count',0);testBlock.find('.t806__number').text(1+'/'+testItemAll.length);t806_fixcontentheight(test);if(testContainer.hasClass('t806__test-reload')){document.location.reload(!0)}
e.preventDefault()})}
function t806__showResult(test){var testBlock=$('#rec'+test);var testContainer=testBlock.find('.t806');var fullResult=testBlock.find('.t806__result');var startImg=testBlock.find('.t806__start-img img');var fullResultLength=fullResult.length;var allResult;var resultLength=testBlock.find('.t806__result').length;var rightAnswersCount=$('#rec'+test).find('.t806__counter').attr('data-count');var testItemAll=$('#rec'+test+' .t806__question');var resultCount=$('#rec'+test+' .t806__result .t806__result-count');var resultPercent=rightAnswersCount!=0?rightAnswersCount/testItemAll.length*100:0;if(testContainer.hasClass('t806__result-new-calc')){if(!Number.isInteger(resultPercent)){resultPercent=resultPercent.toFixed(3)}}
resultCount.text(rightAnswersCount+'/'+testItemAll.length);t806__openResultWrapper(testContainer,resultPercent,testBlock,fullResultLength);var resultData=[];fullResult.each(function(i){if($(fullResult[i]).css('display')=='block'){resultData[0]=$(fullResult[i]).find('.t806__result-variant').text()
resultData[1]=$(fullResult[i]).find('.t806__result-count').text();resultData[2]='';var img=$(fullResult[i]).find('.t806__result-wrap img');if(testContainer.hasClass('t806__test-reload')){if(img.length!=0){if(typeof window.lazy!=='undefined'){resultData[2]=img.attr('data-original')||img.attr('src')}else{resultData[2]=img.attr('src')}}
if(img.length==0&&startImg.length!=0){if(typeof window.lazy!=='undefined'){resultData[2]=startImg.attr('data-original')||img.attr('src')}else{resultData[2]=startImg.attr('src')}}}
if(!testContainer.hasClass('t806__test-reload')){if(img.length!=0){resultData[2]=img.attr('src')}
if(img.length==0&&startImg.length!=0){resultData[2]=startImg.attr('src')}}
resultData[3]=$(fullResult[i]).attr('data-quiz-result-number')}});return resultData}
function t806__openResultWrapper(testContainer,resultPercent,testBlock,fullResultLength){if(testContainer.hasClass('t806__result-new-calc')){if(resultPercent<=100*1/fullResultLength){testBlock.find('.t806__result_1').show();return}
for(var i=0;i<fullResultLength;i++){var minResult=100*(i+1)/fullResultLength;var maxResult=100*(i+2)/fullResultLength;minResult=Math.floor(minResult)==minResult?minResult:minResult.toFixed(3);maxResult=Math.floor(maxResult)==maxResult?maxResult:maxResult.toFixed(3);if(resultPercent>=minResult&&resultPercent<=maxResult){testBlock.find('.t806__result_'+(i+2)).show();return}}
if(resultPercent>100*(fullResultLength-1)/fullResultLength){testBlock.find('.t806__result_'+fullResultLength).show();return}}else{if(resultPercent<=100*1/fullResultLength){testBlock.find('.t806__result_1').show()}
for(var i=0;i<fullResultLength;i++){if(resultPercent>100*(i+1)/fullResultLength&&resultPercent<=100*(i+2)/fullResultLength){testBlock.find('.t806__result_'+(i+2)).show()}}
if(resultPercent>100*(fullResultLength-1)/fullResultLength){testBlock.find('.t806__result_'+fullResultLength).show()}}}
function t806__showNumber(test,number){var testItemNumber=$('#rec'+test+' .t806__number');var testItemAll=$('#rec'+test+' .t806__question');testItemNumber.html('<span>'+number+'</span>'+'<span>/</span>'+'<span>'+testItemAll.length+'</span>')}
function t806_fixcontentheight(id){var el=$("#rec"+id);var hcover=el.find(".t-cover").height();var hcontent=el.find("div[data-hook-content]").outerHeight();if(hcontent>300&&hcover<hcontent){var hcontent=hcontent+120;if(hcontent>1000){hcontent+=100}
el.find(".t-cover").height(hcontent);el.find(".t-cover__filter").height(hcontent);el.find(".t-cover__carrier").height(hcontent);el.find(".t-cover__wrapper").height(hcontent);if($isMobile==!1){setTimeout(function(){var divvideo=el.find(".t-cover__carrier");if(divvideo.find('iframe').length>0){setWidthHeightYoutubeVideo(divvideo,hcontent+'px')}},2000)}}}
function t806_changeShareFBUrl(siteLocation,searchUrl){var url=siteLocation.split('?')[0]+'?';var searchParametrs=decodeURIComponent(searchUrl.substring(1));var params=searchParametrs.split('&');params.forEach(function(item){if(item.indexOf('fb_action_ids')==-1&&item.indexOf('fb_action_types')==-1&&item.indexOf('result')==-1){url=url+item+'&'}});url=url.substring(0,url.length-1);return url}
function t806_shareVK(recid,ptitle,purl){var dataForShare=t806__showResult(recid);var text=dataForShare[0];var count=dataForShare[1];var slash=(dataForShare[2]||"").indexOf('/')==0?'':'/';var urlPathname=window.location.pathname.length>1?window.location.pathname:'';var img=(dataForShare[2]||"").indexOf('://')!=-1?dataForShare[2]:window.location.protocol+'//'+window.location.host+urlPathname+slash+dataForShare[2];var resultNumber=dataForShare[3];var idUrl=recid+resultNumber+'vk';var urlValueImg='https://vote.tildacdn.com/vote/2/share/index.php?text='+text;urlValueImg+='&result='+count;if((dataForShare[2]||"").length>0){urlValueImg+='&url='+img}
urlValueImg+='&id='+idUrl;urlValueImg+='&social=vk'+'&name='+ptitle;var value=$.ajax({url:urlValueImg,type:'GET',async:!1,data:{format:'json'},error:function(e){console.log('t806 error: '+e)},complete:function(data){var urlImg=(data.responseJSON.url||'').replace(/\?.*/,'');var shareUrl=window.location.href.indexOf('#')!=-1?purl.split('#')[0]:purl;url='http://vkontakte.ru/share.php?url='+shareUrl+'&title='+ptitle+'&description='+ptitle+'&image='+urlImg+'&noparse=true';t806__openPopup(url)}})}
function t806_shareFB(recid,ptitle,pdescr,purl){var dataForShare=t806__showResult(recid);var text=dataForShare[0];var count=dataForShare[1];var slash=(dataForShare[2]||"").indexOf('/')==0?'':'/';var urlPathname=window.location.pathname.length>1?window.location.pathname:'';var img=(dataForShare[2]||"").indexOf('://')!=-1?dataForShare[2]:window.location.protocol+'//'+window.location.host+urlPathname+slash+dataForShare[2];var resultNumber=dataForShare[3];var idUrl=recid+resultNumber+'fb';var param=count.substring(0,count.indexOf('/'))+count.substring(count.indexOf('/')+1);var urlValueImg='https://vote.tildacdn.com/vote/2/share/index.php?text='+text;urlValueImg+='&result='+count;if((dataForShare[2]||"").length>0){urlValueImg+='&url='+img}
urlValueImg+='&id='+idUrl;urlValueImg+='&social=fb'+'&name='+ptitle;var value=$.ajax({url:urlValueImg,type:'GET',async:!1,data:{format:'json'},error:function(e){console.log('t806 error: '+e)},complete:function(data){var urlImg=data.responseJSON.url;var searchUrl=window.location.search;purl=(searchUrl!==''?t806_changeShareFBUrl(purl,searchUrl):purl)+'?result='+param;FB.ui({method:'share_open_graph',action_type:'og.shares',action_properties:JSON.stringify({object:{'og:url':purl}})})}})}
function t806_shareTwitter(recid,ptitle,purl){var dataForShare=t806__showResult(recid);var testWrap=$('#rec'+recid);var testContainer=testWrap.find('.t806');var text=dataForShare[0];var count=dataForShare[1];var img=dataForShare[2];var resultCount=count.substring(0,count.indexOf('/'));var allCount=count.substring(count.indexOf('/')+1)
var result;if(testContainer.hasClass('t806__ru')){result='Мой результат: '+resultCount+' из '+allCount+'. '+text}
if(testContainer.hasClass('t806__en')){result='My result: '+resultCount+' out of '+allCount+'. '+text}
purl=purl.replace(/&/g,'%26');url='https://twitter.com/share?url='+purl+'&text='+result;url=encodeURI(url);t806__openPopup(url)}
function t806__openPopup(url){window.open(url,'','toolbar=0,status=0,width=626,height=436')}
function t814_init(recid){var el=$('#rec'+recid);t814_setHeight(recid);$(window).bind('resize',t_throttle(function(){if(typeof window.noAdaptive!=="undefined"&&window.noAdaptive===!0&&window.isMobile){return}
t814_setHeight(recid)}));el.find('.t814').on('displayChanged',function(){t814_setHeight(recid)})}
function t814_setHeight(recid){var el=$('#rec'+recid);var imgWrapperHeight=el.find(".t814__blockimg").height();var blockTextWrapper=el.find(".t814__blocktext-wrapper");var textWrapper=el.find(".t814__blocktext");if($(window).width()>960){textWrapper.css('height',imgWrapperHeight);blockTextWrapper.css('height',textWrapper.outerHeight(!0))}else{blockTextWrapper.css('height','auto')}}
function t816_init(recid,padding){var rec=$('#rec'+recid);var el=rec.find('.t816');t816_setHeight(rec,padding);$(window).bind('resize',t_throttle(function(){if(typeof window.noAdaptive!="undefined"&&window.noAdaptive==!0&&$isMobile){return}
t816_setHeight(rec,padding)},200));$('.t816').bind('displayChanged',function(){t816_setHeight(rec,padding)})}
function t816_setHeight(rec,padding){var galleryContainer=rec.find('.t816__container');var galleryRow=rec.find('.t816__row:first-child');var colOffset=rec.find('.t816__tile_offset');if(colOffset.length==0){return}
var containerOffset=colOffset.position().top-padding;if($(window).width()>=960){galleryContainer.css('padding-bottom',containerOffset)}}
function t817_init(recid){var rec=$('#rec'+recid);var curMode=$('.t-records').attr('data-tilda-mode');var tab=rec.find('.t817__tab');var select=rec.find('.t817__select');var content=rec.find('.t817__content');if(curMode!='edit'&&curMode!='preview'){t817_scrollToTabs(recid)}
t817_showTabByUrl(recid,tab,content,select);t817_showTab(tab,content,recid);t817_showTabMobile(select,content,recid)}
function t817_showTab(tab,content,recid){var tabNumber;var curUrl=window.location.href;var curMode=$('.t-records').attr('data-tilda-mode');tab.on('click',function(e){tabNumber=$(this).attr('data-tab-number');tab.removeClass('t817__tab_active');content.removeClass('t817__content_active');$(this).addClass('t817__tab_active');t817_removeUrl();content.each(function(i){if($(content[i]).attr('data-tab-content-number')==tabNumber){$(content[i]).addClass('t817__content_active')}});if(curMode!='edit'&&curMode!='preview'){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumber)}}
if(typeof $('.t-records').attr('data-tilda-mode')=='undefined'){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
e.preventDefault()})}
function t817_showTabMobile(select,content,recid){var tabNumberMobile;var curUrl=window.location.href;var curMode=$('.t-records').attr('data-tilda-mode');select.change(function(e){tabNumberMobile=$(this).val();content.removeClass('t817__content_active');t817_removeUrl();content.each(function(i){if($(content[i]).attr('data-tab-content-number')==tabNumberMobile){$(content[i]).addClass('t817__content_active')}});if(curMode!='edit'&&curMode!='preview'){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',window.location.href+'#!/tab/'+recid+'-'+tabNumberMobile)}}
if(typeof $('.t-records').attr('data-tilda-mode')=='undefined'){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
e.preventDefault()})}
function t817_showTabByUrl(recid,tab,content,select){var curUrl=window.location.href;var tabIndexNumber=curUrl.indexOf(recid+'-');var tabIndex=curUrl.substring(tabIndexNumber+recid.length+1);if(tabIndexNumber!=-1){tab.each(function(i){if($(tab[i]).attr('data-tab-number')==tabIndex){$(tab[i]).addClass('t817__tab_active')}});content.each(function(i){if($(content[i]).attr('data-tab-content-number')==tabIndex){$(content[i]).addClass('t817__content_active')}});select.val(tabIndex)}else{tab.first().addClass('t817__tab_active');content.first().addClass('t817__content_active')}}
function t817_scrollToTabs(recid){var curUrl=window.location.href;var tabIndexNumber=curUrl.indexOf('#!/tab/');var tabIndexNumberStart=curUrl.indexOf('tab/');if(tabIndexNumber!=-1){var tabRec=curUrl.substring(tabIndexNumberStart+4,tabIndexNumberStart+4+recid.length)
if(+tabRec==+recid){var tabBlock=$('#rec'+tabRec).find('.t817');var targetOffset=tabBlock.offset().top;if($(window).width()>960){var target=targetOffset-200}else{var target=targetOffset-100}
$('html, body').animate({scrollTop:target},300)}}}
function t817_removeUrl(){var curUrl=window.location.href;var indexToRemove=curUrl.indexOf('#!/tab/');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=curUrl.indexOf('%23!/tab/')}
curUrl=curUrl.substring(0,indexToRemove);if(indexToRemove!=-1){if(typeof history.replaceState!='undefined'){window.history.replaceState('','',curUrl)}}}
function t823_onSuccess(form){var inputsWrapper=form.find('.t-form__inputsbox');var inputsHeight=inputsWrapper.height();var inputsOffset=inputsWrapper.offset().top;var inputsBottom=inputsHeight+inputsOffset;var targetOffset=form.find('.t-form__successbox').offset().top;if($(window).width()>960){var target=targetOffset-200}else{var target=targetOffset-100}
if(targetOffset>$(window).scrollTop()||($(document).height()-inputsBottom)<($(window).height()-100)){inputsWrapper.addClass('t823__inputsbox_hidden');setTimeout(function(){if($(window).height()>$('.t-body').height()){$('.t-tildalabel').animate({opacity:0},50)}},300)}else{$('html, body').animate({scrollTop:target},400);setTimeout(function(){inputsWrapper.addClass('t823__inputsbox_hidden')},400)}
var successurl=form.data('success-url');if(successurl&&successurl.length>0){setTimeout(function(){window.location.href=successurl},500)}}
function t827_init(recid){var rec=$('#rec'+recid);var grid=rec.find('.t827__grid');var sizer=rec.find('.t827__grid-sizer');var item=rec.find('.t827__grid-item');var images=rec.find('.t827__grid img');var overlay=rec.find('.t827__overlay');var startContainerWidth=rec.find('.t827__grid-sizer').width();t827_reverse(grid,item);images.load(function(){t827_initMasonry(rec,recid,grid);setTimeout(function(){t827_showOverlay(overlay,item)},500)});if(overlay.hasClass('t827__overlay_preview')){setTimeout(function(){t827_showOverlay(overlay,item)},1000)}
t827_initMasonry(rec,recid,grid);$(window).bind('resize',t_throttle(function(){if(typeof window.noAdaptive!=='undefined'&&window.noAdaptive===!0&&window.isMobile){return}
t827_calcColumnWidth(rec,startContainerWidth,grid,sizer,item)}));rec.find('.t827').bind('displayChanged',function(){t827_initMasonry(rec,recid,grid);t827_calcColumnWidth(rec,startContainerWidth,grid,sizer,item)});setTimeout(function(){t827_calcColumnWidth(rec,startContainerWidth,grid,sizer,item)})}
function t827_reverse(grid,item){if(grid.hasClass('t827__grid_reverse')){grid.append(function(){return $(this).children().get().reverse()})}}
function t827_initMasonry(rec,recid,grid){var $grid=grid;var gutterSizerWidth=rec.find('.t827__gutter-sizer').width();var gutterElement=rec.find('.t827__gutter-sizer').width()==40?39:'#rec'+recid+' .t827__gutter-sizer';t_onFuncLoad('imagesLoaded',function(){$grid.imagesLoaded(function(){$grid.masonry({itemSelector:'#rec'+recid+' .t827__grid-item',columnWidth:'#rec'+recid+' .t827__grid-sizer',gutter:gutterElement,isFitWidth:!0,transitionDuration:0})})})}
function t827_showOverlay(overlay,item){if($(window).width()>=1024){overlay.css('display','block')}else{item.click(function(){if($(this).find('.t827__overlay').css('opacity')=='0'){overlay.css('opacity','0');$(this).find('.t827__overlay').css('opacity','1')}else{$(this).find('.t827__overlay').css('opacity','0')}})}}
function t827_calcColumnWidth(rec,startcontainerwidth,grid,sizer,item){var containerWidth=rec.find('.t827__container').width();var sizerWidth=rec.find('.t827__grid-sizer').width();var itemWidth=rec.find('.t827__grid-item').width();var gutterSizerWidth=rec.find('.t827__gutter-sizer').width()==40?39:rec.find('.t827__gutter-sizer').width();var columnAmount=Math.round(containerWidth/startcontainerwidth);var newSizerWidth=((containerWidth-gutterSizerWidth*(columnAmount-1))/columnAmount);if(containerWidth>=itemWidth){sizer.css('width',newSizerWidth);item.css('width',newSizerWidth)}else{grid.css('width','100%');sizer.css('width','100%');item.css('width','100%')}}
function t842_init(recid){var rec=$('#rec'+recid);var container=rec.find('.t842');var doResize;t842_unifyHeights(rec);$(window).on('resize',function(){clearTimeout(doResize);doResize=setTimeout(function(){t842_unifyHeights(rec)},200)});$(window).on('load',function(){t842_unifyHeights(rec)});$('.t842').on('displayChanged',function(){t842_unifyHeights(rec)});if(container.hasClass('t842__previewmode')){setInterval(function(){t842_unifyHeights(rec)},5000)}}
function t842_unifyHeights(rec){if($(window).width()>=960){rec.find('.t842 .t-container .t842__row').each(function(){var highestBox=0;var row=$(this);$('.t842__inner-col',this).each(function(){var col=$(this);var wrap=col.find('.t842__wrap');var colHeight=wrap.outerHeight();if(colHeight>highestBox){highestBox=colHeight}});$('.t842__inner-col',this).css('height',highestBox);$('.t842__bgimg',this).css('height',highestBox)})}else{$('.t842__inner-col').css('height','auto');$('.t842__bgimg').css('height','auto')}}
function t843_init(recid){var rec=$('#rec'+recid);var container=rec.find('.t843');t843_setHeight(rec);$(window).bind('resize',t_throttle(function(){if(typeof window.noAdaptive!=='undefined'&&window.noAdaptive===!0&&window.isMobile){return}
t843_setHeight(rec)}));rec.find('.t843').bind('displayChanged',function(){t843_setHeight(rec)});if(container.hasClass('t843__previewmode')){setInterval(function(){t843_setHeight(rec)},5000)}}
function t843_setHeight(rec){var image=rec.find('.t843__blockimg');var isLoaded=!0;image.each(function(){var width=$(this).attr('data-image-width');var height=$(this).attr('data-image-height');var ratio=height/width;var padding=ratio*100;$(this).css('padding-bottom',padding+'%');if(!$(this).hasClass('loaded')){isLoaded=!1}});if($(window).width()>960){var textwr=rec.find('.t843__textwrapper');var deskimg=rec.find('.t843__desktopimg');textwr.each(function(i){$(this).css('height',$(deskimg[i]).innerHeight())})}
if(!isLoaded){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}}
function t849_init(recid){var el=$('#rec'+recid);var toggler=el.find('.t849__header');var accordion=el.find('.t849__accordion');if(accordion){accordion=accordion.attr('data-accordion')}else{accordion="false"}
toggler.click(function(){if(accordion==="true"){toggler.not(this).removeClass("t849__opened").next().slideUp()}
$(this).toggleClass('t849__opened');$(this).next().slideToggle();if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
function t850_init(recid){var rec=$('#rec'+recid);var container=rec.find('.t850');var doResize;t850_unifyHeights(rec);$(window).on('resize',function(){clearTimeout(doResize);doResize=setTimeout(function(){t850_unifyHeights(rec)},200)});$(window).on('load',function(){t850_unifyHeights(rec)});$('.t850').on('displayChanged',function(){t850_unifyHeights(rec)});if(container.hasClass('t850__previewmode')){setInterval(function(){t850_unifyHeights(rec)},5000)}}
function t850_unifyHeights(rec){if($(window).width()>=960){rec.find('.t850 .t-container .t850__row').each(function(){var highestBox=0;var currow=$(this);$('.t850__inner-col',this).each(function(){var curCol=$(this);var curText=curCol.find('.t850__wrap');var curColHeight=curText.outerHeight();if(curColHeight>highestBox){highestBox=curColHeight}});$('.t850__inner-col',this).css('height',highestBox)})}else{$('.t850__inner-col').css('height','auto')}}
function t856_init(recid){var rec=$('#rec'+recid+' .t856');var doResize;setTimeout(function(){t856_setHeight(rec);t856_updateLazyLoad(recid)},500);$(window).resize(function(){clearTimeout(doResize);doResize=setTimeout(function(){t856_setHeight(rec)},200)});$('.t856').bind('displayChanged',function(){t856_setHeight(rec)});if(rec.hasClass('t856__previewmode')){setInterval(function(){t856_setHeight(rec)},5000)}}
function t856_setHeight(rec){var ratio=rec.attr('data-tile-ratio');var ratioHeight=rec.find('.t856__col').width()*ratio;rec.find('.t856__row').each(function(){var largestHeight=0;var currow=$(this);$('.t856__table',this).each(function(){var curCol=$(this);var curColHeight=curCol.find('.t856__textwrapper').outerHeight();if($(this).find('.t856__cell').hasClass('t856__button-bottom')){curColHeight+=curCol.find('.t856__button-container').outerHeight()}
if(curColHeight>largestHeight){largestHeight=curColHeight}});if($(window).width()>=960){if(largestHeight>ratioHeight){$('.t856__table',this).css('height',largestHeight)}
else{$('.t856__table',this).css('height',ratioHeight)}
$('.t856__table',this).css('min-height','auto')}else{$('.t856__table',this).css('min-height',ratioHeight);$('.t856__table',this).css('height','')}
if(t856_GetIEVersion()>0){var curRowHeight=$('.t856__table',this).css('height');$('.t856__bg',this).css('height',curRowHeight);$('.t856__overlay',this).css('height',curRowHeight)}})}
function t856_GetIEVersion(){var sAgent=window.navigator.userAgent;var Idx=sAgent.indexOf("MSIE");if(Idx>0){return parseInt(sAgent.substring(Idx+5,sAgent.indexOf(".",Idx)))}else{if(!!navigator.userAgent.match(/Trident\/7\./)){return 11}else{return 0}}}
function t856_updateLazyLoad(recid){var scrollContainer=$("#rec"+recid+" .t856__container_mobile-flex");var curMode=$(".t-records").attr("data-tilda-mode");if(scrollContainer.length&&curMode!="edit"&&curMode!="preview"){scrollContainer.bind('scroll',t_throttle(function(){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},500))}}
function t857__init(recid){$('.t857__container_mobile-flex').bind('touchstart',function(){$('.t857__col').bind('touchmove',function(){if(typeof $(".t-records").attr('data-tilda-mode')=='undefined'){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}})}).mouseup(function(){$('.t857__col').unbind('touchend')})}
function t858_init(recid){var rec=$('#rec'+recid);var container=rec.find('.t858');var doResize;t858_unifyHeights(rec);$(window).resize(function(){clearTimeout(doResize);doResize=setTimeout(function(){t858_unifyHeights(rec)},200)});$(window).on('load',function(){t858_unifyHeights(rec)});$('.t858').on('displayChanged',function(){t858_unifyHeights(rec)});if(container.hasClass('t858__previewmode')){setInterval(function(){t858_unifyHeights(rec)},5000)}}
function t858_unifyHeights(rec){if($(window).width()>=960){rec.find('.t858 .t-container .t858__row').each(function(){var highestBox=0;var currow=$(this);$('.t858__inner-col',this).each(function(){var curCol=$(this);var curWrap=curCol.find('.t858__wrap');var curColHeight=curWrap.outerHeight();if(curColHeight>highestBox){highestBox=curColHeight}});$('.t858__inner-col',this).css('height',highestBox)})}else{$('.t858__inner-col').css('height','auto')}}
function t859_init(recid){var rec=$('#rec'+recid);var container=rec.find('.t859');var doResize;t859_unifyHeights(rec);$(window).on('resize',t_throttle(function(){if(typeof window.noAdaptive!="undefined"&&window.noAdaptive==!0&&$isMobile){return}
t859_unifyHeights(rec)}));$(window).on('load',function(){t859_unifyHeights(rec)});rec.find('.t859').on('displayChanged',function(){t859_unifyHeights(rec)});if(container.hasClass('t859__previewmode')){setInterval(function(){t859_unifyHeights(rec)},5000)}}
function t859_unifyHeights(rec){if($(window).width()>=960){rec.find('.t859 .t-container .t859__row').each(function(){var highestBox=0;var currow=$(this);$('.t859__inner-col',this).each(function(){var curCol=$(this);var curWrap=curCol.find('.t859__wrap');var curColHeight=curWrap.outerHeight();if(curColHeight>highestBox){highestBox=curColHeight}});$('.t859__inner-col',this).css('height',highestBox)})}else{$('.t859__inner-col').css('height','auto')}}
function t886_init(recid){var el=$('#rec'+recid);var block=el.find('.t886');var closeBtn=el.find('.t886__btn');var storageItem=block.attr("data-storage-item");var lastOpen=localStorage.getItem(storageItem);if(lastOpen==null){block.removeClass('t886_closed')}
closeBtn.click(function(e){block.addClass('t886_closed');localStorage.setItem(storageItem,Math.floor(Date.now()/1000));e.preventDefault()})}
function t899_init(recid){var el=$('#rec'+recid);t899_setMinHeight(recid);$(window).bind('resize',t_throttle(function(){if(typeof window.noAdaptive!=='undefined'&&window.noAdaptive===!0&&window.isMobile){return}
t899_setMinHeight(recid)}));el.find('.t899').bind('displayChanged',function(){t899_setMinHeight(recid)});if(window.isMobile){$(window).on('orientationchange',function(){t899_setMinHeight(recid)})}}
function t899_setMinHeight(recid){var el=$('#rec'+recid);var wrappers=el.find('.t899__wrapper');wrappers.each(function(i,wrapper){var wrapperHeight=$(wrapper).outerHeight();var symbol=$(wrapper).find('.t899__symbol');var symbolHeight=symbol.outerHeight();if(symbolHeight>wrapperHeight){$(wrapper).css('min-height',symbolHeight+'px')}})}
function t902_init(recid){var el=$('#rec'+recid);t902_unifyHeights(recid);$(window).bind('resize',t_throttle(function(){t902_unifyHeights(recid)}));el.find('.t902').bind('displayChanged',function(){t902_unifyHeights(recid)})}
function t902_unifyHeights(recid){var el=$('#rec'+recid);var wrappers=el.find('.t902__wrap');if($(window).width()>960){el.find('.t902__row').each(function(i,row){var highestBox=0;$(row).find('.t902__inner-col').each(function(i,col){var wrapper=$(col).find('.t902__wrap');var colHeight=wrapper.outerHeight();if(colHeight>highestBox){highestBox=colHeight}});if(highestBox>0){$('.t902__inner-col',this).css('height',highestBox);$('.t902__bgimg',this).css('height',highestBox)}})}else{$('.t902__inner-col').css('height','auto');$('.t902__bgimg').css('height','auto')}
wrappers.each(function(i,wrapper){var wrapperHeight=$(wrapper).outerHeight();var content=$(wrapper).find('.t902__content');var contentHeight=content.outerHeight();if(wrapperHeight<contentHeight){$(wrapper).css('min-height',contentHeight+'px')}})}
function t905_init(recid){var el=$('#rec'+recid);t905_unifyHeights(recid);$(window).on('resize',t_throttle(function(){t905_unifyHeights(recid)}));$(window).on('load',function(){t905_unifyHeights(recid)});el.find('.t905').on('displayChanged',function(){t905_unifyHeights(recid)})}
function t905_unifyHeights(recid){var el=$('#rec'+recid);var cards=el.find('.t905__card');cards.each(function(i,card){var img=$(card).find('.t905__image');var imgHeight=$(img).outerHeight();var content=$(card).find('.t905__content');var contentHeight=$(content).outerHeight();if(contentHeight>imgHeight){img.css('height',contentHeight+'px');img.css('padding-bottom','initial')}})}
function t908_init(recid){var rec=$('#rec'+recid);var item=rec.find('.t908__item');var imageContainer=rec.find('.t908__box-img');rec.find('.t908__item').first().addClass('t908__item_active');rec.find('.t908__box-img').first().addClass('t908__box-img_active');t908_changeActiveTab(item,imageContainer)}
function t908_changeActiveTab(item,imageContainer){var itemNumber;item.on('click',function(e){itemNumber=$(this).attr('data-item-number');imageContainer.removeClass('t908__box-img_active');item.removeClass('t908__item_active');$(this).addClass('t908__item_active');imageContainer.each(function(i){if($(imageContainer[i]).attr('data-item-content-number')===itemNumber){$(imageContainer[i]).addClass('t908__box-img_active')}});if(typeof $('.t-records').attr('data-tilda-mode')==='undefined'){if(window.lazy==='y'||$('#allrecords').attr('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}})}
function t923_init(recid){var el=$('#rec'+recid);t923_unifyHeights(recid);$(window).on('resize',t_throttle(function(){t923_unifyHeights(recid)}));el.find(".t923").on("displayChanged",function(){t923_unifyHeights(recid)});$(window).on('load',function(){t923_unifyHeights(recid)})}
function t923_unifyHeights(recid){var el=$('#rec'+recid);var cols=el.find(".t923__content");var maxHeight=0;cols.each(function(){var text=$(this).find(".t923__textwrapper");var btns=$(this).find(".t923__btn-wrapper, .t923__btntext-wrapper");var itemHeight=text.outerHeight()+btns.outerHeight();if(itemHeight>maxHeight){maxHeight=itemHeight}});cols.each(function(i,el){var height=$(el).css("height");if(height!==maxHeight+'px'){$(el).css("height",maxHeight)}});t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)})}
function t969_init(recid){var el_rec=$('#rec'+recid);var el_branches=el_rec.find('.t969');if($('#tildacopy').length>0){window.addEventListener('scroll',function(ev){if((window.innerHeight+window.pageYOffset+70)>=document.body.offsetHeight){var offsetBottom=70-(document.body.offsetHeight-(window.innerHeight+window.pageYOffset));el_branches.css('bottom',offsetBottom+'px')}else{el_branches.css('bottom','0px')}})}}
function t971_init(recids){recids=recids.split(',');recids.forEach(function(item){t971_createSnowfall(item)})}
function t971_getRandom(min,max){min=Math.ceil(min);max=Math.floor(max);return Math.floor(Math.random()*(max-min+1))+min}
function t971_createSnowfall(recid){var snowSettings={number:50,minDuration:10,maxDuration:20,}
var el_snowfallWrapper,snowfallHeight,wrappertype;var wrapperblock=$('#rec'+recid);if(recid&&wrapperblock){var zeroattr=wrapperblock.attr('data-record-type');if(zeroattr==396){wrappertype=" .t396__artboard"}else{wrappertype=" .t-cover"}
el_snowfallWrapper=$('#rec'+recid+wrappertype);var isWrapperPositioned=(el_snowfallWrapper.length>0)&&(el_snowfallWrapper.css('position')!=='static');if(isWrapperPositioned){snowfallHeight=el_snowfallWrapper.height()+'px'}else{el_snowfallWrapper=$('body');snowfallHeight=Math.round(window.innerHeight)+'px'}}else{el_snowfallWrapper=$('body');snowfallHeight=Math.round(window.innerHeight)+'px'}
var style='.t971__snowfall { '+'position: absolute; '+'top: 0; '+'width: 100%;'+'height: '+snowfallHeight+';'+'backface-visibility: hidden;'+'pointer-events: none;'+'z-index: 50000; '+'display: block; '+'overflow: hidden; '+'pointer-events: none; '+'} '+'.t971__snowflake { '+'position: absolute; '+'left: 0; '+'top: 0; '+'display: none;'+'} ';el_snowfallWrapper.append('<div id="t971__snowfall" class="t971__snowfall"></div>');var el_snowfallContainer=$('.t971__snowfall');var styleRule='';var snowfall='';var snowflake=['<svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M15.934 1V29.739M29.72 14.795H1M26.273 4.448L5.595 25.141M26.273 25.141L5.595 4.448M20.529 4.448H11.339M20.529 25.141H11.339M26.273 19.393V10.196M5.595 19.393V10.196" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>','<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M7.319 1V13.6453M13.637 7.3226H1M11.797 2.8585L2.858 11.804M11.797 11.804L2.858 2.8585" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>','<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M13.636 1V26.2906M26.273 13.6453H1M22.827 22.8419L4.446 4.4488M22.827 4.4488L4.446 22.8419L13.6365 13.6453L22.827 4.4488ZM6.744 6.7479H20.529V20.5428H6.744V6.7479Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>','<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M13.637 1V26.291M26.273 13.645H1M22.664 4.61299L4.612 22.678M22.664 22.678L4.612 4.61299M17.245 2.806L13.625 6.41899L10.024 2.806H17.245ZM10.024 24.484L13.625 21.774L17.245 24.484H10.024ZM24.467 17.258L20.857 13.655L24.467 10.033V17.258ZM2.804 10.033L6.414 13.655L2.804 17.258V10.033Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>'];for(i=1;i<=snowSettings.number;i++){var parentHeight=snowfallHeight,leftStart=Math.round(window.innerWidth/(100/t971_getRandom(0,100))),leftOffset=Math.round(window.innerWidth/(100/t971_getRandom(-10,10))),leftEnd=leftStart+leftOffset,duration=t971_getRandom(snowSettings.minDuration,snowSettings.maxDuration),delay=t971_getRandom(1,30).toFixed(2)*-1,opacity=Math.random().toFixed(2),flakeStyle=t971_getRandom(0,3);styleRule='.t971__snowflake:nth-child('+i+') {'+'max-width: 40px;'+'max-height: 40px;'+'display: block;'+'opacity: '+opacity+';'+'-moz-animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'-webkit-animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'}'+'@keyframes snow-'+i+' {'+'0% {'+'transform: translate('+leftStart+'px, -10px)'+'}'+'80% {'+'opacity: '+opacity+';'+'}'+'100% {'+'opacity: 0;'+'transform: translate('+leftEnd+'px, '+parentHeight+')'+'}'+'}';style+=styleRule;snowfall+='<div class="t971__snowflake">'+snowflake[flakeStyle]+'</div>'}
el_snowfallContainer.append(snowfall);$('head').append('<style>'+style+'</style>')}
function t976_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;var hash=window.location.hash;if(url.substr(url.length-1)=='/'){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)=='/'){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)=='/'){pathname=pathname.slice(1)}
if(pathname==''){pathname='/'}
$(".t976__list-item a[href='"+url+"'] ").addClass('t-active');$(".t976__list-item a[href='"+url+"/']").addClass('t-active');$(".t976__list-item a[href='"+pathname+"']").addClass('t-active');$(".t976__list-item a[href='/"+pathname+"']").addClass('t-active');$(".t976__list-item a[href='"+pathname+"/']").addClass('t-active');$(".t976__list-item a[href='/"+pathname+"/']").addClass('t-active');if(hash){$(".t976__list-item a[href='"+hash+"']").addClass('t-active')}}
function t976_checkAnchorLinks(recid){var navLinks=$('#rec'+recid+" .t976__list-item a:not(.tooltipstered)[href*='#']");if(navLinks.length>0){t976_catchScroll(navLinks)}}
function t976_catchScroll(navLinks){var clickedSectionId=null,sections=new Array(),sectionIdTonavigationLink=[],interval=100,lastCall,timeoutId;navLinks=$(navLinks.get().reverse());navLinks.each(function(){var cursection=t976_getSectionByHref($(this));if(typeof cursection.attr('id')!='undefined'){sections.push(cursection)}
sectionIdTonavigationLink[cursection.attr('id')]=$(this)});t976_updateSectionsOffsets(sections);sections.sort(function(a,b){return b.attr('data-offset-top')-a.attr('data-offset-top')});$(window).bind('resize',t_throttle(function(){t976_updateSectionsOffsets(sections)},200));$('.t976').bind('displayChanged',function(){t976_updateSectionsOffsets(sections)});setInterval(function(){t976_updateSectionsOffsets(sections)},5000);t976_highlightNavLinks(navLinks,sections,sectionIdTonavigationLink,clickedSectionId);navLinks.click(function(){var clickedSection=t976_getSectionByHref($(this));if(!$(this).hasClass('tooltipstered')&&typeof clickedSection.attr('id')!='undefined'){navLinks.removeClass('t-active');$(this).addClass('t-active');clickedSectionId=t976_getSectionByHref($(this)).attr('id')}});$(window).scroll(function(){var now=new Date().getTime();if(lastCall&&now<lastCall+interval){clearTimeout(timeoutId);timeoutId=setTimeout(function(){lastCall=now;clickedSectionId=t976_highlightNavLinks(navLinks,sections,sectionIdTonavigationLink,clickedSectionId)},interval-(now-lastCall))}else{lastCall=now;clickedSectionId=t976_highlightNavLinks(navLinks,sections,sectionIdTonavigationLink,clickedSectionId)}})}
function t976_updateSectionsOffsets(sections){$(sections).each(function(){var curSection=$(this);curSection.attr('data-offset-top',curSection.offset().top)})}
function t976_getSectionByHref(curlink){var curLinkValue=curlink.attr('href').replace(/\s+/g,'').replace(/.*#/,'');if(curlink.is('[href*="#rec"]')){return $(".r[id='"+curLinkValue+"']")}else{return $(".r[data-record-type='215']").has("a[name='"+curLinkValue+"']")}}
function t976_highlightNavLinks(navLinks,sections,sectionIdTonavigationLink,clickedSectionId){var scrollPosition=$(window).scrollTop(),valueToReturn=clickedSectionId;if(sections.length!=0&&clickedSectionId==null&&sections[sections.length-1].attr('data-offset-top')>scrollPosition+300){navLinks.removeClass('t-active');return null}
$(sections).each(function(e){var curSection=$(this),sectionTop=curSection.attr('data-offset-top'),id=curSection.attr('id'),navLink=sectionIdTonavigationLink[id];if(scrollPosition+300>=sectionTop||(sections[0].attr('id')==id&&scrollPosition>=$(document).height()-$(window).height())){if(clickedSectionId==null&&!navLink.hasClass('t-active')){navLinks.removeClass('t-active');navLink.addClass('t-active');valueToReturn=null}else{if(clickedSectionId!=null&&id==clickedSectionId){valueToReturn=null}}
return!1}});return valueToReturn}
function t979_init(recid,rowheight,guttersizer){var rec=$('#rec'+recid);var grid=rec.find('.t979__grid');var item=rec.find('.t979__grid-item');var images=rec.find('.t979__image');var overlay=rec.find('.t979__overlay');if(guttersizer===''){guttersizer=0}
t979_reverse(grid,item);t_onFuncLoad('imagesLoaded',function(){grid.imagesLoaded(function(instance,image){t_throttle(t979_initMasonry(rec,recid,grid,rowheight,guttersizer));images.each(function(){$(this).attr('src',$(this).attr('data-original'));$(this).show()});setTimeout(function(){t979_showOverlay(overlay,item)},500)})});rec.find('.t979').bind('displayChanged',function(){t_throttle(t979_initMasonry(rec,recid,grid,rowheight,guttersizer))});$(window).bind('resize',function(){if(typeof window.noAdaptive!="undefined"&&window.noAdaptive==!0&&$isMobile){return}
t_throttle(t979_initMasonry(rec,recid,grid,rowheight,guttersizer))});if(overlay.hasClass('t979__overlay_preview')){setTimeout(function(){t979_showOverlay(overlay,item)},1000)}}
function t979_showOverlay(overlay,item){if($(window).width()>=1024){overlay.css('display','block')}else{item.click(function(){if($(this).find('.t979__overlay').css('opacity')=='0'){overlay.css('opacity','0');$(this).find('.t979__overlay').css('opacity','1')}else{$(this).find('.t979__overlay').css('opacity','0')}})}}
function t979_reverse(grid,item){if(grid.length>0&&grid.hasClass('t979__grid_reverse')){grid.append(function(){return $(this).children().get().reverse()})}}
function t979_initMasonry(rec,recid,grid,rowheight,guttersizer){var containerWidth=grid.width();var gutterSizer=parseInt(guttersizer,10);var heightSizer=parseInt(rowheight,10);var imageWidths=t979_getImageWidths(grid,heightSizer);var rows=t979_divideRows(imageWidths,containerWidth);var heights=[];t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer);t979_updateItems(grid,rows,heights,gutterSizer);t979_updateGridHeight(grid,heights,gutterSizer)}
function t979_getImageWidths(grid,heightSizer){var imageWidths=[];grid.find('.t979__image').each(function(){imageWidths.push(this.naturalWidth*heightSizer/this.naturalHeight)});return imageWidths}
function t979_divideRows(imageWidths,containerWidth){var rows=[];var curRow=0;var rowWidth=0;imageWidths.forEach(function(item){rowWidth+=item;if(typeof rows[curRow]=='undefined'){rows[curRow]=[]}
rows[curRow].push(item);if(rowWidth>=containerWidth){curRow+=1;rowWidth=0}});return rows}
function t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer){rows.forEach(function(row,index){var sumWidth=0;var thresholdRatio=1.5;var rowWidth=containerWidth-gutterSizer*(row.length-1);row.forEach(function(width){sumWidth+=width});var ratio=rowWidth/sumWidth;if(ratio<thresholdRatio){row.forEach(function(width,curRow){width*=ratio;row[curRow]=width});heights.push(heightSizer*ratio)}else{heights.push(heightSizer)}
sumWidth=0;row.forEach(function(width){sumWidth+=width})})}
function t979_updateItems(grid,rows,heights,gutterSizer){var curRow=0,curCol=0,top=0,left=0,width=0;grid.find('.t979__grid-item').each(function(){if(curCol>=rows[curRow].length){top+=heights[curRow];curRow++;curCol=0;if(curRow!==0){top+=gutterSizer};left=0}
left+=rows[curRow][curCol-1]?rows[curRow][curCol-1]+gutterSizer:0;width=rows[curRow][curCol];height=heights[curRow];$(this).css({'top':top,'left':left,'width':width,'height':height});curCol++})}
function t979_updateGridHeight(grid,heights,gutterSizer){var sumHeight=heights.reduce(function(cur,acc){return cur+acc+gutterSizer},0);sumHeight-=gutterSizer;grid.css('height',sumHeight)}
function t982_init(recid){var rec=$('#rec'+recid);var social=rec.find('.t982__socials');var cards=rec.find('.t982__itemwrapper');if(typeof social!=='undefined'&&social.length>0){social.each(function(){var $this=$(this);var socialAttr=$this.attr('data-social-links');var links;$this.removeAttr('data-social-links');if(typeof socialAttr!=='undefined'){links=socialAttr.split(',');links.forEach(function(link){t982_addSocialsItem(link.trim(),$this)})}})}
t982_setEqualHeight(cards);rec.find('.t982').bind('displayChanged',t_throttle(function(){t982_setEqualHeight(cards)}))}
function t982_addSocialsItem(link,socialWrapper){var item=t982_findSocialsItem(link);if(item){var block='';block='<div class="t982__socials-item">';block+='<a href="'+link+'"  class="t982__socials-link" target="_blank" rel="nofollow noopener noreferrer">';block+=item.title;block+='</a>';block+='</div>';socialWrapper.append(block)}}
function t982_findSocialsItem(link){var socials=[{title:'Facebook',str:['facebook','fb.com']},{title:'Twitter',str:['twitter']},{title:'Vkontakte',str:['vk.com','vk.me']},{title:'Odnoklassniki',str:['ok.ru']},{title:'Behance',str:['behance']},{title:'Vimeo',str:['vimeo']},{title:'YouTube',str:['youtube','youtu.be']},{title:'Instagram',str:['instagram']},{title:'Pinterest',str:['pinterest']},{title:'LinkedIn',str:['linkedin']},{title:'SoundCloud',str:['soundcloud']},{title:'Telegram',str:['telegram','t.me']},{title:'WhatsApp',str:['wa.me']}];var socialsItem;socials.forEach(function(item){item.str.forEach(function(s){if(link.indexOf(s)!==-1){socialsItem=item}})});return socialsItem}
function t982_setEqualHeight(cards){var maxItemHeight=0;cards.each(function(){if($(this).height()==0){$(this).height('auto')}
if($(this).height()>maxItemHeight){maxItemHeight=$(this).height()}
if($(window).width()>=960){$(this).css('height',maxItemHeight)}else{$(this).css('height','auto')}})}