' + ((index + 1) < 10 ? ('0' + (index + 1) ): (index + 1))  + '';
          } : null : null,
          scrollbar: bar.length ? bar.get(0) : null,
          scrollbarDraggable: bar.length ? bar.attr("data-draggable") !== "false" : true,
          scrollbarHide: bar.length ? bar.attr("data-draggable") === "false" : false,
          //loop: isNoviBuilder ? false : s.attr('data-loop') !== "false",
          loop: s.attr('data-loop') !== "false",
          //simulateTouch: s.attr('data-simulate-touch') && !isNoviBuilder ? s.attr('data-simulate-touch') === "true" : false,
          simulateTouch: s.attr('data-simulate-touch') ? s.attr('data-simulate-touch') === "true" : false,
          onTransitionStart: function (swiper) {
            toggleSwiperInnerVideos(swiper);
          },
          onTransitionEnd: function (swiper) {
            toggleSwiperCaptionAnimation(swiper);
          },
          onInit: function (swiper) {
            toggleSwiperInnerVideos(swiper);
            toggleSwiperCaptionAnimation(swiper);
            if (swiper.container.data('autoplay-hover') === true) {
              var hoverEvent;
              swiper.container.mouseenter(function (e) {
                hoverEvent = setInterval(function () {
                  swiper.slideNext();
                }, $(swiper.container).data('autoplay'));
              });
              swiper.container.mouseleave(function (e) {
                clearInterval(hoverEvent);
              });
            }
            //initLightGalleryItem(s.find('[data-lightgallery="item"]'), 'lightGallery-in-carousel');
          }
        });
    
	win.on("resize", (function (s) {
      return function () {
        var mh = getSwiperHeight(s, "min-height"),
          h = getSwiperHeight(s, "height");
        if (h) {
          s.css("height", mh ? mh > h ? mh : h : h);
        }
      }
    })(s)).trigger("resize");
	
	window.setTimeout(function() {
	  win.trigger("resize");
	}, 100);
JS;
$this->registerJs($js, $this::POS_READY);
$js2 = <<registerJs($js2, $this::POS_END);
?>
<= $tag ?> class="= $classes ?>" = $attrs ?>>
	
	
	
	
= $tag ?>>