!function(t){t(document).on("metaslider/initialized",function(e,i){if(t(i).closest(".metaslider.ms-theme-starter").length){var s=(t(i),t(i).closest(".metaslider.ms-theme-starter"));s.addClass("ms-loaded")}t(window).trigger("resize")}),t(window).on("resize",function(i){t(".metaslider.ms-theme-starter").each(function(i){setTimeout(function(){var i=e(t(this).find(".ms-image > img"));t(this).is(".has-thumb-nav")&&t(this).find(".flex-direction-nav a").css({top:Math.round(i/2),bottom:"auto"})}.bind(this),50)})});var e=function(e){var i=0;return t(e).each(function(e){t(this).height()>i&&(i=t(this).height())}),i}}(jQuery);