$(document).ready(function(){window.tobiz;function i(i,t){var e=i.find(".image_box").length,n=+(n=i.find(".image_box").eq(0).css("marginRight")).replace(/px/g,""),d=i.find(".image_box").eq(0).width()+"",r=e*(d=+d.replace(/px/g,""))+(e-1)*n+n;i.find(".image_wrapper").css({width:r+"px"});var s=+(s=i.find(".image_wrapper").css("left")).replace(/px/g,"");"left"==t&&(s=r<=-(s-=n+d)+i.find(".image_screen").width()?0:s)<-1*(e*d+(e-1)*n)||("right"==t&&0<(s+=n+d)&&(s=0),i.find(".image_wrapper").css({left:s+"px"}))}function t(i,t){var e=i.find(".image_box").length,n=i.find(".image_box").eq(0).css("marginLeft"),d=+(d=i.find(".image_box").eq(0).css("marginRight")).replace(/px/g,""),n=+n.replace(/px/g,""),n=i.find(".image_box").eq(0).width()+"",r=e*(n=+n.replace(/px/g,""))+(e-1)*d+d;i.find(".image_wrapper").css({width:r+"px"});r=+(r=i.find(".image_wrapper").css("left")).replace(/px/g,""),e*=d+n;$(window).width()<800?"left"==t&&(r-10<=-(e-n)?r=0:r-=d+n):"left"==t&&(r-1170-n<-e?r=0:r-=d+n),"right"==t&&0<(r+=d+n)&&(r=0),i.find(".image_wrapper").css({left:r+"px"})}function e(i,t){var e=i.find(".arr1").length,n=$(window).width(),d=i.find(".arr1").eq(0).width()+"",r=e*(d=+d.replace(/px/g,""))+0*(e-1);i.find(".image_wrapper").css({width:r+"px"});var r=+(r=i.find(".image_wrapper").css("left")).replace(/px/g,""),s=e*(0+d),o="px";1024<$(window).width()?"left"==t&&(r-1170-d/e<-s?(r=-25,o="vw"):0')})},goToSlide:function(i,t){var t=1==t?0:500,e=((i=i<0?this.len-1:i)>this.len-1&&(i=0),n.find(".point").removeClass("current"),i*this.width*-1+"px");n.find(".slider_wrapper").animate({left:e,opacity:1},t),this.current_id=i,n.find(".point").eq(i).addClass("current")},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var t=this;n.unbind("swiperight"),n.unbind("swipeleft"),n.find(".point").unbind("click"),n.find(".point").click(function(){$(this).hasClass("current")||t.goToSlide($(this).data("id")),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),n.find(".go_left, .go_right").unbind("click"),n.find(".go_left, .go_right").click(function(){var i=t.current_id;$(this).hasClass("go_left")?--i<0&&(i=t.len-1):++i>t.len-1&&(i=0),t.goToSlide(i),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),$(window).width()<=800&&(n.on("swiperight",function(){n.find(".go_right").click()}),n.on("swipeleft",function(){n.find(".go_left").click()}))},init:function(i,t){this.auto_slide=t,n.find(".point").eq(0).addClass("current"),n.find(".slider_wrapper").css({width:this.width*this.len,height:this.height}),n.find(".slide").css({width:this.width}),n.find(".arr1").css({width:this.width}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider166array[i].init(t,e))},window.tobiz.slider1156Init=function(i){var n,t=0,e=1;$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider1156array[i]&&(void 0!==window.tobiz.slider1156array[i].current_id&&(t=window.tobiz.slider1156array[i].current_id),e=window.tobiz.slider1156array[i].auto_slide,void 0!==window.tobiz.slider1156array[i].auto_slide_interval&&clearInterval(window.tobiz.slider1156array[i].auto_slide_interval),delete window.tobiz.slider1156array[i]),$("#b_"+i).length&&(n=$("#b_"+i),window.tobiz.slider1156array[i]={width:n.find(".section_inner").width(),height:n.find(".slider").height(),len:n.find(".slide").length,current_id:0,auto_slide:+n.data("autoslide"),auto_slide_interval:"timeout",lag:6e3,setScroller:function(){n.find(".scroller").html("");n.find(".slide").length;$.each(n.find(".slide"),function(i,t){n.find(".scroller").append('
')})},goToSlide:function(i,t){var t=1==t?0:500,e=((i=i<0?this.len-1:i)>this.len-1&&(i=0),n.find(".point").removeClass("current"),i*this.width*-1+"px");n.find(".slider_wrapper").animate({left:e,opacity:1},t),this.current_id=i,n.find(".point").eq(i).addClass("current")},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var t=this;n.unbind("swiperight"),n.unbind("swipeleft"),n.find(".point").unbind("click"),n.find(".point").click(function(){$(this).hasClass("current")||t.goToSlide($(this).data("id")),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),n.find(".go_left, .go_right").unbind("click"),n.find(".go_left, .go_right").click(function(){var i=t.current_id;$(this).hasClass("go_left")?--i<0&&(i=t.len-1):++i>t.len-1&&(i=0),t.goToSlide(i),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),$(window).width()<=800&&(n.on("swiperight",function(){n.find(".go_left").click()}),n.on("swipeleft",function(){n.find(".go_right").click()}))},init:function(i,t){this.auto_slide=t,n.find(".point").eq(0).addClass("current"),n.find(".slider_wrapper").css({width:this.width*this.len,height:this.height}),n.find(".slide").css({width:this.width}),n.find(".arr1").css({width:this.width}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider1156array[i].init(t,e))},window.tobiz.slider156Init=function(i){var n,t=0,e=1;$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider156array[i]&&(void 0!==window.tobiz.slider156array[i].current_id&&(t=window.tobiz.slider156array[i].current_id),e=window.tobiz.slider156array[i].auto_slide,void 0!==window.tobiz.slider156array[i].auto_slide_interval&&clearInterval(window.tobiz.slider156array[i].auto_slide_interval),delete window.tobiz.slider156array[i]),$("#b_"+i).length&&(n=$("#b_"+i),window.tobiz.slider156array[i]={width:n.find(".section_inner").width(),height:n.find(".slider").height(),len:n.find(".slide").length,current_id:0,auto_slide:+n.data("autoslide"),auto_slide_interval:"timeout",lag:6e3,setScroller:function(){n.find(".scroller").html("");n.find(".slide").length;$.each(n.find(".slide"),function(i,t){n.find(".scroller").append('
')})},goToSlide:function(i,t){var t=1==t?0:500,e=((i=i<0?this.len-1:i)>this.len-1&&(i=0),n.find(".point").removeClass("current"),i*this.width*-1+"px");n.find(".slider_wrapper").animate({left:e,opacity:1},t),this.current_id=i,n.find(".point").eq(i).addClass("current")},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var t=this;n.unbind("swiperight"),n.unbind("swipeleft"),n.find(".point").unbind("click"),n.find(".point").click(function(){$(this).hasClass("current")||t.goToSlide($(this).data("id")),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),n.find(".go_left, .go_right").unbind("click"),n.find(".go_left, .go_right").click(function(){var i=t.current_id;$(this).hasClass("go_left")?--i<0&&(i=t.len-1):++i>t.len-1&&(i=0),t.goToSlide(i),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),$(window).width()<=800&&(n.on("swiperight",function(){n.find(".go_right").click()}),n.on("swipeleft",function(){n.find(".go_left").click()}))},init:function(i,t){this.auto_slide=t,n.find(".point").eq(0).addClass("current"),n.find(".slider_wrapper").css({width:this.width*this.len,height:this.height}),n.find(".slide").css({width:this.width}),n.find(".arr1").css({width:this.width}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider156array[i].init(t,e))},window.tobiz.slider334Init=function(i){var n,t=0,e=1;$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider334array[i]&&(void 0!==window.tobiz.slider334array[i].current_id&&(t=window.tobiz.slider334array[i].current_id),e=window.tobiz.slider334array[i].auto_slide,void 0!==window.tobiz.slider334array[i].auto_slide_interval&&clearInterval(window.tobiz.slider334array[i].auto_slide_interval),delete window.tobiz.slider334array[i]),$("#b_"+i).length&&(n=$("#b_"+i),window.tobiz.slider334array[i]={width:n.find(".section_inner").width(),height:n.find(".slider").height(),len:n.find(".slide").length,current_id:0,auto_slide:+n.data("autoslide"),auto_slide_interval:"timeout",lag:6e3,setScroller:function(){n.find(".scroller").html("");n.find(".slide").length;$.each(n.find(".slide"),function(i,t){n.find(".scroller").append('
')})},goToSlide:function(i,t){var t=1==t?0:500,e=((i=i<0?this.len-1:i)>this.len-1&&(i=0),n.find(".point").removeClass("current"),i*this.width*-1+"px");n.find(".slider_wrapper").animate({left:e},t),this.current_id=i,n.find(".point").eq(i).addClass("current")},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var t=this;n.find(".point").unbind("click"),n.find(".point").click(function(){$(this).hasClass("current")||t.goToSlide($(this).data("id")),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),n.find(".go_left, .go_right").unbind("click"),n.find(".go_left, .go_right").click(function(){var i=t.current_id;$(this).hasClass("go_left")?--i<0&&(i=t.len-1):++i>t.len-1&&(i=0),t.goToSlide(i),t.auto_slide=0,clearInterval(t.auto_slide_interval)})},init:function(i,t){this.auto_slide=t,n.find(".point").eq(0).addClass("current"),n.find(".slider_wrapper").css({width:this.width*this.len,height:this.height}),n.find(".slide").css({width:this.width}),n.find(".arr1").css({width:this.width}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider334array[i].init(t,e))},window.tobiz.slider312Init=function(i){var n,t=0,e=1;$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider312array[i]&&(void 0!==window.tobiz.slider312array[i].current_id&&(t=window.tobiz.slider312array[i].current_id),e=window.tobiz.slider312array[i].auto_slide,void 0!==window.tobiz.slider312array[i].auto_slide_interval&&clearInterval(window.tobiz.slider312array[i].auto_slide_interval),delete window.tobiz.slider312array[i]),$("#b_"+i).length&&(n=$("#b_"+i),window.tobiz.slider312array[i]={width:n.find(".section_inner").width(),height:n.find(".slider").height(),len:n.find(".slide").length,current_id:0,auto_slide:+n.data("autoslide"),auto_slide_interval:"timeout",lag:6e3,setScroller:function(){n.find(".scroller").html("");n.find(".slide").length;$.each(n.find(".slide"),function(i,t){n.find(".scroller").append('
')})},goToSlide:function(i,t){var t=1==t?0:500,e=((i=i<0?this.len-1:i)>this.len-1&&(i=0),n.find(".point").removeClass("current"),i*this.width*-1+"px");n.find(".slider_wrapper").animate({left:e},t),this.current_id=i,n.find(".point").eq(i).addClass("current")},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var t=this;n.find(".point").unbind("click"),n.find(".point").click(function(){$(this).hasClass("current")||t.goToSlide($(this).data("id")),t.auto_slide=0,clearInterval(t.auto_slide_interval)}),n.find(".go_left, .go_right").unbind("click"),n.find(".go_left, .go_right").click(function(){var i=t.current_id;$(this).hasClass("go_left")?--i<0&&(i=t.len-1):++i>t.len-1&&(i=0),t.goToSlide(i),t.auto_slide=0,clearInterval(t.auto_slide_interval)})},init:function(i,t){this.auto_slide=t,n.find(".point").eq(0).addClass("current"),n.find(".slider_wrapper").css({width:this.width*this.len,height:this.height}),n.find(".slide").css({width:this.width}),n.find(".arr1").css({width:this.width}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider312array[i].init(t,e))},window.tobiz.slider118Init=function(i){var t=0,e=1;if(!$("#b_"+i).hasClass("slider"))return!0;var d,r=".slide";$(window).width()<=800?($("#b_"+i).find(r).show(),r=".col_3"):$("#b_"+i).find(".col_3").show(),$("#b_"+i).find(r).eq(0).show(),$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider118array[i]&&(void 0!==window.tobiz.slider118array[i].current_id&&(t=window.tobiz.slider118array[i].current_id),e=window.tobiz.slider118array[i].auto_slide,void 0!==window.tobiz.slider118array[i].auto_slide_interval&&clearInterval(window.tobiz.slider118array[i].auto_slide_interval),delete window.tobiz.slider118array[i]),$("#b_"+i).length&&(d=$("#b_"+i),window.tobiz.slider118array[i]={len:d.find(r).length,current_id:0,auto_slide:+d.data("autoslide"),auto_slide_interval:"timeout",lag:5e3,speed:750,setScroller:function(){d.find(".scroller").html("");d.find(r).length;$.each(d.find(r),function(i,t){d.find(".scroller").append('
')})},goToSlide:function(i,t,e){var n=this.speed;1==t&&(n=0),"right"!=e&&(e="left"),(i=i<0?this.len-1:i)>this.len-1&&(i=0),this.current_id=i,"left"==e?(d.find(".point").hide(),d.find(".slider_wrapper").animate({left:"-100%"},n,function(){d.find(".slider_wrapper").css({left:"100%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n,function(){d.find(".point").show()})})):(d.find(".point").hide(),d.find(".slider_wrapper").animate({left:"+100%"},n,function(){d.find(".slider_wrapper").css({left:"-100%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n,function(){d.find(".point").show()})}))},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var e=this;d.find(r).unbind("swiperight"),d.find(r).unbind("swipeleft"),d.find(".point").unbind("click"),d.find(".point").click(function(){$(this).hasClass("current")||e.goToSlide($(this).data("id")),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),d.find(".go_left, .go_right").unbind("click"),d.find(".go_left, .go_right").click(function(){var i=e.current_id,t=($(this).hasClass("go_left")?--i<0&&(i=e.len-1):++i>e.len-1&&(i=0),"left");$(this).hasClass("go_right")&&(t="right"),e.goToSlide(i,e.speed,t),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),$(window).width()<=800&&(d.find(r).on("swiperight",function(){d.find(".go_right").click()}),d.find(r).on("swipeleft",function(){d.find(".go_left").click()}))},init:function(i,t){this.auto_slide=t,d.find(".point").eq(0).addClass("current"),d.find(r).hide(),d.find(r).eq(0).show(),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider118array[i].init(t,e))},window.tobiz.slider149Init=function(i){var t=0,e=1;if(!$("#b_"+i).hasClass("slider"))return!0;var d,r=".slide";$(window).width()<=640?($("#b_"+i).find(r).show(),r=".col_3"):$("#b_"+i).find(".col_3").show(),$("#b_"+i).find(r).eq(0).show(),$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider149array[i]&&(void 0!==window.tobiz.slider149array[i].current_id&&(t=window.tobiz.slider149array[i].current_id),e=window.tobiz.slider149array[i].auto_slide,void 0!==window.tobiz.slider149array[i].auto_slide_interval&&clearInterval(window.tobiz.slider149array[i].auto_slide_interval),delete window.tobiz.slider149array[i]),$("#b_"+i).length&&(d=$("#b_"+i),window.tobiz.slider149array[i]={len:d.find(r).length,current_id:0,auto_slide:+d.data("autoslide"),auto_slide_interval:"timeout",lag:5e3,speed:750,setScroller:function(){d.find(".scroller").html("");d.find(r).length;$.each(d.find(r),function(i,t){d.find(".scroller").append('
')})},goToSlide:function(i,t,e){var n=this.speed;1==t&&(n=0),"right"!=e&&(e="left"),(i=i<0?this.len-1:i)>this.len-1&&(i=0),this.current_id=i,"left"==e?(d.find(".point").hide(),d.find(".slider_wrapper").animate({left:"-100%"},n,function(){d.find(".slider_wrapper").css({left:"100%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n,function(){d.find(".point").show()})})):(d.find(".point").hide(),d.find(".slider_wrapper").animate({left:"+100%"},n,function(){d.find(".slider_wrapper").css({left:"-100%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n,function(){d.find(".point").show()})}))},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var i,t,e=this;d.unbind("swiperight"),d.unbind("swipeleft"),d.find(".point").unbind("click"),d.find(".point").click(function(){$(this).hasClass("current")||e.goToSlide($(this).data("id")),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),d.find(".go_left, .go_right").unbind("click"),d.find(".go_left, .go_right").click(function(){var i=e.current_id,t=($(this).hasClass("go_left")?--i<0&&(i=e.len-1):++i>e.len-1&&(i=0),"left");$(this).hasClass("go_right")&&(t="right"),e.goToSlide(i,e.speed,t),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),$(window).width()<=800&&(d.on("swiperight",function(){clearTimeout(i),i=setTimeout(()=>{d.find(".go_right").click()},200)}),d.on("swipeleft",function(){clearTimeout(t),t=setTimeout(()=>{d.find(".go_left").click()},200)}))},init:function(i,t){this.auto_slide=t,d.find(".point").eq(0).addClass("current"),d.find(r).hide(),d.find(r).eq(0).show(),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider149array[i].init(t,e))},window.tobiz.slider320Init=function(i){var t=0,e=1;if(!$("#b_"+i).hasClass("slider"))return!0;var d,r=".slide";$("#b_"+i).find(r).eq(0).show(),$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider320array[i]&&(void 0!==window.tobiz.slider320array[i].current_id&&(t=window.tobiz.slider320array[i].current_id),e=window.tobiz.slider320array[i].auto_slide,void 0!==window.tobiz.slider320array[i].auto_slide_interval&&clearInterval(window.tobiz.slider320array[i].auto_slide_interval),delete window.tobiz.slider320array[i]),$("#b_"+i).length&&(d=$("#b_"+i),window.tobiz.slider320array[i]={len:d.find(r).length,current_id:0,auto_slide:+d.data("autoslide"),auto_slide_interval:"timeout",lag:5e3,speed:750,setScroller:function(){d.find(".scroller").html("");d.find(r).length;$.each(d.find(r),function(i,t){d.find(".scroller").append('
')})},goToSlide:function(i,t,e){var n=this.speed;1==t&&(n=0),"right"!=e&&(e="left"),(i=i<0?this.len-1:i)>this.len-1&&(i=0),this.current_id=i,"left"==e?d.find(".slider_wrapper").animate({left:"-100%"},n,function(){d.find(".slider_wrapper").css({left:"100%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n)}):d.find(".slider_wrapper").animate({left:"+100%"},n,function(){d.find(".slider_wrapper").css({left:"-100%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n)})},autoSlide:function(){var i;1==this.auto_slide&&900<$(window).width()&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var e=this;d.find(r).unbind("swiperight"),d.find(r).unbind("swipeleft"),d.find(".point").unbind("click"),d.find(".point").click(function(){$(this).hasClass("current")||e.goToSlide($(this).data("id")),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),d.find(".go_left, .go_right").unbind("click"),d.find(".go_left, .go_right").click(function(){var i=e.current_id,t=($(this).hasClass("go_left")?--i<0&&(i=e.len-1):++i>e.len-1&&(i=0),"left");$(this).hasClass("go_right")&&(t="right"),e.goToSlide(i,e.speed,t),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),$(window).width()<=800&&(d.find(r).on("swiperight",function(){d.find(".go_right").click()}),d.find(r).on("swipeleft",function(){d.find(".go_left").click()}))},init:function(i,t){this.auto_slide=t,d.find(".point").eq(0).addClass("current"),d.find(r).hide(),d.find(r).eq(0).show(),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider320array[i].init(t,e))},window.tobiz.slider160Init=function(i){var t=0,e=1;if(!$("#b_"+i).hasClass("slider"))return!0;var d,r=".slide",s=".slider_wrapper";$(window).width()<=640?($("#b_"+i).find(r).show(),r=".col_4",s=".slider_wrapper"):$("#b_"+i).find(".col_4").show(),$("#b_"+i).find(r).eq(0).show(),$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider160array[i]&&(void 0!==window.tobiz.slider160array[i].current_id&&(t=window.tobiz.slider160array[i].current_id),e=window.tobiz.slider160array[i].auto_slide,void 0!==window.tobiz.slider160array[i].auto_slide_interval&&clearInterval(window.tobiz.slider160array[i].auto_slide_interval),delete window.tobiz.slider160array[i]),$("#b_"+i).length&&(d=$("#b_"+i),window.tobiz.slider160array[i]={len:d.find(r).length,current_id:0,auto_slide:+d.data("autoslide"),auto_slide_interval:"timeout",lag:5e3,speed:500,setScroller:function(){d.find(".scroller").html("");d.find(r).length;$.each(d.find(r),function(i,t){d.find(".scroller").append('
')})},goToSlide:function(i,t,e){var n=this.speed;1==t&&(n=0),"right"!=e&&(e="left"),(i=i<0?this.len-1:i)>this.len-1&&(i=0),this.current_id=i,"left"==e?d.find(s).animate({top:"-10%",opacity:"0"},n,function(){d.find(s).css({top:"10%",opacity:"0"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(s).animate({top:"0%",opacity:"1"},n)}):d.find(s).animate({top:"+10%"},n,function(){d.find(s).css({top:"-10%"}),d.find(r).hide(),d.find(r).eq(i).show(),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(s).animate({top:"0%"},n)})},autoSlide:function(){var i;1==this.auto_slide&&900<$(window).width()&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var e=this;d.find(".point").unbind("click"),d.find(".point").click(function(){$(this).hasClass("current")||e.goToSlide($(this).data("id")),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),d.find(".go_left, .go_right").unbind("click"),d.find(".go_left, .go_right").click(function(){var i=e.current_id,t=($(this).hasClass("go_left")?--i<0&&(i=e.len-1):++i>e.len-1&&(i=0),"left");$(this).hasClass("go_right")&&(t="right"),e.goToSlide(i,e.speed,t),e.auto_slide=0,clearInterval(e.auto_slide_interval)})},init:function(i,t){this.auto_slide=t,d.find(".point").eq(0).addClass("current"),d.find(r).hide(),d.find(r).eq(0).show(),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider160array[i].init(t,e))},window.tobiz.slider151Init=function(i){var t=0,e=1;if(!$("#b_"+i).hasClass("slider"))return!0;var d,r=".slide",s=".slider_wrapper";$(window).width()<=640?($("#b_"+i).find(r).css({display:"block"}),r=".col_4",s=".slider_wrapper"):$("#b_"+i).find(".col_4").show(),$("#b_"+i).find(r).eq(0).css({display:"flex"}),$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider151array[i]&&(void 0!==window.tobiz.slider151array[i].current_id&&(t=window.tobiz.slider151array[i].current_id),e=window.tobiz.slider151array[i].auto_slide,delete window.tobiz.slider151array[i]),$("#b_"+i).length&&(d=$("#b_"+i),window.tobiz.slider151array[i]={len:d.find(r).length,current_id:0,auto_slide:+d.data("autoslide"),auto_slide_interval:"timeout",lag:5e3,speed:750,setScroller:function(){d.find(".scroller").html("");d.find(r).length;$.each(d.find(r),function(i,t){d.find(".scroller").append('
')})},goToSlide:function(i,t,e){var n=this.speed;1==t&&(n=0),"right"!=e&&(e="left"),(i=i<0?this.len-1:i)>this.len-1&&(i=0),this.current_id=i,"left"==e?d.find(s).animate({left:"+100%"},n,function(){d.find(s).css({left:"-100%"}),d.find(r).hide(),".col_4"==r?d.find(r).eq(i).css({display:"block"}):d.find(r).eq(i).css({display:"flex"}),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(s).animate({left:"0%"},n)}):d.find(s).animate({left:"-100%"},n,function(){d.find(s).css({left:"100%"}),d.find(r).hide(),".col_4"==r?d.find(r).eq(i).css({display:"block"}):d.find(r).eq(i).css({display:"flex"}),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(s).animate({left:"0%"},n)})},autoSlide:function(){var i;1==this.auto_slide&&900<$(window).width()&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var e=this;d.unbind("swiperight"),d.unbind("swipeleft"),d.find(".point").unbind("click"),d.find(".point").click(function(){$(this).hasClass("current")||e.goToSlide($(this).data("id")),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),d.find(".go_left, .go_right").unbind("click"),d.find(".go_left, .go_right").click(function(){var i=e.current_id,t=($(this).hasClass("go_left")?--i<0&&(i=e.len-1):++i>e.len-1&&(i=0),"left");$(this).hasClass("go_right")&&(t="right"),e.goToSlide(i,e.speed,t),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),$(window).width()<=800&&(d.on("swiperight",function(){d.find(".go_right").click()}),d.on("swipeleft",function(){d.find(".go_left").click()}))},init:function(i,t){this.auto_slide=t,d.find(".point").eq(0).addClass("current"),d.find(r).hide(),d.find(r).eq(0).css({display:"flex"}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider151array[i].init(t,e))},window.tobiz.slider129Init=function(i){var d,t=0,e=1;if(!$("#b_"+i).hasClass("slider"))return!0;$("#b_"+i).length&&(e=+$("#b_"+i).data("autoslide")),void 0!==window.tobiz.slider129array[i]&&(void 0!==window.tobiz.slider129array[i].current_id&&(t=window.tobiz.slider129array[i].current_id),e=window.tobiz.slider129array[i].auto_slide,void 0!==window.tobiz.slider129array[i].auto_slide_interval&&clearInterval(window.tobiz.slider129array[i].auto_slide_interval),delete window.tobiz.slider129array[i]),$("#b_"+i).length&&(d=$("#b_"+i),window.tobiz.slider129array[i]={len:d.find(".slide").length,current_id:0,auto_slide:+d.data("autoslide"),auto_slide_interval:"timeout",lag:5e3,speed:500,setScroller:function(){d.find(".scroller").html("");d.find(".slide").length;$.each(d.find(".slide"),function(i,t){d.find(".scroller").append('
')})},goToSlide:function(i,t,e){var n=this.speed;1==t&&(n=0),"right"!=e&&(e="left"),(i=i<0?this.len-1:i)>this.len-1&&(i=0),this.current_id=i,"left"==e?(d.find(".point").hide(),d.find(".slider_wrapper").animate({left:"-150%"},n,function(){d.find(".slider_wrapper").css({left:"150%"}),d.find(".slide").hide(),d.find(".slide").eq(i).css({display:"flex"}),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n,function(){d.find(".point").show()})})):(d.find(".point").hide(),d.find(".slider_wrapper").animate({left:"150%"},n,function(){d.find(".slider_wrapper").css({left:"-150%"}),d.find(".slide").hide(),d.find(".slide").eq(i).css({display:"flex"}),d.find(".point").removeClass("current"),d.find(".point").eq(i).addClass("current"),d.find(".slider_wrapper").animate({left:"0%"},n,function(){d.find(".point").show()})}))},autoSlide:function(){var i;1==this.auto_slide&&(i=this.current_id,++i>this.len-1&&(i=0),this.goToSlide(i))},eventListener:function(){var e=this;d.unbind("swiperight"),d.unbind("swipeleft"),d.find(".point").unbind("click"),d.find(".point").click(function(){$(this).hasClass("current")||e.goToSlide($(this).data("id")),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),d.find(".go_left, .go_right").unbind("click"),d.find(".go_left, .go_right").click(function(){var i=e.current_id,t=($(this).hasClass("go_left")?--i<0&&(i=e.len-1):++i>e.len-1&&(i=0),"left");$(this).hasClass("go_right")&&(t="right"),e.goToSlide(i,e.speed,t),e.auto_slide=0,clearInterval(e.auto_slide_interval)}),$(window).width()<=800&&(d.on("swiperight",function(){d.find(".go_right").click()}),d.on("swipeleft",function(){d.find(".go_left").click()}))},init:function(i,t){this.auto_slide=t,d.find(".point").eq(0).addClass("current"),d.find(".slide").hide(),d.find(".slide").eq(0).css({display:"flex"}),this.setScroller(),this.eventListener(),this.goToSlide(i,1);var e=this;void 0===window.tobiz.editor&&(e.auto_slide_interval=setInterval(function(){e.autoSlide()},e.lag))}},window.tobiz.slider129array[i].init(t,e))},window.tobiz.slider1011Init=function(i){var s,t=0,o=".quiz_wrapper .field",e=".next",n=".prev",l=!1;void 0!==window.tobiz.slider1011array[i]&&(void 0!==window.tobiz.slider1011array[i].current_id&&(t=window.tobiz.slider1011array[i].current_id),delete window.tobiz.slider1011array[i]),$("#b_"+i).length&&((s=$("#b_"+i)).find(".field").each(function(i,t){$(t).attr("data-index",i)}),window.tobiz.slider1011array[i]={len:s.find(o).length,current_id:0,lag:5e3,speed:300,setStatusBar:function(){var i;0Готово: '+i+"% "):s.find(".discount_text span").html(i+"%"))},setSteps:function(){var i,t;0d)return d=i.data("index");if(!i.data("index")||i.data("index")>=r.len)return s.find(".slides").hide(),s.find(".form_wrapper").show()}for(;d=r.len&&(s.find(".slides").hide(),s.find(".form_wrapper").show())}}(),d>r.len-1&&$(this).addClass("send"),d>r.len-1&&(d=r.len-1,($("body").hasClass("editor_true")?s.find(".quiz_wrapper"):s.find(".slides")).hide(),s.find(".form_wrapper").show())}s.find(".simple__loader").fadeIn(300),setTimeout(function(){r.goToSlide(d),s.find(".simple__loader").fadeOut(100)},400)}),$(window).width()<=800&&(s.on("swiperight",function(){s.find(e).click()}),s.on("swipeleft",function(){s.find(n).click()}))},init:function(i){s.find(".point").eq(0).addClass("current"),s.find(o).hide(),s.find(o).eq(0).show(),this.setStatusBar(),this.setSteps(),this.eventListener(),this.goToSlide(i)}},window.tobiz.slider1011array[i].init(t))},$(".section1130").each(function(){window.tobiz.slider1130Init($(this).data("id"))}),$(".section166").each(function(){window.tobiz.slider166Init($(this).data("id"))}),$(".section1156").each(function(){window.tobiz.slider1156Init($(this).data("id"))}),$(".section156").each(function(){window.tobiz.slider156Init($(this).data("id"))}),$(".section334").each(function(){window.tobiz.slider334Init($(this).data("id"))}),$(".section312").each(function(){window.tobiz.slider312Init($(this).data("id"))}),$(".section118").each(function(){window.tobiz.slider118Init($(this).data("id"))}),$(".section149").each(function(){window.tobiz.slider149Init($(this).data("id"))}),$(".section320").each(function(){window.tobiz.slider320Init($(this).data("id"))}),$(".section160").each(function(){window.tobiz.slider160Init($(this).data("id"))}),$(".section151").each(function(){window.tobiz.slider151Init($(this).data("id"))}),$(".section1011").each(function(){window.tobiz.slider1011Init($(this).data("id"))}),$(".section129").each(function(){window.tobiz.slider129Init($(this).data("id"))}),$("body").on("click",".section310 .iamges .go_left",function(){i($(this).closest(".section"),"right")}),$("body").on("click",".section310 .iamges .go_right",function(){i($(this).closest(".section"),"left")}),$("body").on("click",".section1155 .go_left",function(){t($(this).closest(".section"),"right")}),$("body").on("click",".section1155 .go_right",function(){t($(this).closest(".section"),"left")}),$("body").on("click",".section1160 .go_left",function(){e($(this).closest(".section"),"right")}),$("body").on("click",".section1160 .go_right",function(){e($(this).closest(".section"),"left")}),$(".section126.slider").each(function(){var i=$(this).data("id");i&&(i=$("#b_"+i)).length&&new SimpleSlider(i[0],{autoSlide:"1"===i.data("autoslide"),interval:6e3,speed:300})})});class SimpleSlider{constructor(i,t={}){i&&(this.container=i,this.slides=Array.from(i.querySelectorAll(".slide")),0!==this.slides.length)&&(this.dotsContainer=i.querySelector(".scroller"),this.prevBtn=i.querySelector(".go_left"),this.nextBtn=i.querySelector(".go_right"),this.currentIndex=0,this.autoSlide=t.autoSlide||!1,this.interval=t.interval||6e3,this.animationSpeed=t.speed||300,this.init())}init(){this.dotsContainer&&this.createDots(),this.showSlide(this.currentIndex),this.addEventListeners(),this.autoSlide&&this.startAutoSlide()}createDots(){this.dotsContainer&&(this.dotsContainer.innerHTML="",this.slides.forEach((i,t)=>{var e=document.createElement("div");e.className="point",e.dataset.id=t,this.dotsContainer.appendChild(e)}))}showSlide(i,t=0){var e;this.currentIndex=i,this.dotsContainer&&((e=this.dotsContainer.querySelectorAll(".point")).forEach(i=>i.classList.remove("current")),e=e[i])&&e.classList.add("current"),this.slides.forEach(i=>i.style.display="none"),this.slides[i].style.display="flex"}goToPrev(){var i=(this.currentIndex-1+this.slides.length)%this.slides.length;this.showSlide(i,"right")}goToNext(){var i=(this.currentIndex+1)%this.slides.length;this.showSlide(i,"left")}addEventListeners(){this.prevBtn&&this.prevBtn.addEventListener("click",()=>this.goToPrev()),this.nextBtn&&this.nextBtn.addEventListener("click",()=>this.goToNext()),this.dotsContainer.querySelectorAll(".point").forEach(t=>{t.addEventListener("click",()=>{var i=parseInt(t.dataset.id);this.showSlide(i)})}),this.setupSwipe()}setupSwipe(){let t,e;this.container.addEventListener("touchstart",i=>{t=i.changedTouches[0].screenX},!1),this.container.addEventListener("touchend",i=>{e=i.changedTouches[0].screenX,this.handleSwipe()},!1)}handleSwipe(){var i=touchStartX-touchEndX;50{this.goToNext()},this.interval)}stopAutoSlide(){clearInterval(this.autoSlideInterval)}}