!function(){"use strict";var t=function(){$("#wz08g-primary-menu").superfish({delay:0,animation:{opacity:"show"},speed:"fast",cssArrows:!0,disableHI:!0})},a=function(){$(window).stellar()},e=function(){var t=$("#wz08g-menu-wrap").clone();t.attr({id:"offcanvas-menu"}),t.find("> ul").attr({class:"",id:""}),$("#wz08g-page").prepend(t),$(".js-wz08g-nav-toggle").on("click",function(){$("body").hasClass("wz08g-offcanvas")?$("body").removeClass("wz08g-offcanvas"):$("body").addClass("wz08g-offcanvas")}),$("#offcanvas-menu").css("height",$(window).height()),$(window).resize(function(){var t=$(window);$("#offcanvas-menu").css("height",t.height()),t.width()>769&&$("body").hasClass("wz08g-offcanvas")&&$("body").removeClass("wz08g-offcanvas")})},n=function(){$(document).click(function(t){var a=$("#offcanvas-menu, .js-wz08g-nav-toggle");a.is(t.target)||0!==a.has(t.target).length||$("body").hasClass("wz08g-offcanvas")&&$("body").removeClass("wz08g-offcanvas")})},s=function(){var t=0;$(".animate-box").waypoint(function(a){"down"!==a||$(this.element).hasClass("animated")||(t++,$(this.element).addClass("item-animate"),setTimeout(function(){$("body .animate-box.item-animate").each(function(t){var a=$(this);setTimeout(function(){a.addClass("fadeInUp animated"),a.removeClass("item-animate")},50*t,"easeInOutExpo")})},100))},{offset:"85%"})},o=function(){var t=$(".sticky-banner");t.length&&new Waypoint.Sticky({element:t[0],offset:0})},i=function(){$(".js-gotop").on("click",function(t){return t.preventDefault(),$("html, body").animate({scrollTop:$("html").offset().top},500,"easeInOutExpo"),!1}),$(window).scroll(function(){$(window).scrollTop()>200?$(".js-top").addClass("active"):$(".js-top").removeClass("active")})},c=function(){$(".wz08g-loader").fadeOut("slow")},f=function(){$("#cover-slider .flexslider").flexslider({animation:"fade",slideshowSpeed:5e3,directionNav:!0,start:function(){setTimeout(function(){$(".slider-text").removeClass("animated fadeInUp"),$(".flex-active-slide").find(".slider-text").addClass("animated fadeInUp")},500)},before:function(){setTimeout(function(){$(".slider-text").removeClass("animated fadeInUp"),$(".flex-active-slide").find(".slider-text").addClass("animated fadeInUp")},500)}})},d=function(){$(".gtco-tab-content-wrap").css("height",0);var t=function(){setTimeout(function(){var t=$(".gtco-tab-content-wrap"),a=$(".gtco-tab-nav").outerHeight(),e=$(".tab-content.active").outerHeight(),n=parseInt(a+e+90);t.css("height",n),$(window).resize(function(){var t=$(".gtco-tab-content-wrap"),a=$(".gtco-tab-nav").outerHeight(),e=$(".tab-content.active").outerHeight(),n=parseInt(a+e+90);t.css("height",n)})},100)};t(),$(".gtco-tab-nav a").on("click",function(a){var e=$(this),n=e.data("tab");$(".tab-content").addClass("animated-fast fadeOutDown"),$(".tab-content").removeClass("active"),$(".gtco-tab-nav li").removeClass("active"),e.closest("li").addClass("active"),e.closest(".gtco-tabs").find('.tab-content[data-tab-content="'+n+'"]').removeClass("animated-fast fadeOutDown").addClass("animated-fast active fadeIn"),t(),a.preventDefault()})};$(".gallery-carousel").owlCarousel({margin:30,autoplay:!0,dots:!0,loop:!0,responsive:{0:{items:1},768:{items:3},900:{items:3}}}),$(function(){t(),a(),e(),n(),s(),o(),i(),c(),f(),d()})}();