var version,version;(window.isSearchBot=!1,/Bot/i.test(navigator.userAgent)&&(window.isSearchBot=!0),window.isMobile=!1,window.$isMobile=!1,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(window.isMobile=!0,window.$isMobile=!0),window.isiOS=!1,/iPhone|iPad|iPod/i.test(navigator.userAgent)&&(window.isiOS=!0),window.isiOSChrome=!!navigator.userAgent.match("CriOS"),window.isiOSVersion="",window.isiOS)&&(null!==(version=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&(window.isiOSVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]));(window.isSafari=!1,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(window.isSafari=!0),window.isSafariVersion="",window.isSafari)&&(null!==(version=navigator.appVersion.match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/))&&(window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]));function t_throttle(fn,threshhold,scope){var last,deferTimer;return threshhold||(threshhold=250),function(){var context=scope||this,now=+new Date,args=arguments;last&&now.t396 [data-elem-type="text"] .tn-atom {zoom: '+100*factor+"%;}")}})),1==window.isMobile){var correctHeight=function(){for(var coverCarries=document.body.querySelectorAll(".t-cover__carrier"),viewPortHeight=$(window).height(),factor=0,i=0,l=coverCarries.length,cc,ccStyle,newHeight,parent,opacityLayer,textBox;i-1&&(factor=parseInt(ccStyle.height,10)/100,newHeight=Math.round(viewPortHeight*factor)+"px",(parent=$(cc).parent(".t-cover"))&&(parent=parent[0])&&(opacityLayer=parent.querySelector(".t-cover__filter"),textBox=parent.querySelector(".t-cover__wrapper"),opacityLayer&&(opacityLayer.style.height=newHeight),textBox&&(textBox.style.height=newHeight),ccStyle.height=parent.style.height=newHeight));var elCarries=document.body.querySelectorAll("[data-height-correct-vh]");viewPortHeight=$(window).height(),factor=0;for(var i=0,l=elCarries.length,cc,ccStyle,newHeight,parent,opacityLayer,textBox;i-1&&(factor=parseInt(ccStyle.height)/100,newHeight=viewPortHeight+"px",parent=$(cc).parent(".t-cover"),ccStyle.height=newHeight)};$(document).ready((function(){setTimeout((function(){correctHeight()}),400)})),$(window).on("load",(function(){setTimeout((function(){correctHeight()}),400)})),$(window).width()<480?($(document).ready((function(){var sta;$("div[data-customstyle=yes]").each((function(index){$(this).css("font-size").replace("px","")>26&&($(this).css("font-size",""),$(this).css("line-height",""))})),$("[field]").find("span").each((function(index){$(this).css("font-size").replace("px","")>26&&$(this).css("font-size","")})),$(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom, [data-auto-correct-line-height=false]").each((function(){if(void 0!==(sta=$(this).attr("style"))&&""!=sta&&sta.indexOf("font-size")>-1&&$(this).css("font-size").replace("px","")>26)if("rem"===$(this).attr("data-auto-correct-font-size")){var regex=new RegExp(/font-size.*px;/,"gi"),newsta=sta.replace(regex,"font-size: 1.6rem;").replace("line-height","lineheight");$(this).attr("style",newsta)}else{var newsta=sta.replace("font-size","fontsize").replace("line-height","lineheight");$(this).attr("style",newsta)}}))})),$(window).on("load",(function(){var window_width=$(window).width();$(".r:visible").each((function(){var el=$(this);$(this).find("div").not("[data-auto-correct-mobile-width=false], .tn-elem, .tn-atom, .tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__videoiframe, .tn-atom .t-form *, .tn-atom__sticky-wrapper, .t-store__relevants__container, .t-slds__items-wrapper, .js-product-controls-wrapper, .js-product-edition-option, .t-product__option-variants").each((function(){var r_div_width=parseInt($(this).outerWidth(!0));if(r_div_width>window_width){if($(this).is('[data-customstyle="yes"]')&&$(this).parent().is("[data-auto-correct-mobile-width=false]"))return;console.log("Block not optimized for mobile width. Block width:"+r_div_width+" Block id:"+el.attr("id")),console.log($(this)),el.css("overflow","auto"),r_div_width-3>window_width&&el.css("word-break","break-all")}}))}))}))):$(window).width()<900&&$(document).ready((function(){var sta;$("div[data-customstyle=yes]").each((function(index){$(this).css("font-size").replace("px","")>30&&($(this).css("font-size",""),$(this).css("line-height",""))})),$("[field]").find("span").each((function(index){$(this).css("font-size").replace("px","")>30&&$(this).css("font-size","")})),$(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each((function(index){if(void 0!==(sta=$(this).attr("style"))&&""!=sta&&sta.indexOf("font-size")>-1&&$(this).css("font-size").replace("px","")>30)if("rem"===$(this).attr("data-auto-correct-font-size")){var regex=new RegExp(/font-size.*px;/,"gi"),newsta=sta.replace(regex,"font-size: 1.6rem;").replace("line-height","lineheight");$(this).attr("style",newsta)}else{var newsta=sta.replace("font-size","fontsize").replace("line-height","lineheight");$(this).attr("style",newsta)}}))}))}}(jQuery),function($){function VideoLoadProcessor(){this.setScrollListener()}VideoLoadProcessor.prototype.videoTags=[],VideoLoadProcessor.prototype.defaultConfig={isNeedStop:!1},VideoLoadProcessor.prototype.videoConfigs=[],VideoLoadProcessor.prototype.registerNewVideo=function(video,config){if(!(video instanceof HTMLVideoElement))throw new Error("Wrong tag passed into registerNewVideo");return-1==this.videoTags.indexOf(video)&&(this.videoTags.push(video),this.videoConfigs.push(void 0===config?this.defaultConfig:config),this.scrollCb("",!0),!0)},VideoLoadProcessor.prototype.unergisterVideo=function(video){if(!(video instanceof HTMLVideoElement))throw new Error("Wrong tag passed into unregisterNewVideo");var index;return(index=this.videoTags.indexOf(video))>-1&&("function"==typeof video.remove?video.remove():video.parentNode&&video.parentNode.removeChild(video),this.pauseVideo(video,this.videoConfigs[index]),this.videoTags.splice(index,1),this.videoConfigs.splice(index,1),!0)},VideoLoadProcessor.prototype.pauseVideo=function(video,config){if(!config)throw new Error("Wrong config type!");video.pause(),config.isNeedStop&&video.load()},VideoLoadProcessor.prototype.setScrollListener=function(){$(window).bind("scroll",t_throttle(jQuery.proxy(this.scrollCb,this),200))},VideoLoadProcessor.prototype.scrollCb=function(e,firstInvoke){for(var windowHeight=$(window).height(),_shift=0,_v=null,i=0,l=this.videoTags.length;iwindowHeight/2){var vol=1-(Math.abs(_vrect.top)-windowHeight/2)/(windowHeight/2)-.2;vol>0&&vol<=1&&0!=_v.volume&&(_v.volume=vol)}Math.abs(_vrect.top)>windowHeight||0==_vrect.height?this.pauseVideo(_v,this.videoConfigs[i]):(firstInvoke&&_v.play(),_v.paused&&_v.loop&&_v.play())}},VideoLoadProcessor.prototype.getVideoObject=function(video){for(var i=0,l=this.videoTags.length;i>l;i++){var vo=this.videoTags[i];if(vo.v===video)return vo}return null},VideoLoadProcessor.prototype.getVideoBoundingRect=function(video,isNeedParent){void 0===isNeedParent&&(isNeedParent=!0);var parent=null;return isNeedParent&&(parent=$(video).parents(".r")[0])||(parent=video),parent.getBoundingClientRect()},window.videoLoadProcessor=new VideoLoadProcessor}(jQuery),function($){function SequenceController(){this.setScrollCb(),this.itemHeight=screen.availHeight;var itemTransitionItemRelation=.25;this.itemTransitionTop=.25*this.itemHeight,this.activeItemIndex=null,this.windowHeight=document.documentElement.clientHeight||window.innerHeight||screen.availHeight,this.topOffsetShift=-150,$(window).resize(jQuery.proxy(this.recalculateAllSequencesOffsets,this)),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)}function cover_fixcontentheight(id){var el=$("#rec"+id),hcover=el.find(".t-cover").height(),hcontent,hcontent;if((hcontent=el.find("div[data-hook-content]").outerHeight())>300&&hcover1e3&&(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),0==window.isMobile&&setTimeout((function(){var divvideo=el.find(".t-cover__carrier");divvideo.find("iframe").length>0&&(console.log("correct video from cover_fixcontentheight"),setWidthHeightYoutubeVideo(divvideo,hcontent+"px")),divvideo.find("video").length>0&&console.log("correct html5video from cover_fixcontentheight")}),2e3),"function"==typeof window.t_lazyload_updateResize_elem))try{window.t_lazyload_updateResize_elem(el.find(".t-cover__carrier"))}catch(e){console.log("error:"+e)}}function cover_checkIsFixForBackgroundNeeded(id){var rec=document.body.querySelector("#rec"+id);if(rec){var coverCarrier=rec.querySelector(".t-cover__carrier"),youtubeUrl,mp4Url,webmUrl;null!==coverCarrier&&(youtubeUrl=coverCarrier.getAttribute("data-content-video-url-youtube"),mp4Url=coverCarrier.getAttribute("data-content-video-url-mp4"),webmUrl=coverCarrier.getAttribute("data-content-video-url-webm"));var is_safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),isMobile;return!(window.isMobile||/Macintosh/.test(navigator.userAgent)&&"ontouchend"in document||!is_safari||youtubeUrl||mp4Url||webmUrl||!coverCarrier||"fixed"!==coverCarrier.getAttribute("data-content-cover-parallax")||window["cover"+id+"fixbackgroundstyles"])}}function cover_fixBackgroundFixedNode(id){if(cover_checkIsFixForBackgroundNeeded(id)){var rec=document.body.querySelector("#rec"+id),parent=document.body.querySelector("#rec"+id+" .t-cover").parentNode;if(console.log("new fix node background-position: fixed"),!window.cover_fixBackgroundStyles){var css=".t-cover__container {position: relative;}.t-cover__container .t-cover {clip: rect(0, auto, auto, 0);position: absolute;top: 0;left: 0;width: 100%;height: 100% !important;}.t-cover__container .t-cover .t-cover__carrier {position: fixed;display: block;top: 0;left: 0;width: 100%;height: 100%!important;background-size: cover;background-position: center center;transform: translateZ(0);will-change: transform;}",head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style");head.appendChild(style),style.type="text/css",style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css)),window.cover_fixBackgroundStyles=!0}var newWrapper=document.createElement("div");newWrapper.classList.add("t-cover__container"),parent.prepend(newWrapper);var cover=rec.querySelector(".t-cover"),coverHeight=cover.style.height;newWrapper.style.height=coverHeight,newWrapper.append(cover);var specificCovers,classContainer={275:".t256__video-container",286:".t266__video-container",337:".t-container",906:".t906__video-container"}[rec.getAttribute("data-record-type")];if(void 0!==classContainer){var container=rec.querySelector(classContainer);newWrapper.append(container)}window["cover"+id+"fixbackgroundnodes"]=!0}}function cover_fixBackgroundFixedStyles(id){var rec=document.body.querySelector("#rec"+id);if(cover_checkIsFixForBackgroundNeeded(id)){console.log("new fix style background-position: fixed");var newWrapper=rec.querySelector(".t-cover__container"),cover=rec.querySelector(".t-cover"),coverHeight=cover.style.height;cover.style.height=0,newWrapper.style.height=coverHeight,window["cover"+id+"fixbackgroundstyles"]=!0}}function processSrc(src,nocover,nomute){-1==src.indexOf("https://www.youtube.com/embed")&&(src="https://www.youtube.com/embed"+("/"==src[0]?src:"/"+src));var extractVideoId=function(src){for(var parts=src.split("/"),neededPart=null,i=0,l=parts.length;i=15&&(timer_player_do(frame,wnd,player,nomute),timer_count=0),timer_count++),timer=window.setTimeout((function(){timer_player_do(frame,wnd,player,nomute),timer_count=0}),100)})),wnd.scroll()}function timer_player_do(frame,wnd,player,nomute){var a,b,c,d,s;a=frame.offset().top,b=frame.height(),c=wnd.scrollTop(),d=wnd.height(),s=player.getPlayerState(),c+d>a&&c<=a+b?(1!==s&&player.playVideo(),"yes"==nomute&&(c>a+b-100?player.setVolume(30):c>a+b-200?player.setVolume(70):c+da-500?2!==s&&(player.playVideo(),player.pauseVideo()):2!==s&&player.pauseVideo()}SequenceController.prototype.defaultConfig={orientation:"vertical",speedFactor:1,automated:!1},SequenceController.prototype.sequenceObjects=[],SequenceController.prototype.recalculateAllSequencesOffsets=function(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeInterval&&clearInterval(this._resizeInterval),this._resizeTimeout=setTimeout(jQuery.proxy((function(){this.scrollCb(),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)}),this),10)},SequenceController.prototype.registerNewBlock=function(node){if(!(node instanceof HTMLElement))throw new Error("Wrong node type in registerNewBlock");for(var i=0,l=this.sequenceObjects.length;ithis.itemTransitionTop){currentItemIndex=i;break}if(null!=currentItemIndex){(opacity=nodeRect.top/this.itemTransitionTop)>1?opacity=1:opacity<0&&(opacity=0);for(var i=0,l=sequenceItems.length;i0&&boundingRect.bottom>boundingRect.height-sO.sequenceHeight-100?this.processSequence(sO):this.stopSequence(sO)}},SequenceController.prototype.setScrollCb=function(){this._scrollCb=jQuery.proxy(this.scrollCb,this),$(window).bind("scroll",t_throttle(this._scrollCb,200))},window.sequenceController=new SequenceController,window.processVideo=function(v){mp4Src=$(v).attr("data-content-video-url-mp4"),webmSrc=$(v).attr("data-content-video-url-webm"),$(v).css("background-color","transparent"),$(v).css("background-image","");var options={mp4:mp4Src,webm:webmSrc,preload:"none",autoplay:!1,loop:!0,scale:!0,zIndex:0,width:"100%"};vid=$(v).videoBG(options),videoLoadProcessor.registerNewVideo(vid,{isNeedStop:!1})},window.cover_init=function(id){$(document).ready((function(){var cover_carrier=document.body.querySelector("#coverCarry"+id),el=$(cover_carrier),backgroundurl=el.attr("data-content-cover-bg"),height=el.attr("data-content-cover-height"),parallax=el.attr("data-content-cover-parallax"),videomp4=el.attr("data-content-video-url-mp4"),videowebm=el.attr("data-content-video-url-webm"),youtubeid=el.attr("data-content-video-url-youtube"),noloop=el.attr("data-content-video-noloop"),nomute=el.attr("data-content-video-nomute"),bgbase64=el.attr("data-content-bg-base64"),video_nocover=el.attr("data-content-video-nocover");backgroundurl||(backgroundurl=""),height||(height=""),parallax||(parallax=""),videomp4||(videomp4=""),videowebm||(videowebm=""),youtubeid||(youtubeid=""),noloop||(noloop=""),nomute||(nomute=""),youtubeid||(youtubeid=""),bgbase64||(bgbase64=""),video_nocover&&"yes"==video_nocover&&(videomp4="",videowebm="",youtubeid=""),!window.isMobile||""==videowebm&&""==videomp4&&""==youtubeid||el.css("background-image","url('"+backgroundurl+"')"),setTimeout((function(){cover_fixcontentheight(id),cover_fixBackgroundFixedStyles(id)}),500),cover_fixBackgroundFixedNode(id);var clogo=$("#rec"+id).find("img[data-hook-clogo]");if(clogo.length&&clogo.load((function(){setTimeout((function(){cover_fixcontentheight(id),cover_fixBackgroundFixedStyles(id)}),500)})),window.isMobile&&$(window).on("orientationchange",(function(){cover_fixcontentheight(id),cover_fixBackgroundFixedStyles(id)})),(""!==videomp4||""!==videowebm||""!==youtubeid)&&0==window.isMobile)if(""!=youtubeid||""==videomp4&&""==videowebm){if(""!=youtubeid){var cotimer;el.css("background-color","#000000"),el.css("background-image",""),el.attr("data-content-cover-bg","");var flagprocessed=0,wnd;(wnd=$(window)).scroll((function(){cotimer&&window.clearTimeout(cotimer),cotimer=window.setTimeout((function(){var a,b,c,d,s;(flagprocessed=el.find("iframe").length)>0||(a=el.offset().top,b=el.height(),(c=wnd.scrollTop())+(d=wnd.height())>a-500&&c<=a+b+500&&processYoutubeVideo(cover_carrier,height))}),100)})),wnd.scroll()}}else{el.css("background-color","#000000"),el.css("background-image","url('https://tilda.ws/img/spinner-white.gif')"),el.css("background-size","auto"),el.attr("data-content-cover-bg","");var loop=!1;loop=""==noloop;var muted=!0;muted=""==nomute;var height_more_vh="",cotimer;"fixed"==parallax&&(height.indexOf("vh")>-1&&parseInt(height)>100&&(el.css("height","100vh"),height_more_vh="yes"),height.indexOf("px")>-1&&parseInt(height)>$(window).height()&&(el.css("height","100vh"),height_more_vh="yes"));var flagprocessed="",wnd=$(window),prnt=el.parent();wnd.scroll((function(){var aa,bb,cc,dd,ss;(cotimer&&window.clearTimeout(cotimer),cotimer=window.setTimeout((function(){var a,b,c,d,s;if(!(flagprocessed>0)&&(a=el.offset().top,b=el.height(),(c=wnd.scrollTop())+(d=wnd.height())>a-500&&c<=a+b+500)){var vid=el.videoBG({mp4:videomp4,webm:videowebm,poster:"",preload:"none",autoplay:"true",loop:loop,volume:1,scale:!0,zIndex:0,width:"100%"});vid.setAttribute("muted",muted),vid.setAttribute("playsinline",""),videoLoadProcessor.registerNewVideo(vid),flagprocessed=1}}),100),"fixed"==parallax&&"yes"==height_more_vh)&&(aa=prnt.offset().top,bb=prnt.height(),(cc=wnd.scrollTop())>=aa+bb-(dd=wnd.height())?(el.css("position","absolute"),el.css("bottom","0px"),el.css("top","auto")):cc>=aa?(el.css("position","fixed"),el.css("top","0px")):cc").attr("src",backgroundurl).load((function(){$(this).remove(),el.css("background-image","url('"+backgroundurl+"')"),el.css("opacity","1");var bg_already="yes"})),el.css("background-image",""),el.css("opacity","0"),el.css("transition","opacity 25ms")}var coverarrow=$("#rec"+id).find(".t-cover__arrow-wrapper");coverarrow.length>0&&coverarrow.click((function(){var recheight=$("#rec"+id).height();recheight>0&&$("html, body").animate({scrollTop:$("#rec"+id).offset().top+recheight},500)}))}))},$(document).ready((function(){var curMode;"edit"!=$(".t-records").attr("data-tilda-mode")&&$(".t-cover__carrier").each((function(){var id=$(this).attr("data-content-cover-id");id>0&&cover_init(id)}))}));var def=$.Deferred();function load_youtube_api(){if("yes"!==window.loadytapi_flag){window.loadytapi_flag="yes";var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}function setWidthHeightYoutubeVideo(el,height){console.log("setWidthHeightYoutubeVideo:"+height);var iframe=el.find("iframe"),nocover=el.attr("data-content-video-nocover"),noadcut=el.attr("data-content-video-noadcut-youtube"),customratio=el.attr("data-content-video-ratio"),video_ratio=.5625;if(customratio>0&&(video_ratio=1*parseFloat(customratio)),"yes"!=nocover){if(height||(height="100vh"),height.indexOf("vh")>-1){var wh=window.innerHeight;wh||(wh=$(window).height());var div_height=Math.floor(wh*(parseInt(height)/100))}else var div_height=parseInt(height);var div_width=Math.floor(parseInt(window.innerWidth));div_width||(div_width=$(window).width());var video_width=div_width,video_height,vw2=div_width,vh2=video_height=div_width*video_ratio,vh3=video_height,delta_coef=1;if("yes"==noadcut||(vh2=vh2+110+110,vh3=video_height-220),vh30&&iframe.css("margin-top",-Math.floor(heightDelta/2)+"px"),widthDelta>0&&iframe.css("margin-left",-Math.floor(widthDelta/2)+"px")}else{var video_height;height||(video_height=Math.floor(el.width()*video_ratio)),height&&height.indexOf("vh")>-1?video_height=Math.floor(window.innerHeight*(parseInt(height)/100)):height&&(video_height=parseInt(height)),iframe.css("width","100%"),iframe.height(video_height+"px")}}window.processYoutubeVideo=function(div,height){load_youtube_api();var defFunc=function(){var el=$(div),src=el.attr("data-content-video-url-youtube"),nomute=el.attr("data-content-video-nomute"),noloop=el.attr("data-content-video-noloop"),nocover=el.attr("data-content-video-nocover"),iframe=document.createElement("iframe"),playtimer;if(iframe.src=processSrc(src,nocover,nomute),iframe.frameBorder=0,iframe.allow="autoplay",div.appendChild(iframe),0==window.isMobile)var player=new YT.Player(iframe,{events:{onReady:function(e){onYouTubePlayerReady_do(div,e.target,nomute),e.target.setVolume&&"yes"!=nomute&&e.target.setVolume(0),e.target.setLoop(!0)},onStateChange:function(e){if(e.target.setVolume&&"yes"!=nomute&&e.target.setVolume(0),-1===e.data){var sp=window.fix_scrolltop_beforestop_youtube;sp>=0&&($("html, body").scrollTop(sp),delete window.fix_scrolltop_beforestop_youtube)}e.data===YT.PlayerState.PLAYING?playtimer=window.setInterval((function(){var a=e.target.getCurrentTime(),b=e.target.getDuration();a+1>b&&0!==b&&(e.target.seekTo(0),"yes"===noloop&&(e.target.stopVideo(),e.target.clearVideo()))}),1e3):window.clearTimeout(playtimer)}}});setWidthHeightYoutubeVideo(el,height)};def.then(defFunc)},window.onYouTubeIframeAPIReady=function(){def.resolve()}}(jQuery),function($){function Observer(){this.callbacks={}}Observer.prototype.defaultConfig={single:!1,context:null},Observer.prototype.addEventListener=function(name,callback,config){evtCallbacks=this._getEventCallbacks(name),evtCallbacks||(evtCallbacks=this.callbacks[name]=[]),evtCallbacks.push({callback:callback,config:"object"==typeof config?config:this.defaultConfig})},Observer.prototype._getEventCallbacks=function(name){return this.callbacks[name]},Observer.prototype.removeEventListener=function(name,callback){var cbs=this._getEventCallbacks(name);if(!cbs)return!1;for(var i=0,l=cbs.length,cbObj;i=0;i--)(a=(tile=$(tiles[i])).offset().top)<(b=tile.outerHeight()<=100?wnd.scrollTop()+wnd.height():wnd.scrollTop()+wnd.height()-100)&&(tile.removeClass("r_hidden"),tile.addClass("r_showed"),tiles.splice(i,1))}tiles.each((function(i){a=$(this).offset().top,b=wnd.scrollTop()+wnd.height()+300,a>1e3&&a>b?$(this).addClass("r_hidden"):$(this).addClass("r_showed"),$(this).addClass("r_anim")})),wnd.bind("scroll",t_throttle(blocksfade,200)),blocksfade()}"none"===$("html").css("display")&&$("html").css("display","block"),$("body").height()+70<$(window).height()?$(".t-tildalabel").css("display","none"):$(".t-tildalabel").attr("style","display: block !important")}))}(jQuery),function($){function setWindowVars(){var wnd=$(window);window.winWidth=wnd.width(),window.winHeight=wnd.height()}function blocksdisplay(){var window_width=$(window).width(),recs,max,min,disp;$("div.r[data-screen-max], div.r[data-screen-min]").each((function(i){"yes"!==$(this).attr("data-connect-with-tab")&&(disp=$(this).css("display"),void 0===(max=$(this).attr("data-screen-max"))&&(max=1e4),max=parseInt(max),void 0===(min=$(this).attr("data-screen-min"))&&(min=0),(min=parseInt(min))<=max&&(window_width<=max&&window_width>min?"block"!=disp&&$(this).css("display","block"):"none"!=disp&&$(this).css("display","none")))}))}$(document).ready((function(){0===$("#allrecordstable").length&&(setWindowVars(),blocksdisplay(),$(window).bind("resize",t_throttle(setWindowVars,200)),$(window).bind("resize",t_throttle(blocksdisplay,200)))}))}(jQuery),function($){function setWidthHeightHTMLVideo(vel,height_1){var el=vel.closest(".t-cover__carrier"),height=height_1+"";console.log("setWidthHeightHTMLVideo:"+height);var iframe=el.find("video"),nocover=el.attr("data-content-video-nocover"),customratio=el.attr("data-content-video-ratio"),video_ratio=.5625;if(customratio>0&&(video_ratio=1*parseFloat(customratio)),"yes"!=nocover){if(height||(height="100vh"),height.indexOf("vh")>-1){var wh=window.innerHeight;wh||(wh=$(window).height());var div_height=Math.floor(wh*(parseInt(height)/100))}else var div_height=parseInt(height);var div_width=Math.floor(parseInt(window.innerWidth));div_width||(div_width=$(window).width());var video_width=div_width,video_height,vw2=div_width,vh2=video_height=div_width*video_ratio,vh3,delta_coef=1;if(video_height0&&iframe.css("margin-top",-Math.floor(heightDelta/2)+"px"),widthDelta>0&&iframe.css("margin-left",-Math.floor(widthDelta/2)+"px")}else{var video_height;height||(video_height=Math.floor(el.width()*video_ratio)),height&&height.indexOf("vh")>-1?video_height=Math.floor(window.innerHeight*(parseInt(height)/100)):height&&(video_height=parseInt(height)),iframe.css("width","100%"),iframe.height(video_height+"px")}}$.fn.videoBG=function(selector,options){var options={};if("object"==typeof selector)options=$.extend({},$.fn.videoBG.defaults,selector);else{if(selector)return $(selector).videoBG(options);options=$.fn.videoBG.defaults}var container=$(this);if(container.length){"static"!=container.css("position")&&container.css("position")||container.css("position","relative"),0==options.width&&(options.width=container.width()),0==options.height&&(options.height=container.height()),options.textReplacement&&(options.scale=!0,container.width(options.width).height(options.height).css("text-indent","-9999px"));var video=$.fn.videoBG.video(options);return options.scale&&video.height(options.height).width(options.width),container.append(video),void 0===container.attr("data-content-video-nomute")&&container.find("video").prop("muted","true"),setWidthHeightHTMLVideo(video,options.height),video.find("video")[0]}},$.fn.videoBG.setFullscreen=function($el){var windowWidth=$(window).width(),windowHeight=$(window).height(),height,shift,width,shift;if($el.css("min-height",0).css("min-width",0),$el.parent().width(windowWidth).height(windowHeight),windowWidth/windowHeight>$el.aspectRatio)$el.width(windowWidth).height("auto"),(shift=($el.height()-windowHeight)/2)<0&&(shift=0),$el.css("top",-shift);else if($el.width("auto").height(windowHeight),(shift=($el.width()-windowWidth)/2)<0&&(shift=0),$el.css("left",-shift),0===shift)var t=setTimeout((function(){$.fn.videoBG.setFullscreen($el)}),500);$("body > .videoBG_wrapper").width(windowWidth).height(windowHeight)},$.fn.videoBG.video=function(options){var $div=$("
");$div.addClass("videoBG").css("position",options.position).css("z-index",options.zIndex).css("top",0).css("left",0).css("height",options.height).css("width",options.width).css("opacity",options.opacity).css("overflow","hidden");var $video=$("