(function(){var d=function(){return(navigator.platform.indexOf("iPad")!=-1)};var e=function(){return((navigator.platform.indexOf("iPhone")!=-1)||(navigator.platform.indexOf("iPod")!=-1))};var a=function(){$("#wz08g-primary-menu").superfish({delay:0,animation:{opacity:"show"},speed:"fast",cssArrows:true,disableHI:true})};var g=function(){$(window).stellar()};var b=function(){var m=$("#wz08g-menu-wrap").clone();m.attr({id:"offcanvas-menu"});m.find("> ul").attr({"class":"",id:""});$("#wz08g-page").prepend(m);$(".js-wz08g-nav-toggle").on("click",function(){if($("body").hasClass("wz08g-offcanvas")){$("body").removeClass("wz08g-offcanvas")}else{$("body").addClass("wz08g-offcanvas")}});$("#offcanvas-menu").css("height",$(window).height());$(window).resize(function(){var n=$(window);$("#offcanvas-menu").css("height",n.height());if(n.width()>769){if($("body").hasClass("wz08g-offcanvas")){$("body").removeClass("wz08g-offcanvas")}}})};var l=function(){$(document).click(function(n){var m=$("#offcanvas-menu, .js-wz08g-nav-toggle");if(!m.is(n.target)&&m.has(n.target).length===0){if($("body").hasClass("wz08g-offcanvas")){$("body").removeClass("wz08g-offcanvas")}}})};var h=function(){var m=0;$(".animate-box").waypoint(function(n){if(n==="down"&&!$(this.element).hasClass("animated")){m++;$(this.element).addClass("item-animate");setTimeout(function(){$("body .animate-box.item-animate").each(function(o){var p=$(this);setTimeout(function(){p.addClass("fadeInUp animated");p.removeClass("item-animate")},o*50,"easeInOutExpo")})},100)}},{offset:"85%"})};var j=function(){var n=$(".sticky-banner");var m;if(n.length){m=new Waypoint.Sticky({element:n[0],offset:0})}};var i=function(){$(".js-gotop").on("click",function(m){m.preventDefault();$("html, body").animate({scrollTop:$("html").offset().top},500,"easeInOutExpo");return false});$(window).scroll(function(){var m=$(window);if(m.scrollTop()>200){$(".js-top").addClass("active")}else{$(".js-top").removeClass("active")}})};var f=function(){$(".wz08g-loader").fadeOut("slow")};var c=function(){$("#cover-slider .flexslider").flexslider({animation:"fade",slideshowSpeed:5000,directionNav:true,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)}})};var k=function(){$(".gtco-tab-content-wrap").css("height",0);var m=function(){setTimeout(function(){var n=$(".gtco-tab-content-wrap"),p=$(".gtco-tab-nav").outerHeight(),q=$(".tab-content.active").outerHeight(),o=parseInt(p+q+90);n.css("height",o);$(window).resize(function(){var r=$(".gtco-tab-content-wrap"),t=$(".gtco-tab-nav").outerHeight(),u=$(".tab-content.active").outerHeight(),s=parseInt(t+u+90);r.css("height",s)})},100)};m();$(".gtco-tab-nav a").on("click",function(o){var p=$(this),n=p.data("tab");$(".tab-content").addClass("animated-fast fadeOutDown");$(".tab-content").removeClass("active");$(".gtco-tab-nav li").removeClass("active");p.closest("li").addClass("active");p.closest(".gtco-tabs").find('.tab-content[data-tab-content="'+n+'"]').removeClass("animated-fast fadeOutDown").addClass("animated-fast active fadeIn");m();o.preventDefault()})};$(function(){a();g();b();l();h();j();i();f();c();k()})}());