text: !function(i){var s={animation:"bounce",slideSelector:".slide",container:".main",cssBlur:!1,pagination:!0,loop:!0,autoStart:4e3};i.fn.swipeEvents=function(){return this.each(function(){function s(i){var s=i.originalEvent.touches;s&&s.length&&(e=s[0].pageX,t=s[0].pageY,n.bind("touchmove",a)),i.preventDefault()}function a(i){var s=i.originalEvent.touches;if(s&&s.length){var r=e-s[0].pageX,o=t-s[0].pageY;r>=50&&n.trigger("swipeLeft"),-50>=r&&n.trigger("swipeRight"),o>=50&&n.trigger("swipeUp"),-50>=o&&n.trigger("swipeDown"),(Math.abs(r)>=50||Math.abs(o)>=50)&&n.unbind("touchmove",a)}i.preventDefault()}var e,t,n=i(this);n.bind("touchstart",s)})},i.fn.transformSlider=function(s,a){var e=i(this);switch(s.animation){case"slide":e.addClass("ease").css({"-webkit-transform":"translate3d("+a+"%, 0, 0)","-moz-transform":"translate3d("+a+"%, 0, 0)","-ms-transform":"translate3d("+a+"%, 0, 0)",transform:"translate3d("+a+"%, 0, 0)"});break;case"slideUp":e.addClass("ease").css({"-webkit-transform":"translate3d(0, "+a+"%, 0)","-moz-transform":"translate3d(0, "+a+"%, 0)","-ms-transform":"translate3d(0, "+a+"%, 0)",transform:"translate3d(0, "+a+"%, 0)"});break;case"bounce":e.addClass("bounce").css({"-webkit-transform":"translate3d("+a+"%, 0, 0)","-moz-transform":"translate3d("+a+"%, 0, 0)","-ms-transform":"translate3d("+a+"%, 0, 0)",transform:"translate3d("+a+"%, 0, 0)"});break;case"bounceUp":e.addClass("bounce").css({"-webkit-transform":"translate3d(0, "+a+"%, 0)","-moz-transform":"translate3d(0, "+a+"%, 0)","-ms-transform":"translate3d(0, "+a+"%, 0)",transform:"translate3d(0, "+a+"%, 0)"});break;case"fade":e.addClass("no-animation").fadeOut("slow",function(){e.css({"-webkit-transform":"translate3d("+a+"%, 0, 0)","-moz-transform":"translate3d("+a+"%, 0, 0)","-ms-transform":"translate3d("+a+"%, 0, 0)",transform:"translate3d("+a+"%, 0, 0)"}).fadeIn("slow")})}},i.fn.positionSlides=function(s,a){var e=i(this);"slideUp"==s.animation||"bounceUp"==s.animation?e.css({top:100*a+"%"}):e.css({left:100*a+"%"})},i.fn.immersive_slider=function(a){var e=i.extend({},s,a),t=i(this),n="";t.addClass("immersive_slider"),t.find(e.slideSelector).addClass("is-slide"),1==e.cssBlur?t.find(".is-slide img:first-child").each(function(s){var a="";0==s&&(a="active");var t=i(this);i(e.container).addClass("is-container").prepend("<div id='slide_"+(s+1)+"_bg' class='is-background gs_cssblur "+a+"'>"+t.clone().wrap("<div />").parent().html()+"</div>"),i("#slide_"+(s+1)+"_bg").positionSlides(e,s)}):t.find(".is-slide").each(function(s){var a="";0==s&&(a="active");var t="<img src='"+i(this).data("blurred")+"'>";i(e.container).addClass("is-container").prepend("<div id='slide_"+(s+1)+"_bg' class='is-background "+a+"'>"+t+"</div>"),i("#slide_"+(s+1)+"_bg").positionSlides(e,s)}),(0!=e.autoStart||0!=e.autoStart)&&setInterval(function(){t.moveNext()},e.autoStart),i(e.container).find(".is-background").wrapAll("<div class='is-bg-overflow' />"),t.find(".is-slide").wrapAll("<div class='is-overflow' />"),t.find(".is-slide").each(function(s){var a="";0==s&&(a="active"),i(this).attr("id","slide_"+(s+1)).addClass(a),i(this).positionSlides(e,s),1==e.pagination&&(n+="<li><a class='is-page "+a+"' href='#slide_"+(s+1)+"'></a></li>")}),i("<ul class='is-pagination'>"+n+"</ul>").appendTo(t),1==e.pagination&&i(".is-pagination li a").click(function(){var s=i(this).attr("href");return i(this).hasClass("active")||t.moveSlider(e,s),!1}),i(".is-next").click(function(){return t.moveNext(),!1}),i(".is-prev").click(function(){return t.movePrev(),!1}),i.fn.moveSlider=function(s,a){var e=i(this),t=e.find(".is-slide.active"),n=e.find(".is-slide"+a),r=i(s.container).find(".is-background.active"),o=i(s.container).find(".is-background"+a+"_bg");n&&(t.removeClass("active"),n.addClass("active"),r.removeClass("active"),o.addClass("active"),i(".is-pagination li a.active").removeClass("active"),i(".is-pagination li a[href='"+a+"']").addClass("active")),pos=100*(a.replace("#slide_","")-1)*-1,e.find(".is-overflow").transformSlider(s,pos),i(s.container).find(".is-bg-overflow").transformSlider(s,pos)},i.fn.moveNext=function(){var s=i(this),a=s.find(e.slideSelector).length+1,t=parseInt(i(this).find(".is-slide.active").attr("id").replace("slide_",""))+1;a>t?s.moveSlider(e,"#slide_"+t):1==e.loop&&s.moveSlider(e,"#slide_1")},i.fn.movePrev=function(){var s=i(this),a=s.find(e.slideSelector).length+1,t=parseInt(i(this).find(".is-slide.active").attr("id").replace("slide_",""))-1;a>=t&&t>0?s.moveSlider(e,"#slide_"+t):1==e.loop&&s.moveSlider(e,"#slide_"+(a-1))},t.swipeEvents().bind("swipeRight",function(){t.movePrev()}).bind("swipeLeft",function(){t.moveNext()})}}(window.jQuery);