(function(n){n.fn.flexisel=function(t){var s=n.extend({visibleItems:4,animationSpeed:200,autoPlay:!1,autoPlaySpeed:3e3,pauseOnHover:!0,setMaxWidthAndHeight:!1,enableResponsiveBreakpoints:!1,responsiveBreakpoints:{portrait:{changePoint:480,visibleItems:1},landscape:{changePoint:640,visibleItems:2},tablet:{changePoint:768,visibleItems:3}}},t),i=n(this),r=n.extend(s,t),u,e=!0,o=r.visibleItems,f={init:function(){return this.each(function(){f.appendHTML();f.setEventHandlers();f.initializeItems()})},initializeItems:function(){var r=i.parent(),e=r.height(),t=i.children(),f=r.width();u=f/o;t.width(u);t.last().insertBefore(t.first());t.last().insertBefore(t.first());i.css({left:-u});i.fadeIn();n(window).trigger("resize")},appendHTML:function(){var t,u,f;i.addClass("nbs-flexisel-ul");i.wrap("<div class='nbs-flexisel-container'><div class='nbs-flexisel-inner'><\/div><\/div>");i.find("li").addClass("nbs-flexisel-item");r.setMaxWidthAndHeight&&(t=n(".nbs-flexisel-item > img").width(),u=n(".nbs-flexisel-item > img").height(),n(".nbs-flexisel-item > img").css("max-width",t),n(".nbs-flexisel-item > img").css("max-height",u));n("<div class='nbs-flexisel-nav-left'><\/div><div class='nbs-flexisel-nav-right'><\/div>").insertAfter(i);f=i.children().clone();i.append(f)},setEventHandlers:function(){var t=i.parent(),c=i.children(),s=t.find(n(".nbs-flexisel-nav-left")),h=t.find(n(".nbs-flexisel-nav-right"));n(window).on("resize",function(){var e,l,a,r;f.setResponsiveEvents();e=n(t).width();l=n(t).height();u=e/o;c.width(u);i.css({left:-u});a=s.height()/2;r=l/2-a;s.css("top",r+"px");h.css("top",r+"px")});n(s).on("click",function(){f.scrollLeft()});n(h).on("click",function(){f.scrollRight()});if(r.pauseOnHover==!0)n(".nbs-flexisel-item").on({mouseenter:function(){e=!1},mouseleave:function(){e=!0}});r.autoPlay==!0&&setInterval(function(){e==!0&&f.scrollRight()},r.autoPlaySpeed)},setResponsiveEvents:function(){var t=n("html").width();r.enableResponsiveBreakpoints==!0&&(o=t<r.responsiveBreakpoints.portrait.changePoint?r.responsiveBreakpoints.portrait.visibleItems:t>r.responsiveBreakpoints.portrait.changePoint&&t<r.responsiveBreakpoints.landscape.changePoint?r.responsiveBreakpoints.landscape.visibleItems:t>r.responsiveBreakpoints.landscape.changePoint&&t<r.responsiveBreakpoints.tablet.changePoint?r.responsiveBreakpoints.tablet.visibleItems:r.visibleItems)},scrollLeft:function(){var t,s,n;e==!0&&(e=!1,t=i.parent(),s=t.width(),u=s/o,n=i.children(),i.animate({left:"+="+u},{queue:!1,duration:r.animationSpeed,easing:"linear",complete:function(){n.last().insertBefore(n.first());f.adjustScroll();e=!0}}))},scrollRight:function(){var t,s,n;e==!0&&(e=!1,t=i.parent(),s=t.width(),u=s/o,n=i.children(),i.animate({left:"-="+u},{queue:!1,duration:r.animationSpeed,easing:"linear",complete:function(){n.first().insertAfter(n.last());f.adjustScroll();e=!0}}))},adjustScroll:function(){var n=i.parent(),t=i.children(),r=n.width();u=r/o;t.width(u);i.css({left:-u})}};if(f[t])return f[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error('Method "'+method+'" does not exist in flexisel plugin!');else return f.init.apply(this)}})(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var r=n(this),f=r.data("bs.dropdownhover"),u=r.data(),e;void 0!==r.data("animations")&&null!==r.data("animations")&&(u.animations=n.isArray(u.animations)?u.animations:u.animations.split(" "));e=n.extend({},t.DEFAULTS,u,"object"==typeof i&&i);f||r.data("bs.dropdownhover",f=new t(this,e))})}var t=function(t,i){this.options=i;this.$element=n(t);var r=this;this.dropdowns=this.$element.hasClass("dropdown-toggle")?this.$element.parent().find(".dropdown-menu").parent(".dropdown"):this.$element.find(".dropdown");this.dropdowns.each(function(){n(this).on("mouseenter.bs.dropdownhover",function(){r.show(n(this).children("a, button"))})});this.dropdowns.each(function(){n(this).on("mouseleave.bs.dropdownhover",function(){r.hide(n(this).children("a, button"))})})},r,u;t.TRANSITION_DURATION=300;t.DELAY=150;t.TIMEOUT;t.DEFAULTS={animations:["fadeInDown","fadeInRight","fadeInUp","fadeInLeft"]};t.prototype.show=function(i){var f=n(i),u,o,s,r,e,h;return window.clearTimeout(t.TIMEOUT),n(".dropdown").not(f.parents()).each(function(){n(this).removeClass("open")}),u=this.options.animations[0],f.is(".disabled, :disabled")?void 0:(o=f.parent(),s=o.hasClass("open"),s||(r=f.next(".dropdown-menu"),o.addClass("open"),e=this.position(r),u="top"==e?this.options.animations[2]:"right"==e?this.options.animations[3]:"left"==e?this.options.animations[1]:this.options.animations[0],r.addClass("animated "+u),h=n.support.transition&&r.hasClass("animated"),h?r.one("bsTransitionEnd",function(){r.removeClass("animated "+u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.removeClass("animated "+u)),!1)};t.prototype.hide=function(i){var r=n(i),u=r.parent();t.TIMEOUT=window.setTimeout(function(){u.removeClass("open")},t.DELAY)};t.prototype.position=function(t){var e=n(window),i,r,o,u,h,s,f;return t.css({bottom:"",left:"",top:"",right:""}).removeClass("dropdownhover-top"),i={top:e.scrollTop(),left:e.scrollLeft()},i.right=i.left+e.width(),i.bottom=i.top+e.height(),r=t.offset(),r.right=r.left+t.outerWidth(),r.bottom=r.top+t.outerHeight(),o=t.position(),o.right=r.left+t.outerWidth(),o.bottom=r.top+t.outerHeight(),u="",h=t.parents(".dropdown-menu").length,h?(o.left<0?(u="left",t.removeClass("dropdownhover-right").addClass("dropdownhover-left")):(u="right",t.addClass("dropdownhover-right").removeClass("dropdownhover-left")),r.left<i.left?(u="right",t.css({left:"100%",right:"auto"}).addClass("dropdownhover-right").removeClass("dropdownhover-left")):r.right>i.right&&(u="left",t.css({left:"auto",right:"100%"}).removeClass("dropdownhover-right").addClass("dropdownhover-left")),r.bottom>i.bottom?t.css({bottom:"auto",top:-(r.bottom-i.bottom)}):r.top<i.top&&t.css({bottom:-(i.top-r.top),top:"auto"})):(s=t.parent(".dropdown"),f=s.offset(),f.right=f.left+s.outerWidth(),f.bottom=f.top+s.outerHeight(),r.right>i.right&&t.css({left:-(r.right-i.right),right:"auto"}),r.bottom>i.bottom&&f.top-i.top>i.bottom-f.bottom||t.position().top<0?(u="top",t.css({bottom:"100%",top:"auto"}).addClass("dropdownhover-top").removeClass("dropdownhover-bottom")):(u="bottom",t.addClass("dropdownhover-bottom"))),u};r=n.fn.dropdownhover;n.fn.dropdownhover=i;n.fn.dropdownhover.Constructor=t;n.fn.dropdownhover.noConflict=function(){return n.fn.dropdownhover=r,this};n(document).ready(function(){n(window).width()>=768&&n('[data-hover="dropdown"]').each(function(){var t=n(this);i.call(t,t.data())})});n(window).on("resize",function(){clearTimeout(u);u=setTimeout(function(){n(window).width()>=768?n('[data-hover="dropdown"]').each(function(){var t=n(this);i.call(t,t.data())}):n('[data-hover="dropdown"]').each(function(){n(this).removeData("bs.dropdownhover");n(this).hasClass("dropdown-toggle")?n(this).parent(".dropdown").find(".dropdown").andSelf().off("mouseenter.bs.dropdownhover mouseleave.bs.dropdownhover"):n(this).find(".dropdown").off("mouseenter.bs.dropdownhover mouseleave.bs.dropdownhover")})},200)})}(jQuery)