"undefined"!=typeof jQuery&&(jQuery.noConflict(),function(t){"use strict";t(function(){var o={init:function(){this.carousel(),this.setup_parallax(),this.setup_ytp()},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?!0:!1},vendor_prefix:function(){function t(){var o=window.getComputedStyle(document.documentElement,"");return t=(Array.prototype.slice.call(o).join("").match(/-(moz|webkit|ms)-/)||""===o.OLink&&["","o"])[1]}var t;return t(),t},carousel:function(){if(void 0!==t().slick){var o=t(".lsow-carousel, .lsow-posts-carousel");o.each(function(){var o=t(this),e=o.data("arrows")?!0:!1,a=o.data("dots")?!0:!1,i=o.data("autoplay")?!0:!1,n=o.data("autoplay_speed")||3e3,s=o.data("animation_speed")||300,l=(o.data("fade")?!0:!1,o.data("pause_on_hover")?!0:!1),r=o.data("display_columns")||4,d=o.data("scroll_columns")||4,u=(o.data("gutter")||10,o.data("tablet_width")||800),c=o.data("tablet_display_columns")||2,p=o.data("tablet_scroll_columns")||2,m=o.data("mobile_width")||480,w=o.data("mobile_display_columns")||1,f=o.data("mobile_scroll_columns")||1;o.slick({arrows:e,dots:a,infinite:!0,autoplay:i,autoplaySpeed:n,speed:s,fade:!1,pauseOnHover:l,slidesToShow:r,slidesToScroll:d,responsive:[{breakpoint:u,settings:{slidesToShow:c,slidesToScroll:p}},{breakpoint:m,settings:{slidesToShow:w,slidesToScroll:f}}]})})}},setup_parallax:function(){function e(){if(o.isMobile()===!1){var e=t(window).height();t(".lsow-section-bg-parallax").each(function(){var a=t(this),i=a.outerHeight(!0),n=a[0].getBoundingClientRect();if(n.bottom>=0&&n.top<=e){var s=e+i,l=e-n.top,r=50,d=r*Math.abs(l/s);d=-d.toFixed(2),a.find(".lsow-parallax-bg").css("-"+o.vendor_prefix()+"-transform","translate3d(0px, "+d+"%, 0px)")}})}}var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){window.setTimeout(t,1e3/600)};this.isMobile()===!1&&(a(e),t(window).on("scroll",function(){a(e)}))},setup_ytp:function(){this.isMobile()||void 0===t().mb_YTPlayer||t(".lsow-section-bg-youtube").mb_YTPlayer({startAt:0,showYTLogo:!1,showControls:!1,autoPlay:!0,mute:!0,containment:"self"})}};o.init()})}(jQuery));