var swipers={};$(document).ready(function(){var e=0,i=!1;$(".swiper-container").each(function(){var s=$(this),a="swiper-unique-id-"+e;s.addClass("swiper-"+a+" initialized").attr("id",a),s.find(".swiper-pagination").addClass("pagination-"+a);var t=s.data("effect")?s.data("effect"):"slide",r=!s.data("crossfade")||s.data("crossfade"),d=0!=s.data("loop")||s.data("loop"),l=s.data("show-items")?s.data("show-items"):1,n=s.data("scroll-items")?s.data("scroll-items"):1,o=s.data("direction")?s.data("direction"):"horizontal",c=!!s.data("mouse-scroll")&&s.data("mouse-scroll"),p=s.data("autoplay")?parseInt(s.data("autoplay"),10):0,w=!!s.hasClass("auto-height"),u=l>1?20:0;l>1&&(i={480:{slidesPerView:1,slidesPerGroup:1},768:{slidesPerView:2,slidesPerGroup:2}}),swipers["swiper-"+a]=new Swiper(".swiper-"+a,{pagination:".pagination-"+a,paginationClickable:!0,direction:o,mousewheelControl:c,mousewheelReleaseOnEdges:c,slidesPerView:l,slidesPerGroup:n,spaceBetween:u,keyboardControl:!0,setWrapperSize:!0,preloadImages:!0,updateOnImagesReady:!0,autoplay:p,autoHeight:w,loop:d,breakpoints:i,effect:t,fade:{crossFade:r},parallax:!0,onSlideChangeStart:function(e){var i=s.siblings(".slider-slides");if(i.length){i.find(".slide-active").removeClass("slide-active");var a=e.slides.eq(e.activeIndex).attr("data-swiper-slide-index");i.find(".slides-item").eq(a).addClass("slide-active")}}}),e++}),$(".btn-prev").on("click",function(){var e=$(this).closest(".slider-slides").siblings(".swiper-container").attr("id");swipers["swiper-"+e].slidePrev()}),$(".btn-next").on("click",function(){var e=$(this).closest(".slider-slides").siblings(".swiper-container").attr("id");swipers["swiper-"+e].slideNext()}),$(".btn-prev-without").on("click",function(){var e=$(this).closest(".swiper-container").attr("id");swipers["swiper-"+e].slidePrev()}),$(".btn-next-without").on("click",function(){var e=$(this).closest(".swiper-container").attr("id");swipers["swiper-"+e].slideNext()}),$(".slider-slides .slides-item").on("click",function(){if($(this).hasClass("slide-active"))return!1;var e=$(this).parent().find(".slides-item").index(this),i=$(this).closest(".slider-slides").siblings(".swiper-container").attr("id");return swipers["swiper-"+i].slideTo(e+1),$(this).parent().find(".slide-active").removeClass("slide-active"),$(this).addClass("slide-active"),!1})});