!function(i){i.fn.extend({EXslider:function(){return this.each(function(){function e(i,e){if(i.find("img").length>0&&!i.hasClass("checked")){i.addClass("checked");var t=i.find("img").height();e>t&&i.find("img").css("padding-top",(e-t-i.find("figcaption").height())/2+"px")}}var t=i(this),n=t.outerWidth(),d=parseInt(9*n/16);250>d&&(d=250),t.height(d),t.find(".slider-for").children().addClass("oneItem").height(d),t.find(".slider-for .oneItem:first-child").addClass("active");var s=d/2-45;t.find(".btn_left").css("top",s),t.find(".btn_right").css("top",s),t.find(".btn_right").click(function(){var n=t.find(".slider-for .active");return n=n.next(),t.find(".slider-for .active").removeClass("active"),n.length?n.addClass("active"):t.find(".slider-for .oneItem:first-child").addClass("active"),e(n,d),i(this).blur(),!1}),t.find(".btn_left").click(function(){var e=t.find(".slider-for .active");return e=e.prev(),t.find(".slider-for .active").removeClass("active"),e.length?e.addClass("active"):t.find(".slider-for .oneItem:last-child").addClass("active"),i(this).blur(),!1}),t.swipe({swipeLeft:function(){t.find(".btn_left").click()},swipeRight:function(){t.find(".btn_right").click()}}),e(t.find(".slider-for .active"),d)})}})}(jQuery);