!function(){"use strict";var e={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()}},t=function(){var e=0;$(".animate-box").waypoint(function(t){"down"!==t||$(this.element).hasClass("animated-fast")||(e++,$(this.element).addClass("item-animate"),setTimeout(function(){$("body .animate-box.item-animate").each(function(e){var t=$(this);setTimeout(function(){var e=t.data("animate-effect");"fadeIn"===e?t.addClass("fadeIn animated-fast"):"fadeInLeft"===e?t.addClass("fadeInLeft animated-fast"):"fadeInRight"===e?t.addClass("fadeInRight animated-fast"):t.addClass("fadeInUp animated-fast"),t.removeClass("item-animate")},50*e,"easeInOutExpo")})},100))},{offset:"85%"})},n=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")})},a=function(){$(".gtco-loader").fadeOut("slow")},i=function(){$(".js-counter").countTo({formatter:function(e,t){return e.toFixed(t.decimals)}})},o=function(){$("#gtco-counter").length>0&&$("#gtco-counter").waypoint(function(e){"down"!==e||$(this.element).hasClass("animated")||(setTimeout(i,400),$(this.element).addClass("animated"))},{offset:"90%"})},s=function(){e.any()||$(window).stellar()},d=function(){$("#main-hero .flexslider").flexslider({animation:"slide",easing:"swing",direction:"horizontal",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)}})},r=function(){$("#sub-hero .flexslider").flexslider({animation:"slide",easing:"swing",direction:"horizontal",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(){t(),n(),a(),o(),s(),d(),r()})}();