!function(o){"use strict";var a;o(window).on("load",(function(){o('[data-loader="circle-side"]').fadeOut(),o("#preloader").delay(333).fadeOut("slow"),o("body").delay(333)})),o(".primary-menu ul.navbar-nav li.dropdown, .login-signup ul.navbar-nav li.dropdown").on("mouseover",(function(){o(window).width()>991&&(o(this).find("> .dropdown-menu").stop().slideDown("fast"),o(this).bind("mouseleave",(function(){o(this).find("> .dropdown-menu").stop().css("display","none")})))})),o(".primary-menu .dropdown-menu, .login-signup .dropdown-menu").each((function(){var a=o("#header .header-row").offset(),t=o(this).parent().offset().left+o(this).outerWidth()-(a.left+o("#header .header-row").outerWidth());t>0&&o(this).css("margin-left","-"+t+"px")})),o((function(){o(".dropdown li").on("mouseenter mouseleave",(function(a){if(o(window).width()>991){var t=o(".dropdown-menu",this);t.offset().left+t.width()+30<=o(window).width()?(o(t).removeClass("dropdown-menu-right"),o(t).parents(".dropdown:first").find("> a.dropdown-toggle > .arrow").removeClass("arrow-right")):(o(t).addClass("dropdown-menu-right"),o(t).parents(".dropdown:first").find("> a.dropdown-toggle > .arrow").addClass("arrow-right"))}}))})),o(".primary-menu, .login-signup").find("a.dropdown-toggle").append(o("").addClass("arrow")),o('.primary-menu .dropdown-toggle[href="#"], .primary-menu .dropdown-toggle[href!="#"] .arrow, .login-signup .dropdown-toggle[href="#"], .login-signup .dropdown-toggle[href!="#"] .arrow').on("click",(function(a){if(o(window).width()<991){a.preventDefault();var t=o(this).closest("li");t.siblings("li").find(".dropdown-menu:visible").slideUp(),t.find("> .dropdown-menu").stop().slideToggle(),t.siblings("li").find("a .arrow.open").toggleClass("open"),t.find("> a .arrow").toggleClass("open")}})),o(".navbar-toggler").on("click",(function(){o(this).toggleClass("open")})),o(".owl-carousel").each((function(a){var t=o(this);o(this).owlCarousel({autoplay:t.data("autoplay"),autoplayTimeout:t.data("autoplaytimeout"),autoplayHoverPause:t.data("autoplayhoverpause"),loop:t.data("loop"),speed:t.data("speed"),nav:t.data("nav"),dots:t.data("dots"),autoHeight:t.data("autoheight"),autoWidth:t.data("autowidth"),margin:t.data("margin"),stagePadding:t.data("stagepadding"),slideBy:t.data("slideby"),lazyLoad:t.data("lazyload"),navText:['',''],animateOut:t.data("animateOut"),animateIn:t.data("animateIn"),video:t.data("video"),items:t.data("items"),responsive:{0:{items:t.data("items-xs")},576:{items:t.data("items-sm")},768:{items:t.data("items-md")},992:{items:t.data("items-lg")}}})})),o(".video-btn").on("click",(function(){a=o(this).data("src")})),o("#videoModal").on("shown.bs.modal",(function(t){o("#video").attr("src",a+"?autoplay=1&modestbranding=1&showinfo=0&rel=0")})),o("#videoModal").on("hide.bs.modal",(function(t){o("#video").attr("src",a)})),o("[data-toggle='tooltip']").tooltip({container:"body"}),o((function(){o(window).on("scroll",(function(){o(this).scrollTop()>150?o("#back-to-top").fadeIn():o("#back-to-top").fadeOut()}))})),o("#back-to-top").on("click",(function(){return o("html, body").animate({scrollTop:0},"slow"),!1})),o(".smooth-scroll a").on("click",(function(){var a=o(this).attr("href");o("html, body").animate({scrollTop:o(a).offset().top-50},600)}))}(jQuery);