!function(i){i(document).on("metaslider/initialized",function(s,e){if(i(e).closest(".metaslider.ms-theme-precognition").length){var n=i(e),t=i(e).closest(".metaslider.ms-theme-precognition"),o=n.find(".caption");o.length&&t.addClass("ms-has-caption"),t.addClass("ms-loaded")}i(window).trigger("resize")}),i(window).on("load resize",function(s){i(".metaslider").each(function(s){var e=i(this).outerWidth();e<800?i(this).addClass("ms-is-small"):i(this).removeClass("ms-is-small")})}),i(window).on("load",function(){i(".nivo-control, .cs-buttons a").wrap("<li></li>")})}(jQuery);