text: "use strict";!function(a){var i={animTime:1e3,pagination:!1};a.fn.skwSlider=function(e){var s=this,n=1,d=0,l=e.animTime||i.animTime,t=e.pagination||i.pagination,c=!1,v=".skw-page-",p=function(){if(s.wrap('<div class="skw-pages"></div>'),s.children().each(function(i,e){var n=a(e).find("> img").attr("src"),d=a(e).find("> div").html();0===i?(i++,a(s).parent().append('<div class="skw-page skw-page-'+i+' active"><div class="skw-page__half skw-page__half--left"> <div class="skw-page__skewed"> <div class="skw-page__content">'+d+'</div> </div> </div> <div class="skw-page__half skw-page__half--right"> <div class="skw-page__skewed"> <div class="skw-page__content" style="background-image: url('+n+')"></div> </div> </div>  </div>')):i%2===0?(i++,a(s).parent().append('<div class="skw-page skw-page-'+i+'"><div class="skw-page__half skw-page__half--left"> <div class="skw-page__skewed"> <div class="skw-page__content">'+d+'</div> </div> </div> <div class="skw-page__half skw-page__half--right"> <div class="skw-page__skewed"> <div class="skw-page__content" style="background-image: url('+n+')"></div> </div> </div>  </div>')):(i++,a(s).parent().append('<div class="skw-page skw-page-'+i+'"><div class="skw-page__half skw-page__half--left"> <div class="skw-page__skewed"> <div class="skw-page__content" style="background-image: url('+n+')"></div> </div> </div> <div class="skw-page__half skw-page__half--right"> <div class="skw-page__skewed"> <div class="skw-page__content">'+d+"</div> </div> </div> </div>"))}),s=s.parent(),s.find("> ul").remove(),d=a(s).children().length,t){var i=1;for(a(s).append('<ul class="skw-page__pagination"></ul>'),i=1;i<=d;i++)a(s).find("ul").append("<li>"+i+"</li>"),a(s).find("ul > :first-child").addClass("active")}},g=function(){function i(e){c=!0,e?(a(s).find(".skw-page").removeClass("active"),a(s).find(v+n).removeClass("inactive").addClass("active")):(a(s).find(v+n).removeClass("inactive").addClass("active"),a(s).find(v+(n-1)).addClass("inactive"),a(s).find(v+(n+1)).removeClass("active"),i&&a(s).find(".skw-page__pagination")),i&&(a(s).find(".skw-page__pagination li").eq(n-1).addClass("active"),a(s).find(".skw-page__pagination li").eq(n-1).siblings().removeClass("active")),setTimeout(function(){c=!1},l)}function e(){1===n?(n=d,i(n)):(n--,i())}function t(){n===d?(n=1,i(n)):(n++,i())}a(s).on("mousewheel DOMMouseScroll",function(a){a.preventDefault(),c||(a.originalEvent.wheelDelta>0||a.originalEvent.detail<0?e():t())}),a(document).on("keydown",function(a){c||(38===a.which?e():40===a.which&&t())})},_=function(){var i=a(s).find(".skw-page__pagination");a(i).css("margin-left","-"+a(i).width()/2+"px"),i.children().each(function(i,e){a(e).on("click",function(){n=i+1,a(this).addClass("active"),a(this).siblings().removeClass("active"),a(s).find(".skw-page").removeClass("active"),a(s).find(v+n).removeClass("inactive").addClass("active")})})},o=function(){p(),g(),t&&_()};o()}}(jQuery);