(function(){var g={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(g.Android()||g.BlackBerry()||g.iOS()||g.Opera()||g.Windows())}};var d=function(){var j=0;$(".animate-box").waypoint(function(k){if(k==="down"&&!$(this.element).hasClass("animated-fast")){j++;$(this.element).addClass("item-animate");setTimeout(function(){$("body .animate-box.item-animate").each(function(l){var m=$(this);setTimeout(function(){var n=m.data("animate-effect");if(n==="fadeIn"){m.addClass("fadeIn animated-fast")}else{if(n==="fadeInLeft"){m.addClass("fadeInLeft animated-fast")}else{if(n==="fadeInRight"){m.addClass("fadeInRight animated-fast")}else{m.addClass("fadeInUp animated-fast")}}}m.removeClass("item-animate")},l*50,"easeInOutExpo")})},100)}},{offset:"85%"})};var e=function(){$(".js-gotop").on("click",function(j){j.preventDefault();$("html, body").animate({scrollTop:$("html").offset().top},500,"easeInOutExpo");return false});$(window).scroll(function(){var j=$(window);if(j.scrollTop()>200){$(".js-top").addClass("active")}else{$(".js-top").removeClass("active")}})};var c=function(){$(".loader").fadeOut("slow")};var i=function(){if($("#gtco-counter").length>0){$("#gtco-counter").waypoint(function(j){if(j==="down"&&!$(this.element).hasClass("animated")){setTimeout(counter,400);$(this.element).addClass("animated")}},{offset:"90%"})}};var b=function(){if(!g.any()){$(window).stellar()}};var h=function(){if(!g.any()){$(".js-fullheight").css("height",$(window).height());$(window).resize(function(){$(".js-fullheight").css("height",$(window).height())})}};var a=function(){$("#main-hero .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)}});$("#main-hero .flexslider .slides > li").css("height",$(window).height());$(window).resize(function(){$("#main-hero .flexslider .slides > li").css("height",$(window).height())})};var f=function(){jQuery(".owl-carousel2").owlCarousel({loop:true,center:true,margin:30,responsiveClass:true,nav:true,responsive:{0:{items:1,nav:true},600:{items:2,nav:true,margin:10,center:false,},1000:{items:3,nav:true,loop:true}}})};$(function(){d();e();c();b();a();h();f()})}());