!function(e){"use strict";e.fn.flexisel=function(i){var n,t=e.extend({visibleItems:3,animationSpeed:200,autoPlay:!1,autoPlaySpeed:3e3,pauseOnHover:!0,setMaxWidthAndHeight:!1,enableResponsiveBreakpoints:!0,clone:!1,responsiveBreakpoints:{portrait:{changePoint:480,visibleItems:1},landscape:{changePoint:640,visibleItems:2},tablet:{changePoint:768,visibleItems:3}}},i),s=e(this),l=e.extend(t,i),a=!0,o=l.visibleItems,r=s.children().length+1,c=[],f={init:function(){return this.each(function(){f.appendHTML(),f.setEventHandlers(),f.initializeItems()})},initializeItems:function(){var i=s.parent(),t=(i.height(),s.children());f.sortResponsiveObject(l.responsiveBreakpoints);var a=i.width();n=a/o,t.width(n),l.clone&&(t.last().insertBefore(t.first()),t.last().insertBefore(t.first()),s.css({left:-n})),s.fadeIn(),e(window).trigger("resize")},appendHTML:function(){if(s.addClass("nbs-flexisel-ul"),s.wrap("
"),s.find("li").addClass("nbs-flexisel-item"),l.setMaxWidthAndHeight){var i=e(".nbs-flexisel-item img").width(),n=e(".nbs-flexisel-item img").height();e(".nbs-flexisel-item img").css("max-width",i),e(".nbs-flexisel-item img").css("max-height",n)}if(e("
").insertAfter(s),l.clone){var t=s.children().clone();s.append(t)}},setEventHandlers:function(){var i=s.parent(),t=s.children(),r=i.find(e(".nbs-flexisel-nav-left")),c=i.find(e(".nbs-flexisel-nav-right"));e(window).on("resize",function(){f.setResponsiveEvents();var a=e(i).width(),d=e(i).height();n=a/o,t.width(n),s.css(l.clone?{left:-n}:{left:0});var h=r.height()/2,v=d/2-h;r.css("top",v+"px"),c.css("top",v+"px")}),e(r).on("click",function(){f.scrollLeft()}),e(c).on("click",function(){f.scrollRight()}),1==l.pauseOnHover&&e(".nbs-flexisel-item").on({mouseenter:function(){a=!1},mouseleave:function(){a=!0}}),1==l.autoPlay&&setInterval(function(){1==a&&f.scrollRight()},l.autoPlaySpeed)},setResponsiveEvents:function(){var i=e("html").width();if(l.enableResponsiveBreakpoints){var n=c[c.length-1].changePoint;for(var t in c){if(i>=n){o=l.visibleItems;break}if(i