!function(){"use strict";var o={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 o.Android()||o.BlackBerry()||o.iOS()||o.Opera()||o.Windows()}},e=function(){$(".js-backtotop").on("click",function(o){o.preventDefault(),$("html, body").animate({scrollTop:$("body").offset().top},700,"easeInOutExpo")})},t=function(){$(".js-next").on("click",function(o){o.preventDefault(),$("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top},700,"easeInOutExpo")}),$(window).scroll(function(){$(this).scrollTop()>10?$(".js-next").addClass("probootstrap-sleep"):$(".js-next").removeClass("probootstrap-sleep")})},a=function(){$(".probootstrap-burger-menu").on("click",function(o){o.preventDefault(),$("body").hasClass("show")?($(".probootstrap-burger-menu").removeClass("active"),$("body").removeClass("show")):($(".probootstrap-burger-menu").addClass("active"),$("body").addClass("show"))}),$(window).width()>766?($("body").removeClass("probootstrap-mobile-menu-active"),$(".probootstrap-burger-menu").removeClass("active")):$("body").addClass("probootstrap-mobile-menu-active"),$(window).resize(function(){$(window).width()>766?($("body").removeClass("probootstrap-mobile-menu-active show"),$(".probootstrap-burger-menu").removeClass("active")):$("body").addClass("probootstrap-mobile-menu-active")}),$(document).click(function(o){var e=$(".probootstrap-nav, .probootstrap-burger-menu");e.is(o.target)||0!==e.has(o.target).length||$("body").hasClass("show")&&($("body").removeClass("show"),$(".probootstrap-burger-menu").removeClass("active"))})},i=function(){$(".js-probootstrap-search").on("click",function(){$("#probootstrap-search").addClass("active"),setTimeout(function(){$("#probootstrap-search").find("#search").focus().select()},500)}),$(".js-probootstrap-close").on("click",function(){$("#probootstrap-search").removeClass("active")})},n=function(){o.any()||$(".probootstrap-navbar .navbar-nav li.dropdown").hover(function(){$(this).find("> .dropdown-menu").stop(!0,!0).delay(200).fadeIn(500).addClass("animated-fast fadeInUp")},function(){$(this).find("> .dropdown-menu").stop(!0,!0).fadeOut(200).removeClass("animated-fast fadeInUp")})},r=function(){var o=$(".owl-carousel-carousel"),e=$(".owl-carousel-carousel2"),t=$(".owl-carousel-carousel3");o.owlCarousel({items:3,loop:!0,margin:20,nav:!1,dots:!1,smartSpeed:800,autoHeight:!0,navText:["",""],responsive:{0:{items:1},400:{items:1},600:{items:2},1e3:{items:3}}}),e.owlCarousel({items:3,loop:!0,margin:20,nav:!1,dots:!1,smartSpeed:800,autoHeight:!0,navText:["",""],responsive:{0:{items:1},400:{items:1},600:{items:2},1e3:{items:3}}}),t.owlCarousel({items:3,loop:!0,margin:20,nav:!1,dots:!1,smartSpeed:800,autoHeight:!0,navText:["",""],responsive:{0:{items:1},400:{items:1},600:{items:2},1e3:{items:3}}}),$(".probootstrap-owl-next").click(function(e){o.trigger("next.owl.carousel"),e.preventDefault()}),$(".probootstrap-owl-prev").click(function(e){o.trigger("prev.owl.carousel"),e.preventDefault()}),$(".probootstrap-owl-next2").click(function(o){e.trigger("next.owl.carousel"),o.preventDefault()}),$(".probootstrap-owl-prev2").click(function(o){e.trigger("prev.owl.carousel"),o.preventDefault()}),$(".probootstrap-owl-next3").click(function(o){t.trigger("next.owl.carousel"),o.preventDefault()}),$(".probootstrap-owl-prev3").click(function(o){t.trigger("prev.owl.carousel"),o.preventDefault()});var a=$(".owl-carousel-fullwidth");a.owlCarousel({loop:!0,margin:20,nav:!1,dots:!0,smartSpeed:800,autoHeight:!0,autoplay:!0,navText:["",""],responsive:{0:{items:1},980:{items:1},1100:{items:2}}}),(a=$(".owl-work")).owlCarousel({stagePadding:150,loop:!0,margin:20,nav:!0,dots:!1,mouseDrag:!1,autoWidth:!0,autoHeight:!0,autoplay:!0,autoplayTimeout:2e3,autoplayHoverPause:!0,navText:["",""],responsive:{0:{items:1,stagePadding:10},500:{items:2,stagePadding:20},600:{items:2,stagePadding:40},800:{items:2,stagePadding:100},1100:{items:3},1400:{items:4}}})},s=function(){$(".flexslider").flexslider({animation:"fade",prevText:"",nextText:"",slideshowSpeed:2e3,animationSpeed:600,slideshow:!0,directionNav:!1,controlNav:!0}),$(".flexslider2").flexslider({animation:"fade",prevText:"",nextText:"",slideshowSpeed:2e3,animationSpeed:600,slideshow:!0,directionNav:!1,controlNav:!1})},l=function(){var o=0;$(".probootstrap-animate").waypoint(function(e){"down"!==e||$(this.element).hasClass("probootstrap-animated")||(o++,$(this.element).addClass("item-animate"),setTimeout(function(){$("body .probootstrap-animate.item-animate").each(function(o){var e=$(this);setTimeout(function(){var o=e.data("animate-effect");"fadeIn"===o?e.addClass("fadeIn probootstrap-animated"):"fadeInLeft"===o?e.addClass("fadeInLeft probootstrap-animated"):"fadeInRight"===o?e.addClass("fadeInRight probootstrap-animated"):e.addClass("fadeInUp probootstrap-animated"),e.removeClass("item-animate")},100*o,"easeInOutExpo")})},200))},{offset:"95%"})},c=function(){$(".js-counter").countTo({formatter:function(o,e){return o.toFixed(e.decimals)}})},p=function(){$("#probootstrap-counter").length>0&&$("#probootstrap-counter").waypoint(function(o){"down"!==o||$(this.element).hasClass("probootstrap-animated")||(setTimeout(c,400),$(this.element).addClass("probootstrap-animated"))},{offset:"90%"})},d=function(){$(".image-popup").magnificPopup({type:"image",removalDelay:300,mainClass:"mfp-with-zoom",gallery:{enabled:!0},zoom:{enabled:!0,duration:300,easing:"ease-in-out",opener:function(o){return o.is("img")?o:o.find("img")}}}),$(".with-caption").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",image:{verticalFit:!0,titleSrc:function(o){return o.el.attr("title")+' · image source'}},zoom:{enabled:!0}}),$(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1})},u=function(){o.any()||$(window).stellar()},m=function(){$("img.svg").each(function(){var o=$(this),e=o.attr("id"),t=o.attr("class"),a=o.attr("src");$.get(a,function(a){var i=jQuery(a).find("svg");void 0!==e&&(i=i.attr("id",e)),void 0!==t&&(i=i.attr("class",t+" replaced-svg")),i=i.removeAttr("xmlns:a"),o.replaceWith(i)},"xml")})},f=function(){$(".probootstrap-loader").fadeOut("slow")},v=function(){$(".js-gotop").on("click",function(o){return o.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")})};$(document).ready(function(){n(),p(),l(),e(),i(),d(),u(),a(),t(),f(),v(),m()}),$(window).load(function(){r(),s()})}();