!function(){"use strict";var e=function(){$("#wz08g-primary-menu").superfish({delay:0,animation:{opacity:"show"},speed:"fast",cssArrows:!0,disableHI:!0})},n=function(){$(window).stellar()},a=function(){var e=$("#wz08g-menu-wrap").clone();e.attr({id:"offcanvas-menu"}),e.find("> ul").attr({class:"",id:""}),$("#wz08g-page").prepend(e),$(".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 e=$(window);$("#offcanvas-menu").css("height",e.height()),e.width()>769&&$("body").hasClass("wz08g-offcanvas")&&$("body").removeClass("wz08g-offcanvas")})},t=function(){$(document).click(function(e){var n=$("#offcanvas-menu, .js-wz08g-nav-toggle");n.is(e.target)||0!==n.has(e.target).length||$("body").hasClass("wz08g-offcanvas")&&$("body").removeClass("wz08g-offcanvas")})},s=function(){var e=0;$(".animate-box").waypoint(function(n){"down"!==n||$(this.element).hasClass("animated")||(e++,$(this.element).addClass("item-animate"),setTimeout(function(){$("body .animate-box.item-animate").each(function(e){var n=$(this);setTimeout(function(){n.addClass("fadeInUp animated"),n.removeClass("item-animate")},50*e,"easeInOutExpo")})},100))},{offset:"85%"})},i=function(){var e=$(".sticky-banner");e.length&&new Waypoint.Sticky({element:e[0],offset:0})},o=function(){$(".js-gotop").on("click",function(e){return e.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")})},l=function(){$(".wz08g-loader").fadeOut("slow")},c=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)}})};$(function(){e(),n(),a(),t(),s(),i(),o(),l(),c()})}(),$(function(){new Swiper(".rolling_banner",{spaceBetween:20,loop:!0,autoplay:{delay:2500,disableOnInteraction:!1,reverseDirection:!1},navigation:{nextEl:".rolling_next",prevEl:".rolling_prev"},breakpoints:{480:{slidesPerView:2},640:{slidesPerView:3},768:{slidesPerView:5}}})}),$(function(){$(".tab_content").hide(),$(".tab_content:first").show(),$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active").css("color","#333"),$(this).addClass("active").css("color","darkred"),$(".tab_content").hide();var e=$(this).attr("rel");$("#"+e).fadeIn()})});