// source --> https://www.shivaglobalrelocation.com/wp-content/plugins/crelly-slider/js/jquery.crellyslider.min.js?ver=1.4.5 
/**
 * Plugin Name: Crelly Slider
 * Plugin URI: https://wordpress.org/plugins/crelly-slider/
 * Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
 * Version: 1.4.5
 * Author: Fabio Rinaldi
 * Author URI: https://github.com/fabiorino
 * License: MIT
 */

var crellyslider_youtube_api_ready=!1,crellyslider_vimeo_api_ready=!1;!function(ce){var e;function le(){var s,o,r;o=!(s={}),r="*",t.fn=t.prototype={element:null,init:function(e){return"string"==typeof e&&(e=document.getElementById(e)),this.element=e,this},api:function(e,t){if(!this.element||!e)return!1;var i=this.element,a=""!==i.id?i.id:null,n=t&&t.constructor&&t.call&&t.apply?null:t,s=t&&t.constructor&&t.call&&t.apply?t:null;return s&&l(e,s,a),c(e,n,i),this},addEvent:function(e,t){if(!this.element)return!1;var i=this.element,a=""!==i.id?i.id:null;return l(e,t,a),"ready"!=e?c("addEventListener",e,i):"ready"==e&&o&&t.call(null,a),this},removeEvent:function(e){if(!this.element)return!1;var t=this.element,i=""!==t.id?t.id:null;e:{if(i&&s[i]){if(!s[i][e]){i=!1;break e}s[i][e]=null}else{if(!s[e]){i=!1;break e}s[e]=null}i=!0}"ready"!=e&&i&&c("removeEventListener",e,t)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e),window.Froogaloop=window.$f=t;function t(e){return new t.fn.init(e)}function c(e,t,i){i.contentWindow.postMessage&&(e=JSON.stringify({method:e,value:t}),i.contentWindow.postMessage(e,r))}function e(e){try{n=(a=JSON.parse(e.data)).event||a.method}catch(e){}if("ready"!=n||o||(o=!0),!/^https?:\/\/player.vimeo.com/.test(e.origin))return!1;"*"===r&&(r=e.origin),e=a.value;var t=a.data,i=""===i?null:a.player_id,a=i?s[i][n]:s[n],n=[];return!!a&&(void 0!==e&&n.push(e),t&&n.push(t),i&&n.push(i),0<n.length?a.apply(null,n):a.call())}function l(e,t,i){i?(s[i]||(s[i]={}),s[i][e]=t):s[e]=t}crellyslider_vimeo_api_ready=!0}e=function(n){var e,t,i,a=window.PointerEvent?(e="pointerdown",t="pointermove",i="pointerup","pointercancel"):window.MSPointerEvent?(e="MSPointerDown",t="MSPointerMove",i="MSPointerUp","MSPointerCancel"):(e="touchstart",t="touchmove",i="touchend","touchcancel"),s={},o={},r=500,c=64,l=!1;function d(e){l&&console.info(e.type),void 0!==e.isPrimary&&!1===e.isPrimary||void 0!==e.touches&&1<e.touches.length||(s.t=(new Date).getTime(),void 0!==e.touches?(s.x=e.touches[0].pageX,s.y=e.touches[0].pageY):void 0!==e.pageX&&(s.x=e.pageX,s.y=e.pageY),o.x=s.x,o.y=s.y,this.addEventListener(t,p,!1),this.addEventListener(i,f,!1),this.addEventListener(a,u,!1))}function p(e){l&&console.info(e.type),void 0!==e.touches?(o.x=e.touches[0].pageX,o.y=e.touches[0].pageY):void 0!==e.pageX&&(o.x=e.pageX,o.y=e.pageY);var t=(new Date).getTime()-s.t,i=o.x-s.x,a=o.y-s.y;r<t?h(this):c<i&&Math.abs(a)<c?(l&&console.info("swiperight"),n(this).trigger("swipe","right").trigger("swiperight"),h(this)):c<-i&&Math.abs(a)<c?(l&&console.info("swipeleft"),n(this).trigger("swipe","left").trigger("swipeleft"),h(this)):16<Math.abs(i)&&Math.abs(i)>Math.abs(a)?(l&&console.log("Horizontal swipe started"),e.preventDefault()):8<Math.abs(a)&&Math.abs(a)>Math.abs(i)&&(l&&console.log("Vertical swipe started"),h(this))}function f(e){l&&console.info(e.type),h(this)}function u(e){l&&console.info(e.type),h(this)}function h(e){e.removeEventListener(t,p),e.removeEventListener(i,f),e.removeEventListener(a,f)}n.event.special.swipe={setup:function(){this.addEventListener(e,d,!1)}},n.each(["left","right"],function(){n.event.special["swipe"+this]={setup:function(){n(this).on("swipe",n.noop)}}})},"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery),ce.CrellySlider=function(e,l){var n,t,d=ce(e),p="div.crellyslider",s="ul.cs-slides",i="li.cs-slide",f="> *",u=0,a=!1,h=!1,y=0,c=!1,o=!0,v=new H(function(){},0),m=new Array,g=new Array,b={},w={},r=1,k=0;function S(e){return"youtube"==e?0<d.find(".cs-yt-iframe").length:"vimeo"!=e||0<d.find(".cs-vimeo-iframe").length}function E(){if(d.wrapInner('<div class="crellyslider" />'),d.find(p+" > ul").addClass("cs-slides"),d.find(p+" "+s+" > li").addClass("cs-slide"),0!=(n=A().length)){var e,t,o,r,c;if(1==n&&(e=U(0),t=d.find(p).find(s),e.clone().prependTo(t),n++),function(){if(!l.randomOrder&&0==l.startFromSlide)return;var e=new Array,t=new Array;{-1==l.startFromSlide?(i=Math.floor(Math.random()*n),e[0]=i,t[0]=U(i)):(e[0]=l.startFromSlide,t[0]=U(l.startFromSlide))}for(var i,a=1;a<n;a++){if(l.randomOrder)for(;i=Math.floor(Math.random()*n),-1!=e.indexOf(i););else i=a+e[0]<n?a+e[0]:a+e[0]-n;e[a]=i,t[a]=U(i)}d.find(p).find(s).empty();for(a=0;a<n;a++)d.find(p).find(s).append(t[a])}(),l.showControls&&d.find(p).append('<div class="cs-controls"><span class="cs-next"></span><span class="cs-previous"></span></div>'),l.showNavigation){for(var i='<div class="cs-navigation">',a=0;a<n;a++)i+='<span class="cs-slide-link"></span>';i+="</div>",d.find(p).append(i)}l.showProgressBar?d.find(p).append('<div class="cs-progress-bar"></div>'):d.find(p).append('<div class="cs-progress-bar cs-progress-bar-hidden"></div>'),d.css("display","block"),l.responsive&&N(),_(),A().find(".cs-background-link").html(" ").data({left:0,top:0,in:"none",out:"none",easeIn:0,easeOut:0,delay:0,time:"all"}),function(){d.find(p).find(s).css("visibility","hidden"),d.find(p).find(".cs-progress-bar").css("display","none"),d.find(p).find(".cs-navigation").css("display","none"),d.find(p).find(".cs-controls").css("display","none");var e=U(0).css("background-image");(e=e.replace(/^url\(["']?/,"").replace(/["']?\)$/,"")).match(/\.(jpeg|jpg|gif|png|bmp|tiff|tif)$/)?ce("<img>").on("load",function(){t()}).attr("src",e).each(function(){this.complete&&ce(this).load()}):t();function t(){d.find(p).append('<div class="cs-preloader"><div class="cs-bg"></div><div class="cs-loader"><div class="cs-spinner"></div></div></div>'),d.find(p).find(".cs-preloader").css({"background-color":U(u).css("background-color"),"background-image":U(u).css("background-image"),"background-position":U(u).css("background-position"),"background-repeat":U(u).css("background-repeat"),"background-size":U(u).css("background-size")}),d.find(p).find(".cs-preloader > .cs-bg").css({"background-color":U(u).css("background-color"),"background-image":U(u).css("background-image"),"background-position":U(u).css("background-position"),"background-repeat":U(u).css("background-repeat"),"background-size":U(u).css("background-size")})}}(),o=new ce.Deferred,r=A().find(".cs-yt-iframe, .cs-vimeo-iframe").length,((c=0)!=r?(A().find(".cs-yt-iframe, .cs-vimeo-iframe").each(function(){ce(this).one("load",function(){var i,a,e,n,s;++c==r&&(a=new ce.Deferred,e=A(),n=e.find(f+".cs-yt-iframe").length,((s=0)!=n?(e.each(function(){ce(this).find(f+".cs-yt-iframe").each(function(){var t=ce(this);t.uniqueId(),t.attr("id","cs-yt-iframe-"+t.attr("id"));var e=new YT.Player(t.attr("id"),{events:{onReady:function(){W(t,"start-mute")&&e.mute(),++s==n&&a.resolve()},onStateChange:function(e){h&&(e.data===YT.PlayerState.PAUSED&&(b[t.attr("id")].manually_paused=!0),e.data===YT.PlayerState.PLAYING&&(b[t.attr("id")].manually_paused=!1)),e.data===YT.PlayerState.PLAYING?W(t,"pause-while-watching")&&(y=!0,F()):e.data!==YT.PlayerState.PAUSED&&e.data!==YT.PlayerState.ENDED||ae()||(y=!1,O())}}});i={player:e,played_once:!1,manually_paused:!1},b[t.attr("id")]=i})}),a.promise()):a.resolve().promise()).done(function(){var i,a,e,n,s;a=new ce.Deferred,e=A(),n=e.find(f+".cs-vimeo-iframe").length,((s=0)!=n?(e.each(function(){ce(this).find(f+".cs-vimeo-iframe").each(function(){var e=ce(this);e.uniqueId(),e.attr("id","cs-vimeo-iframe-"+e.attr("id")),e.attr("src",e.attr("src")+"&player_id="+e.attr("id"));var t=$f(e[0]);t.addEvent("ready",function(){W(e,"start-mute")&&t.api("setVolume",0),t.addEvent("finish",function(){w[e.attr("id")].ended=!0,w[e.attr("id")].playing=!1,ae()||(y=!1,O())}),t.addEvent("play",function(){w[e.attr("id")].played_once=!0,w[e.attr("id")].ended=!1,w[e.attr("id")].playing=!0,h&&(w[e.attr("id")].manually_paused=!1),W(e,"pause-while-watching")&&(y=!0,F())}),t.addEvent("pause",function(){h&&(w[e.attr("id")].manually_paused=!0),w[e.attr("id")].playing=!1,ae()||(y=!1,O())}),W(e,"loop")&&t.api("setLoop",!0),++s==n&&a.resolve()}),i={player:t,played_once:!1,ended:!1,manually_paused:!1,playing:!1},w[e.attr("id")]=i})}),a.promise()):a.resolve().promise()).done(function(){o.resolve()})}))})}),o.promise()):o.resolve().promise()).done(function(){var e=setInterval(function(){"complete"==document.readyState&&0<d.find(p).find(".cs-preloader").length&&(clearInterval(e),function(){l.responsive&&N();_(),k=ce(window).width(),A().each(function(){var e=ce(this);e.find(f).each(function(){var e=ce(this);e.find("*").each(function(){I(ce(this))}),I(e)}),e.css("display","none"),e.data("opacity",parseFloat(e.css("opacity")))}),function(){l.responsive&&ce(window).on("resize",function(){k!=ce(window).width()&&("full-width"==l.layout&&R()!=ce(d).width()||ce(d).width()<R()||ce(d).width()>R()&&R()<l.startWidth)&&D()});d.find(p).find(".cs-controls > .cs-previous").on("click",function(){q(z())}),d.find(p).find(".cs-controls > .cs-next").on("click",function(){q(C())}),d.find(p).on("dragstart",function(e){return e.stopPropagation(),!1}),l.enableSwipe&&(d.find(p).on("swipeleft",function(){O(),q(C())}),d.find(p).on("swiperight",function(){O(),q(z())}));d.find(p).find(".cs-navigation > .cs-slide-link").on("click",function(){q(ce(this).index())}),l.pauseOnHover&&(d.find(p).find(s).on("mouseenter",function(){0==y&&F()}),d.find(p).find(s).on("mouseleave",function(){0==y&&O()}))}(),d.find(p).find(s).css("visibility","visible"),d.find(p).find(".cs-progress-bar").css("display","block"),d.find(p).find(".cs-navigation").css("display","block"),d.find(p).find(".cs-controls").css("display","block"),ne(U(0)),U(0).finish(),d.find(p).find(".cs-preloader").animate({opacity:0},300,function(){d.find(p).find(".cs-preloader").remove()}),l.beforeStart(),(l.responsive?D:T)()}())},100)})}}function I(e){e.data("width",parseFloat(e.width())),e.data("height",parseFloat(e.height())),e.data("letter-spacing",parseFloat(e.css("letter-spacing"))),e.data("font-size",parseFloat(e.css("font-size"))),"px"==e.css("line-height").slice(-2).toLowerCase()?e.data("line-height",parseFloat(e.css("line-height"))):"normal"==e.css("line-height")?e.data("line-height",1.15*W(e,"font-size")):e.data("line-height",parseFloat(e.css("line-height"))*W(e,"font-size")),e.data("padding-top",parseFloat(e.css("padding-top"))),e.data("padding-right",parseFloat(e.css("padding-right"))),e.data("padding-bottom",parseFloat(e.css("padding-bottom"))),e.data("padding-left",parseFloat(e.css("padding-left"))),e.data("opacity",parseFloat(e.css("opacity")))}function _(){var e,t;switch(l.layout){case"fixed":e=l.startWidth,t=l.startHeight,d.find(p).css({width:e*r,height:t*r}),A().css({width:e*r,height:t*r});break;case"full-width":e=d.width(),t=l.startHeight,d.find(p).css({width:e,height:t*r}),A().css({width:e,height:t*r});break;default:return}}function P(){var e=(Y()-l.startHeight)/2,t=(R()-l.startWidth)/2,i=0,a=0;return 0<e&&(i=e),0<t&&(a=t),{top:i,left:a}}function D(){l.beforeSetResponsive();var e=A();x(!0),e.each(function(){var e=ce(this),t=e.find(f);e.finish(),ne(e),e.finish(),t.each(function(){var e=ce(this);e.finish(),oe(e),e.finish(),$(e)&&J(e)})}),N(),_(),e.each(function(){var e=ce(this);e.find(f).each(function(){var e=ce(this);e.find("*").each(function(){L(ce(this))}),L(e),e.finish(),re(e),e.finish(),$(e)&&J(e)}),e.finish(),se(e),e.finish()}),k=ce(window).width(),T()}function L(e){e.css({top:M(W(e,"top")+P().top),left:M(W(e,"left")+P().left),"padding-top":M(W(e,"padding-top")),"padding-right":M(W(e,"padding-right")),"padding-bottom":M(W(e,"padding-bottom")),"padding-left":M(W(e,"padding-left"))}),e.is("input")||e.is("button")||e.text().trim().length?e.css({"line-height":M(W(e,"line-height"))+"px","letter-spacing":M(W(e,"letter-spacing")),"font-size":M(W(e,"font-size"))}):e.css({width:M(W(e,"width")),height:M(W(e,"height"))})}function N(){var e=d.width(),t=l.startWidth;r=t<=e||!l.responsive?1:e/t}function M(e){return e*r}function T(){l.automaticSlide?function e(){X(u).done(function(){a||(u=C(),e())})}():X(u),o=!1}function x(t){for(var e=0;e<m.length;e++)m[e].clear();for(e=0;e<g.length;e++)g[e].clear();v.clear(),A().each(function(){var e=ce(this);t?e.finish():e.stop(!0,!0),e.find(f).each(function(){var e=ce(this);t?e.finish():e.stop(!0,!0)})}),B()}function F(){!a&&h&&(l.beforePause(),d.find(p).find(".cs-progress-bar").stop(!0),v.pause(),a=!0)}function O(){var e,t;a&&h&&(l.beforeResume(),e=d.find(p).find(".cs-progress-bar"),W(U(u),"time"),t=v.getRemaining(),e.animate({width:"100%"},t),v.resume(),a=!1)}function R(){return d.find(p).width()}function Y(){return d.find(p).height()}function C(){return u+1==n?0:u+1}function z(){return u-1<0?n-1:u-1}function W(e,t){var i=!!e.parent("ul").hasClass("cs-slides");switch(t){case"ease-in":return i?isNaN(parseInt(e.data(t)))?l.slidesEaseIn:parseInt(e.data(t)):isNaN(parseInt(e.data(t)))?l.elementsEaseIn:parseInt(e.data(t));case"ease-out":return i?isNaN(parseInt(e.data(t)))?l.slidesEaseOut:parseInt(e.data(t)):isNaN(parseInt(e.data(t)))?l.elementsEaseOut:parseInt(e.data(t));case"delay":return isNaN(parseInt(e.data(t)))?l.elementsDelay:parseInt(e.data(t));case"time":return i?isNaN(parseInt(e.data(t)))?l.slidesTime:parseInt(e.data(t)):"all"==e.data(t)?"all":isNaN(parseInt(e.data(t)))?l.itemsTime:parseInt(e.data(t));case"ignore-ease-out":return 1==parseInt(e.data(t))?!0:0!=parseInt(e.data(t))&&l.ignoreElementsEaseOut;case"autoplay":return 1==parseInt(e.data(t))?!0:0!=parseInt(e.data(t))&&l.videoAutoplay;case"loop":return 1==parseInt(e.data(t))?!0:0!=parseInt(e.data(t))&&l.videoLoop;case"start-mute":return 1==parseInt(e.data(t))?!0:0!=parseInt(e.data(t))&&l.videoStartMute;case"pause-while-watching":return 1==parseInt(e.data(t))?!0:0!=parseInt(e.data(t))&&l.videoPauseWhileWatching;case"top":case"left":case"width":case"height":case"padding-top":case"padding-right":case"padding-bottom":case"padding-left":case"line-height":case"letter-spacing":case"font-size":return isNaN(parseFloat(e.data(t)))?0:parseFloat(e.data(t));case"in":case"out":case"opacity":return e.data(t);default:return!1}}function A(){return d.find(p).find(s).find(i)}function U(e){return A().eq(e)}function H(e,t){var i,a,n=t;this.pause=function(){clearTimeout(i),n-=new Date-a},this.resume=function(){a=new Date,clearTimeout(i),i=window.setTimeout(function(){e()},n)},this.clear=function(){clearTimeout(i)},this.getRemaining=function(){return n},this.resume()}function j(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function B(){var e=d.find(p).find(".cs-progress-bar");e.stop(),e.css("width",0)}function q(e){e!=u&&(h||c)&&(x(!1),V(u,!1,!0).done(function(){u=e,T()}))}function X(e){l.beforeSlideStart();var t=new ce.Deferred;c=!1;for(var i=0;i<m.length;i++)m[i].clear();for(var a,n,s,o,r,i=0;i<g.length;i++)g[i].clear();return v.clear(),U(e).finish(),se(e),U(e).finish(),U(e).find(f).each(function(){var e=ce(this);e.finish(),re(e),e.finish()}),d.find(p).find(".cs-navigation").find("> .cs-slide-link").each(function(){var e=ce(this);e.index()==u?e.addClass("cs-active"):e.removeClass("cs-active")}),n=U(a=e).find(f),s=0,o=!1,r=new ce.Deferred,h=!1,ne(a).done(function(){var e;e=d.find(p).find(".cs-progress-bar"),B(),e.animate({width:"100%"},W(U(u),"time")),o=h=!0,s==n.length&&r.resolve()}),n.each(function(){var t=ce(this),e=W(t,"delay");g.push(new H(function(){oe(t).done(function(){var e;$(t)&&(Q(e=t)?function(e){!W(e,"autoplay")||b[e.attr("id")].played_once||j()||K(e).playVideo(),2!=Z(e)||b[e.attr("id")].manually_paused||K(e).playVideo(),b[e.attr("id")].played_once=!0}:function(e){!W(e,"autoplay")||w[e.attr("id")].played_once||j()||te(e).api("play"),te(e).api("paused")&&!w[e.attr("id")].ended&&w[e.attr("id")].played_once&&!w[e.attr("id")].manually_paused&&te(e).api("play")})(e),s++,o&&s==n.length&&r.resolve()})},e))}),r.promise(),l.automaticSlide?V(e,!0,!0).done(function(){c=!0,t.resolve()}):V(e,!0,!1).done(function(){c=!0,t.resolve()}),t.promise()}function V(a,n,s){var e=U(a),o=e.find(f),t=n?W(e,"time")+W(e,"ease-in"):0,r=0,c=!1,l=new ce.Deferred;return o.each(function(){var e,t=ce(this),i=W(t,"time");"all"!=i&&(e=n?i:0,W(t,"ignore-ease-out")&&(r++,o.length==r&&c&&s&&(G(a),se(a),l.resolve())),m.push(new H(function(){re(t).done(function(){W(t,"ignore-ease-out")||(r++,o.length==r&&c&&s&&(G(a),se(a),l.resolve()))})},e)))}),v=new H(function(){h=!1,B(),c=!0,o.length==r&&c&&s&&(G(a),se(a),l.resolve()),s?o.each(function(){var e=ce(this);"all"==W(e,"time")&&(W(e,"ignore-ease-out")&&(r++,o.length==r&&c&&s&&(G(a),se(a),l.resolve())),re(e).done(function(){W(e,"ignore-ease-out")||(r++,o.length==r&&c&&s&&(G(a),se(a),l.resolve()))}))}):l.resolve()},t),l.promise()}function $(e){return Q(e)||e.hasClass("cs-vimeo-iframe")}function G(e){U(e).each(function(){ce(this).find(f+".cs-yt-iframe").each(function(){ee(ce(this))})}),U(e).each(function(){ce(this).find(f+".cs-vimeo-iframe").each(function(){ie(ce(this))})})}function J(e){(Q(e)?ee:ie)(e)}function Q(e){return e.hasClass("cs-yt-iframe")}function K(e){return b[e.attr("id")].player}function Z(e){return K(e).getPlayerState()}function ee(e){1==Z(e)&&K(e).pauseVideo()}function te(e){return w[e.attr("id")].player}function ie(e){te(e).api("pause")}function ae(){var t=!1;return U(u).find(f+".cs-yt-iframe").each(function(){var e;t||W(e=ce(this),"pause-while-watching")&&1==Z(e)&&(t=!0)}),t||(U(u).find(f+".cs-vimeo-iframe").each(function(){var e;t||W(e=ce(this),"pause-while-watching")&&w[e.attr("id")].playing&&(t=!0)}),t)}function ne(e){var t=U(e),i=W(t,"in"),a=W(t,"ease-in"),n=new ce.Deferred;if("block"==t.css("display"))return n.resolve().promise();if(o)return t.css({display:"block",top:0,left:0,opacity:W(t,"opacity")}),n.resolve().promise();switch(i){case"fade":t.css({display:"block",top:0,left:0,opacity:0}),t.animate({opacity:W(t,"opacity")},a,function(){n.resolve()});break;case"fadeLeft":t.css({display:"block",top:0,left:R(),opacity:0}),t.animate({opacity:W(t,"opacity"),left:0},a,function(){n.resolve()});break;case"fadeRight":t.css({display:"block",top:0,left:-R(),opacity:0}),t.animate({opacity:W(t,"opacity"),left:0},a,function(){n.resolve()});break;case"slideLeft":t.css({display:"block",top:0,left:R(),opacity:W(t,"opacity")}),t.animate({left:0},a,function(){n.resolve()});break;case"slideRight":t.css({display:"block",top:0,left:-R(),opacity:W(t,"opacity")}),t.animate({left:0},a,function(){n.resolve()});break;case"slideUp":t.css({display:"block",top:Y(),left:0,opacity:W(t,"opacity")}),t.animate({top:0},a,function(){n.resolve()});break;case"slideDown":t.css({display:"block",top:-Y(),left:0,opacity:W(t,"opacity")}),t.animate({top:0},a,function(){n.resolve()});break;default:t.css({display:"block",top:0,left:0,opacity:W(t,"opacity")}),n.resolve()}return n.promise()}function se(e){var t=U(e),i=W(t,"out"),a=W(t,"ease-out"),n=new ce.Deferred;if("none"==t.css("display"))return n.resolve().promise();switch(i){case"fade":t.animate({opacity:0},a,function(){t.css({display:"none",opacity:W(t,"opacity")}),n.resolve()});break;case"fadeLeft":t.animate({opacity:0,left:-R()},a,function(){t.css({display:"none",opacity:W(t,"opacity"),left:0}),n.resolve()});break;case"fadeRight":t.animate({opacity:0,left:R()},a,function(){t.css({display:"none",opacity:W(t,"opacity"),left:0}),n.resolve()});break;case"slideLeft":t.animate({left:-R()},a,function(){t.css({display:"none",left:0}),n.resolve()});break;case"slideRight":t.animate({left:R()},a,function(){t.css({display:"none",left:0}),n.resolve()});break;case"slideUp":t.animate({top:-Y()},a,function(){t.css({display:"none",top:0}),n.resolve()});break;case"slideDown":t.animate({top:Y()},a,function(){t.css({display:"none",top:0}),n.resolve()});break;default:t.css({display:"none"}),n.resolve()}return n.promise()}function oe(e){var t=e.outerWidth(),i=e.outerHeight(),a=W(e,"in"),n=W(e,"ease-in"),s=W(e,"top"),o=W(e,"left"),r=new ce.Deferred;if("block"==e.css("display"))return r.resolve().promise();switch(a){case"slideDown":e.css({display:"block",top:-i,left:M(o+P().left),opacity:W(e,"opacity")}).animate({top:M(s+P().top)},n,function(){r.resolve()});break;case"slideUp":e.css({display:"block",top:Y(),left:M(o+P().left),opacity:W(e,"opacity")}).animate({top:M(s+P().top)},n,function(){r.resolve()});break;case"slideLeft":e.css({display:"block",top:M(s+P().top),left:R(),opacity:W(e,"opacity")}).animate({left:M(o+P().left)},n,function(){r.resolve()});break;case"slideRight":e.css({display:"block",top:M(s+P().top),left:-t,opacity:W(e,"opacity")}).animate({left:M(o+P().left)},n,function(){r.resolve()});break;case"fade":e.css({display:"block",top:M(s+P().top),left:M(o+P().left),opacity:0}).animate({opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeDown":e.css({display:"block",top:-i,left:M(o+P().left),opacity:0}).animate({top:M(s+P().top),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeUp":e.css({display:"block",top:Y(),left:M(o+P().left),opacity:0}).animate({top:M(s+P().top),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeLeft":e.css({display:"block",top:M(s+P().top),left:R(),opacity:0}).animate({left:M(o+P().left),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeRight":e.css({display:"block",top:M(s+P().top),left:-t,opacity:0}).animate({left:M(o+P().left),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeSmallDown":e.css({display:"block",top:M(s+P().top-30),left:M(o+P().left),opacity:0}).animate({top:M(s+P().top),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeSmallUp":e.css({display:"block",top:M(s+P().top+30),left:M(o+P().left),opacity:0}).animate({top:M(s+P().top),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeSmallLeft":e.css({display:"block",top:M(s+P().top),left:M(o+P().left+30),opacity:0}).animate({left:M(o+P().left),opacity:W(e,"opacity")},n,function(){r.resolve()});break;case"fadeSmallRight":e.css({display:"block",top:M(s+P().top),left:M(o+P().left-30),opacity:0}).animate({left:M(o+P().left),opacity:W(e,"opacity")},n,function(){r.resolve()});break;default:e.css({display:"block",top:M(s+P().top),left:M(o+P().left),opacity:W(e,"opacity")}),r.resolve()}return r.promise()}function re(e){var t=e.outerWidth(),i=e.outerHeight(),a=W(e,"out"),n=W(e,"ease-out"),s=new ce.Deferred;if("none"==e.css("display"))return s.resolve().promise();switch(a){case"slideDown":e.animate({top:Y()},n,function(){e.css({display:"none"}),s.resolve()});break;case"slideUp":e.animate({top:-i},n,function(){e.css({display:"none"}),s.resolve()});break;case"slideLeft":e.animate({left:-t},n,function(){e.css({display:"none"}),s.resolve()});break;case"slideRight":e.animate({left:R()},n,function(){e.css({display:"none"}),s.resolve()});break;case"fade":e.animate({opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeDown":e.animate({top:Y(),opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeUp":e.animate({top:-i,opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeLeft":e.animate({left:-t,opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeRight":e.animate({left:R(),opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeSmallDown":e.animate({top:M(W(e,"top")+P().top+30),opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeSmallUp":e.animate({top:M(W(e,"top")+P().top-30),opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeSmallLeft":e.animate({left:M(W(e,"left")+P().left-30),opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;case"fadeSmallRight":e.animate({left:M(W(e,"left")+P().left+30),opacity:0},n,function(){e.css({display:"none",opacity:W(e,"opacity")}),s.resolve()});break;default:e.css({display:"none"}),s.resolve()}return s.promise()}!crellyslider_youtube_api_ready&&S("youtube")&&function(){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),crellyslider_youtube_api_ready=!0}(),!crellyslider_vimeo_api_ready&&S("vimeo")&&le(),!crellyslider_youtube_api_ready||"undefined"!=typeof YT&&void 0!==YT.Player?E():t=setInterval(function(){"undefined"!=typeof YT&&void 0!==YT.Player&&(clearInterval(t),E())},100),this.resume=function(){O()},this.pause=function(){F()},this.nextSlide=function(){q(C())},this.previousSlide=function(){q(z())},this.changeSlide=function(e){q(e)},this.getCurrentSlide=function(){return u},this.getTotalSlides=function(){return n}},ce.fn.crellySlider=function(e){var t=ce.extend({layout:"fixed",responsive:!0,startWidth:1140,startHeight:500,pauseOnHover:!0,automaticSlide:!0,randomOrder:!0,startFromSlide:0,showControls:!0,showNavigation:!0,showProgressBar:!0,enableSwipe:!0,slidesTime:3e3,elementsDelay:0,elementsTime:"all",slidesEaseIn:300,elementsEaseIn:300,slidesEaseOut:300,elementsEaseOut:300,ignoreElementsEaseOut:!1,videoAutoplay:!1,videoLoop:!1,videoStartMute:!1,videoPauseWhileWatching:!0,beforeStart:function(){},beforeSetResponsive:function(){},beforeSlideStart:function(){},beforePause:function(){},beforeResume:function(){}},e);return this.each(function(){var e;null==ce(this).data("crellySlider")&&(e=new ce.CrellySlider(this,t),ce(this).data("crellySlider",e))})}}(jQuery);