$(function(){var ua=window.navigator.userAgent,isIE=/MSIE|Trident/.test(ua);function isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function isIphone(){return/iPhone/i.test(navigator.userAgent)}function not_menu(){$(window).width()<=960&&$(".section311").each(function(t,e){0!=$(this).find(".menu1 li").length&&0!=$(this).find(".menu1").length||$(this).addClass("not_menu")})}function parseYouTubeLinkNG(t){let e=null;var i,o;return t.includes("youtube.com/watch")||t.includes("youtu.be")?(i=new URL(t),o=new URLSearchParams(i.search),t.includes("youtube.com/watch")?e=o.get("v"):t.includes("youtu.be")&&(e=i.pathname.substring(1))):(t.includes("youtube.com/shorts")||t.includes("youtube.com/embed"))&&(o=new URL(t),e=o.pathname.split("/").pop()),e}isIE?$("body").addClass("ie"):$("body").addClass("not_ie"),(isSafari()||isIphone())&&$(".section.fixed").removeClass("fixed"),$("body").on("click",".video_holder",function(){if(tobiz.editor)return!1;$(this).replaceWith(''),$("iframe.placeholder-tile").on("load",function(){$(this).removeClass("placeholder-tile")})}),$("body").on("click",".close_video_btn",function(){$("#wrapper").children(".popup_video").remove(),$("body").removeClass("modal")}),$("body").on("click",".play_btn",function(){if(tobiz.editor)return!1;$("body").addClass("modal");var t=$(this).closest(".section"),e=$(this).parent().siblings().find(".video_holder").data("video");t.parent().append(``)}),$("body").on("touchstart",".video_holder",function(){if(tobiz.editor)return!1;var t=$(this).data("video");"youtube"==$(this).data("hosting")?$(this).replaceWith(''):"rutube"!=$(this).data("hosting")&&"vimeo"!=$(this).data("hosting")||$(this).replaceWith('')}),$(".section318 .accordion .line.caption, .section319 .accordion .line.caption").click(function(){$(this).parent().parent().find(".line.option, .line.btn").hide(),$(this).parent().find(".line.option, .line.btn").show()}),$("body").on("click",".extra_info_block .close",function(){var t,e;$("body").removeClass("noscroll"),$(this).parent().parent().siblings().find(".btn1").hasClass("open_card_was")&&($(this).parent().parent().siblings().children(".btn1").addClass("open_card"),$(this).parents(".arr1 ").find(".btns_wrapp").children(".btn1"))&&$(this).parents(".arr1 ").find(".btns_wrapp").children(".btn1").addClass("open_card"),1==tobiz.editor&&(e=(t=$(this).closest(".section")).data("id"),t.hasClass("section1130"))&&delete window.tobiz.slider1130array[e]}),$("body").on("click",".popup_thanks_close, .popup_form_close",function(){$(this).parent().parent().siblings(".btn1").hasClass("open_card_was")&&$(this).parent().parent().siblings(".btn1").addClass("open_card"),$(".popup_thanks").hide(),$(this).parent().parent().parent().hasClass("section3010")?($("body").find(".temp_form").removeClass("showed"),setTimeout(function(){$("body").find(".temp_form").remove()},400)):$(".popup_form").hide().animate({opacity:"0"},300),$("body").removeClass("modal"),$("body").removeClass("no_clip")}),$("body").on("click",".basket_thanks_close",function(){$("#basket_bg_thanks").hide()}),$("body").on("click",".section1010 .widget_form_close",function(){$(".section1010 .arr1").hide()}),$("body").on("click",".choose_btns label",function(){$(".choose_btns label").removeClass("current_btn"),$(this).addClass("current_btn")}),$("body").on("click",".section1009 .widget_form_close",function(){$(".section1009 .form_wrapper").hide()}),$("body").on("click",".all_form_close",function(){$(".section1009 .all_forms").hide()}),$("body").on("click",".section1009 .ico1",function(t){$(this).children("a").is(":visible")||(0<$(this).closest(".section").find("#four").length||($(".section1009 .field_input_textarea").parent().addClass("field_textarea"),$(".section1009 .pop_form").toggle(),$(".section1009 .social_icons").toggle(),$(".section1009 .form_wrapper").show()),$(".section1009 .all_forms").show())}),$("body").on("click",".section1009 .image2",function(){0<$(this).closest(".section").find("#four").length||($(".section1009 .field_input_textarea").parent().addClass("field_textarea"),$(".section1009 .pop_form").toggle(),$(".section1009 .social_icons").toggle(),$(".section1009 .form_wrapper").show()),$(".section1009 .all_forms").show()}),$("body").on("click",".section1009 .choose_btns > .dots",function(){var t=$(this).attr("for");switch($(".section1009 .forms_content > div").hide(),t){case"i2":$(".section1009 .forms_content #two").show();break;case"i3":$(".section1009 .forms_content #three").show();break;case"i4":$(".section1009 .forms_content #four").show()}}),$("body").on("click",".popup_form",function(t){0===$(t.target).closest(".popup_form_inner").length&&($(this).siblings(".btn1").hasClass("open_card_was")&&$(this).siblings(".btn1").addClass("open_card"),$(this).parent().hasClass("section3010")?($("body").find(".temp_form").removeClass("showed"),setTimeout(function(){$("body").find(".temp_form").remove()},400)):$(".popup_form").hide(),$("body").removeClass("modal"),$("body").removeClass("no_clip"))}),$("body").on("mouseup","#wrapper",function(t){var e=$(".section1009 .section_inner > .form_wrapper"),i=$(".section1009 .all_forms"),o=$(".section1009 .section_inner > .social_icons");0===e.has(t.target).length&&e.hide(),0===i.has(t.target).length&&i.hide(),0===o.has(t.target).length&&o.hide()}),$("body").on("click",".popup_thanks",function(t){0===$(t.target).closest(".popup_thanks_inner").length&&$(".popup_thanks").hide()}),$(".section119").length&&$(".section119 .policy").click(function(){$("#policy").remove(),$("body").append('
\n
X
\n

Политика конфиденциальности

\n

Данный сайт уважает Ваше право и соблюдает конфиденциальность при заполнении, передаче и хранении Ваших конфиденциальных сведений.\nРазмещение заявки на данном сайте означает Ваше согласие на обработку данных и дальнейшей передачи ваших контактных данных нашей компании.\nПод персональными данными подразумевается информация, относящаяся к субъекту персональных данных, в частности имя, контактные реквизиты (адрес электронной почты) и иные данные, относимые Федеральным законом от 27 июля 2006 года № 152-ФЗ «О персональных данных» к категории персональных данных.\nЦелью обработки персональных данных является информирование об оказываемых услугах нашей компании.\nЕсть вопросы? Пишите нам на '+window.tobiz.owner_email+'.

\n
Закрыть
'),$("#policy .close_x, #policy .close_btn").click(function(){$("#policy").remove()})}),$("body").on("click",".section119 .policy2",function(){$(this).parent().parent().children(".policy2_popup").toggle()}),$("body").on("click",".product_card",function(){$(this).parent().parent().children(".extra_info_block_wrapper").eq($(this).data("id")).is(":visible")?$(this).parent().parent().children(".extra_info_block_wrapper").hide():($(this).parent().parent().children(".extra_info_block_wrapper").hide(),$(this).parent().parent().children(".extra_info_block_wrapper").eq($(this).data("id")).show(),$("body").addClass("modal"));var t=$(this).closest(".section");t.hasClass("section1130")&&1==tobiz.editor&&(t=t.data("id"),window.tobiz.slider1130array[t]=$(this).closest(".arr1").data("varBoxId"))}),$("body").on("click",".extra_info_block .close",function(){$(this).parent().parent().hide(),$("body").removeClass("modal")}),$("body").on("click","#basket_form_close",function(){$("body").removeClass("modal")}),$("body.editor_false").on("click",".btn_text2",function(){$(this).parent().parent().hide(),$("body").removeClass("modal")}),$("body").on("change",".section .field_input_file input",function(t){$(this).parent().parent().children(".field_input_file_name").remove(),$(this).parent().parent().append('
'+$(this).prop("files")[0].name+"
")}),$("body").on("click",".extra_info_block_wrapper",function(t){0===$(t.target).closest(".extra_info_block").length&&void 0===window.tobiz.editor&&($(this).siblings().children(".btn1").hasClass("open_card_was")&&$(this).siblings().children(".btn1").addClass("open_card"),$(".extra_info_block_wrapper").hide(),$("body").removeClass("modal"))});var $overlayImageBoxes=$(".section143 .overlay_image_box, .section334 .overlay_image_box, .section144 .overlay_image_box, .section145 .overlay_image_box, .section1144 .overlay_image_box, .section148 .overlay_image_box, .section147 .overlay_image_box, .section313 .overlay_image_box, .section315 .overlay_image_box, .section128 .overlay_image_box, .section1152 .overlay_image_box, .section1153 .overlay_image_box, .section146 .overlay_image_box, .section1145 .overlay_image_box, .section1155 .overlay_image_box, .section2156 .overlay_image_box, .section2157 .overlay_image_box, .section2158 .overlay_image_box, .section2159 .overlay_image_box"),$all_photo,clicked_img_number,$preload,start,$gallery_img_hide,$gallery_img,portfolio_img_src;function navigateToItem(t){if(t&&t.length){var e=t.data("id"),i=t.attr("style"),o=t.attr("style2"),n=t.hasClass("surround")?1:0,t=t.attr("href");try{var a=JSON.parse(localStorage.getItem("itempage")||"{}");a[e]={style:i,style2:o,surround:n,url:window.location.href,timestamp:Date.now()},localStorage.setItem("itempage",JSON.stringify(a))}catch(t){}window.location.href=t}}function playAnimationFront(t,e,i=""){var o=window.getComputedStyle(document.querySelector(`#b_${t} .flexblock_wrapper[data-index="${e}"]`)),n=o.getPropertyValue("--animate-type").trim()||"off",a=o.getPropertyValue("--animate-event").trim()||"blockVisible",s=o.getPropertyValue("--animate-delay").trim()||0,r=o.getPropertyValue("--animate-duration").trim()||300,c=o.getPropertyValue("--animate-distance").trim()||100,l=o.getPropertyValue("--animate-zoom").trim()||1,d=o.getPropertyValue("--animate-easing").trim()||"linear",o=o.getPropertyValue("--animate-rotate").trim()||0;i==a&&"off"!=n&&("fadeIn"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,duration:0},{opacity:1,rotate:0,scale:1,duration:r,delay:s}],easing:d}),"fadeInLeft"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateX:"-"+c,duration:0},{opacity:1,rotate:0,scale:1,translateX:0,duration:r,delay:s}],easing:d}),"fadeInRight"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateX:c,duration:0},{opacity:1,rotate:0,scale:1,translateX:0,duration:r,delay:s}],easing:"linear"}),"fadeInTop"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateY:"-"+c,duration:0},{opacity:1,rotate:0,scale:1,translateY:0,duration:r,delay:s}],easing:d}),"fadeInBottom"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateY:c,duration:0},{opacity:1,rotate:0,scale:1,translateY:0,duration:r,delay:s}],easing:d}),"zoomIn"==n)&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,duration:0},{opacity:1,rotate:0,scale:1,duration:r,delay:s}],easing:d})}if($overlayImageBoxes.length&&$overlayImageBoxes.click(function(){var t=$(this),e=t.attr("data-link"),i=t.attr("data-link-target");if(e&&"undefined"!==e)return 1===parseInt(i)||"_blank"===t.attr("data-target")?window.open(e,"_blank"):window.open(e,"_self"),!1}),$("body").on("click",".link_on.image1, .link_on.image2, .link_on.image3, .link_on.image4, .link_on.image5, .link_on.s_image, .link_on.arr1",function(){var t,e,i,o;return void 0===window.tobiz.editor&&(e=(t=$(this)).attr("data-link"),i=t.attr("data-link-target"),e&&"undefined"!==e?(t.parents(".section").hasClass("get_item_from_category")?(o=t.closest(".arr1").find(".gotoitempage")).length&&navigateToItem(o):1===parseInt(i)||"_blank"===t.attr("data-target")?window.open(e,"_blank"):window.open(e,"_self"),!1):void 0)}),$("body").on("click",".section2000 .item .image, .section2100 .item .image",function(t){t.preventDefault(),navigateToItem($(this).parents(".item").find(".gotoitempage"))}),$("body").on("click",".section2000 .item-content .tit, .section2100 .item-content .tit",function(t){t.preventDefault(),navigateToItem($(this).parents(".item").find(".gotoitempage"))}),$("body").on("submit",".section1117 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(n=(n=n.replace(/ {1,}/g," ")).toLowerCase(),(t=$(".arr1 .title1")).map(function(){return $.trim($(this).text())}).get(),o.find(".find_popup").hide(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," "),search_arr=n.split(" "),search_arr_length=search_arr.length,includes_counter=0,$.each(search_arr,function(t,e){-1!==i.indexOf(e.toString())&&includes_counter++}),includes_counter>.8*search_arr_length&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",method:"POST",data:{search:n},cache:!1,success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='
'+e.title+"

"+e.description+"

"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('
Результаты вашего поиска
')}})}),$("body").on("submit",".section120 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(t=$(".arr1 .title1"),o.find(".find_popup").hide(),t.map(function(){return $.trim($(this).text())}).get(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," "),search_arr=n.split(" "),search_arr_length=search_arr.length,includes_counter=0,$.each(search_arr,function(t,e){-1!==i.indexOf(e.toString())&&includes_counter++}),includes_counter>.8*search_arr_length&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",method:"POST",data:{search:n},cache:!1,success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='
'+e.title+"

"+e.description+"

"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('
Результаты вашего поиска
')}})}),$("body").on("submit",".section1120 form.search, .section2120 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(n=(n=n.replace(/ {1,}/g," ")).toLowerCase(),t=$(".arr1 .title1"),o.find(".find_popup").hide(),t.map(function(){return $.trim($(this).text())}).get(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," "),search_arr=n.split(" "),search_arr_length=search_arr.length,includes_counter=0,$.each(search_arr,function(t,e){-1!==i.indexOf(e.toString())&&includes_counter++}),includes_counter>.8*search_arr_length&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",method:"POST",data:{search:n},cache:!1,success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='
'+e.title+"

"+e.description+"

"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('
Результаты вашего поиска
')}})}),$("body").on("submit",".section119 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(n=(n=n.replace(/ {1,}/g," ")).toLowerCase(),t=$(".arr1 .title1"),o.find(".find_popup").hide(),t.map(function(){return $.trim($(this).text())}).get(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();-1!==(i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," ")).indexOf(n)&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",cache:!1,data:{search:n},success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='
'+e.title+"

"+e.description+"

"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('
Результаты вашего поиска
')}})}),$("body").on("click",".find_popup .close",function(){$(this).parent().fadeOut()}),1!=tobiz.editor){let isInViewport=function(t){t=t.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom-20<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},isInViewport2=function(t){t=t.getBoundingClientRect();return 0<=t.top&&t.top+350<=(window.innerHeight||document.documentElement.clientHeight)},flexblocks=[].slice.call(document.querySelectorAll(".section1600 .flexblock_wrapper")),flexactive=!1,flexblockAnime=function(){!1===flexactive&&(flexactive=!0,setTimeout(function(){flexblocks.forEach(function(e){isInViewport(e)&&"none"!==getComputedStyle(e).display&&(playAnimationFront($(e).data("blockId"),$(e).data("index"),"elementVisible"),flexblocks=flexblocks.filter(function(t){return t!==e}),0===e.length)&&(document.removeEventListener("scroll",flexblockAnime),window.removeEventListener("resize",flexblockAnime),window.removeEventListener("orientationchange",flexblockAnime))}),flexactive=!1},200))},blocks=(document.addEventListener("scroll",flexblockAnime),window.addEventListener("resize",flexblockAnime),window.addEventListener("orientationchange",flexblockAnime),flexblockAnime(),[].slice.call(document.querySelectorAll(".section"))),sections_active=!1,sectionsAnime=function(){!1===sections_active&&(sections_active=!0,setTimeout(function(){blocks.forEach(function(e){var t;isInViewport2(e)&&"none"!==getComputedStyle(e).display&&(t=$(e).data("id"),$('.section1600[data-id="'+t+'"] .flexblock_wrapper').each(function(){playAnimationFront($(this).data("blockId"),$(this).data("index"),"blockVisible")}),blocks=blocks.filter(function(t){return t!==e}),0===e.length)&&(document.removeEventListener("scroll",sectionsAnime),window.removeEventListener("resize",sectionsAnime),window.removeEventListener("orientationchange",sectionsAnime))}),sections_active=!1},200))};document.addEventListener("scroll",sectionsAnime),window.addEventListener("resize",sectionsAnime),window.addEventListener("orientationchange",sectionsAnime),sectionsAnime()}function GotoRight(){++clicked_img_number+1>portfolio_img_src.length&&(clicked_img_number=0),start=!1,load_img()}function GotoLeft(){--clicked_img_number<0&&(clicked_img_number=portfolio_img_src.length-1),start=!1,load_img()}function CloseGallery(){$("#popup_img").fadeOut(100,function(){$("#popup_img").remove()})}function load_img(){var t=setTimeout(function(){$preload.show()},400);start?($gallery_img.attr("src",portfolio_img_src[clicked_img_number]).on("load",function(){clearTimeout(t),$preload.hide()}),$gallery_img.attr("src",portfolio_img_src[clicked_img_number])):$gallery_img_hide.attr("src",portfolio_img_src[clicked_img_number]).on("load",function(){$preload.hide(),$gallery_img.fadeOut(100,function(){clearTimeout(t),$gallery_img.attr("src",portfolio_img_src[clicked_img_number]).fadeIn(400)})})}function getImageSizeAndClass(t){let e="1600x1200",i="";return t.hasClass("img_album")?(e="0x1200",i="img_album"):t.hasClass("img_portrait")?(e="800x1120",i="portret"):t.hasClass("img_square")?(e="1200x1200",i="square"):t.hasClass("big_img")?(e="0x1000",i=""):t.hasClass("wide")?(e="1254x600",i="bg-mode"):t.hasClass("fill_img")?(e="1000x702",i="bg-mode"):t.hasClass("section138")&&(e="800x563",i="bg-mode"),{size:e,cssClass:i}}function showZoomedImage(t,e,i,o=!1){t=`/img/${e}/`+t.split("/")[3];$("#img_zoomer_bg").remove(),o?([o,e]=e.split("x").map(Number),o=`background-image:url(${t}); background-repeat: no-repeat; width: ${o}px; height: ${e}px; max-width: 94%;`,$("body").append(`
`)):$("body").append(`
`)}($(".overlay_image_box").parent().hasClass("img_zoom")||$(".image_box").hasClass("img_zoom"))&&($(window).resize(function(){$("#popup_img_wrap img").css("max-height",.98*$(window).height())}),$all_photo=$(".section .img_zoom"),portfolio_img_src=[],$all_photo.click(function(t){t.stopPropagation(),""==$(this).children(".overlay_image_box").data("link")&&(portfolio_img_src.length=0,($(this).parent().hasClass("item")?$(this).parent().parent().find(".img_zoom"):$(this).parent().children(".img_zoom")).each(function(){var t=$(this).children("img").data("src")||$(this).children("img").attr("src")||$(this).children(".img").data("src"),e=(t.split("/"),$(this).closest(".section")),t=t.split("/"),i="0x1800",e=(e.hasClass("img_album")&&(i="0x1800"),e.hasClass("img_portrait")&&(i="1200x1800",0),(e.hasClass("img_square")||e.hasClass("square"))&&(i="1800x1800",0),"/img/"+i+"/"+t[3]);portfolio_img_src.push(e)}),-1===(clicked_img_number=($(this).parent().hasClass("item")?$(this).parent():$(this)).index())&&(clicked_img_number=0),start=!0,$("body").append(''),$("#popup_img_wrap img").css("max-height",.98*$(window).height()),$("#popup_img").fadeIn(200),$preload=$("#preload"),$gallery_img=$("#popup_img_wrap img"),$gallery_img_hide=$("#popup_img_hide"),load_img())}),$("body").on("click","#popup_img_wrap",function(t){t.stopPropagation(),GotoRight()}),$("body").on("click","#popup_img_next",function(t){t.stopPropagation(),GotoRight()}),$("body").on("click","#popup_img_prev",function(t){t.stopPropagation(),GotoLeft()}),$("body").on("click","#close_popup_img",function(t){t.stopPropagation(),CloseGallery()}),$("body").on("click","#popup_img",function(t){t.stopPropagation(),CloseGallery()}),$(document).keydown(function(t){37===t.which&&GotoLeft(),39===t.which&&GotoRight()}),$(document).keydown(function(t){27===t.which&&($(".popup_wrap").fadeOut(400),$("#popup_img").fadeOut(100,function(){$("#popup_img").remove()}))})),$("body").on("click",`.section141 .overlay_image_box,.section147 .overlay_image_box,.section142 .overlay_image_box,.section1157 .overlay_image_box,.section146 .overlay_image_box,.section315 .overlay_image_box,.section315 img,.section130 .image1,.section1158 .image1,.section1158 .image2,.section1302 .image1,.section1130 .image1,.section138 .image,.section128 .image1, .section128 .image2, .section128 .image3,.section125 .image1, .section125 .image2,.section124 .image1, .section124 .image2, .section124 .image3,.section149 .image1, .section149 .image2, .section149 .image3,.section150 .image1, .section150 .image2,.section200 .image1, .section200 .image2, .section200 .image3, .section200 .image4,.section201 .image1, .section201 .image2, .section201 .image3, .section201 .image4, .section201 .image5,.section250 .image1, .section250 .image2,.section151 .image1, .section151 .image2, .section151 .image3, .section151 .image4`,function(t){var o=$(this),n=o.closest(".section");if(!tobiz.editor)if(o.hasClass("show_extra_info")){$(".show_extra_info").removeClass("currnet"),o.addClass("currnet");var e=o.closest(".arr1");let i=0;e.find(".show_extra_info").each((t,e)=>{$(e).hasClass("currnet")&&(i=t)});e=o.parent().parent().children(".extra_info_block_wrapper");void(0
`;$("body").append(t)}),$(".section1302.collapse_menu").each(function(){$(this).find(".level1").hide(),$(this).find(".level0").each(function(t,e){$(e).next().hasClass("level1")&&$(e).addClass("children_toggle")})}),$("body").on("click",".section1302.collapse_menu .children_toggle a",function(t){t.preventDefault()}),$("body").on("click",".section1302.collapse_menu .children_toggle",function(){var t=$(this).closest(".section"),i=(t.find(".level1").hide(),t.find(".children_toggle").removeClass("active"),$(this).addClass("active"),!1);$(this).nextAll().each(function(t,e){i||($(e).hasClass("level1")?$(e).show():i=!0)})}),window.basket={status:0,getBasketModified:function(){var t=JSON.parse(localStorage.getItem("basket_modified"));return null==t?(new Date).getTime():t},setBasketModified:function(){try{return localStorage.setItem("basket_modified",JSON.stringify((new Date).getTime())),!0}catch(t){t==QUOTA_EXCEEDED_ERR&&alert("Ошибка добавления товара в корзину")}},getData:function(){var t=JSON.parse(localStorage.getItem("basket"));return null==t?[]:t},saveData:function(t){try{localStorage.setItem("basket",JSON.stringify(t))}catch(t){t==QUOTA_EXCEEDED_ERR&&alert("Ошибка добавления товара в корзину")}},addItem:function(i){var t=this.getData(),o=!1;$.each(t,function(t,e){e.title==i.title&&+e.price==+i.price&&(o=!0,void 0===e.quantity?e.quantity=1:(e.quantity=parseInt(e.quantity),e.quantity++),e.price=+e.price)}),o||t.push(i),this.setBasketModified(),this.saveData(t),this.renderForm(),this.renderBtn(),this.showBtn()},removeItem:function(i){var o=this.getData(),n=!1;null!=i.price&&"NaN"!=i.price&&"null"!=i.price||(i.price=0),o&&$.each(o,function(t,e){if(n)return!0;null!=e.price&&"NaN"!=e.price&&"null"!=e.price||(e.price=0),e.title==i.title&&e.price==i.price&&(o.splice(t,1),n=!0)}),this.saveData(o)},updateItem:function(i){var t=this.getData(),o=!1;t&&$.each(t,function(t,e){if(o)return!0;e.title==i.title&&+e.price==+i.price&&(e.quantity=i.quantity,o=!0),e.price=+e.price}),this.saveData(t)},clean:function(){this.saveData([])},countItems:function(){return this.getData().length},countSum:function(){var i=0;return $.each(this.getData(),function(t,e){i+=parseInt(e.quantity)*parseFloat(e.price)}),i=+i.toFixed(2)},btnEventListener:function(){var t=this;$("body").on("click","#basket_btn",function(){t.showForm(),$("body").addClass("modal")})},renderBtn:function(){$("#basket_btn").remove(),0