!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%"})},i=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")})},n=function(){$(".loader").fadeOut("slow")},a=function(){e.any()||$(window).stellar()},o=function(){e.any()||($(".js-fullheight").css("height",$(window).height()),$(window).resize(function(){$(".js-fullheight").css("height",$(window).height())}))},s=function(){$("#main-hero .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)}}),$("#main-hero .flexslider .slides > li").css("height",$(window).height()),$(window).resize(function(){$("#main-hero .flexslider .slides > li").css("height",$(window).height())})},d=function(){jQuery(".owl-carousel2").owlCarousel({loop:!0,center:!0,margin:30,responsiveClass:!0,nav:!0,responsive:{0:{items:1,nav:!0},600:{items:2,nav:!0,margin:10,center:!1},1e3:{items:3,nav:!0,loop:!0}}})};$(function(){$(".imgZoom").click(function(){$(".modal").show();var e=$(this).children("img").attr("src"),t=$(this).children("img").attr("alt");$(".modalBox img").attr("src",e),$(".modalBox img").attr("alt",t);var i=$(this).children("p").text();$(".modalBox p").text(i)}),$(".modal button").click(function(){$(".modal").hide()}),$(".modal").click(function(e){if("modal"!=e.target.className)return!1;$(".modal").hide()})}),$(function(){t(),i(),n(),a(),s(),o(),d()})}();