function initLambert(){"use strict";function e(){$(".hero-title").css({"margin-top":-1*$(".hero-title").height()/2+"px"}),$(".carousel-link-holder").css({"margin-top":-1*$(".carousel-link-holder").height()/2+"px"}),$(".full-height").css({height:$(window).outerHeight(!0)})}function i(){var i;$(".gallery-items").length&&((i=$(".gallery-items").isotope({singleMode:!0,columnWidth:".grid-sizer, .grid-sizer-second, .grid-sizer-three",itemSelector:".gallery-item, .gallery-item-second, .gallery-item-three"})).imagesLoaded(function(){i.isotope("layout")}),$(".gallery-filters").on("click","a.gallery-filter",function(e){e.preventDefault();e=$(this).attr("data-filter");return i.isotope({filter:e}),$(".gallery-filters a.gallery-filter").removeClass("gallery-filter-active"),$(this).addClass("gallery-filter-active"),!1}))}$("header").hasClass("flat-header")&&$('
').prependTo("#wrapper").css({height:$("header").outerHeight(!0)}),e(),$(".image-popup").magnificPopup({type:"image",closeOnContentClick:!1,removalDelay:600,mainClass:"my-mfp-slide-bottom",image:{verticalFit:!1}}),$(".popup-youtube, .popup-vimeo , .show-map").magnificPopup({disableOn:700,type:"iframe",removalDelay:600,mainClass:"my-mfp-slide-bottom"}),$(".popup-gallery").magnificPopup({delegate:"a",type:"image",fixedContentPos:!0,fixedBgPos:!0,tLoading:"Loading image #%curr%...",removalDelay:600,closeBtnInside:!0,mainClass:"my-mfp-slide-bottom",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.'}}),$(".popup-with-move-anim").magnificPopup({type:"ajax",alignTop:!1,overflowY:"scroll",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!1,midClick:!0,modal:!0,removalDelay:600,mainClass:"my-mfp-slide-bottom"}),$(document).on("click",".popup-modal-dismiss",function(e){e.preventDefault(),$.magnificPopup.close()}),$(".tabs-menu a").on("click",function(e){e.preventDefault(),$(this).parent().addClass("current"),$(this).parent().siblings().removeClass("current");e=$(this).attr("href");$(".tab-content").not(e).css("display","none"),$(e).fadeIn()}),$(".scroll-nav ul").singlePageNav({filter:":not(.external)",updateHash:!1,offset:90,threshold:120,speed:1200,currentClass:"act-link"}),i(),$(window).load(function(){i()}),$(".to-top").on("click",function(){$("html, body").animate({scrollTop:0},1200,"easeInOutExpo")}),$(".custom-scroll-link").on("click",function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var e=$(this.hash);if((e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length)return $("html,body").animate({scrollTop:e.offset().top-74},{queue:!1,duration:1200,easing:"easeInOutExpo"}),!1}}),$(window).scroll(function(){150<$(this).scrollTop()?($("header").addClass("sticky"),setTimeout(function(){$(".logo-holder").addClass("logo-sticky")},350)):($("header").removeClass("sticky"),setTimeout(function(){$(".logo-holder").removeClass("logo-sticky")},350))}),$(".header-inner .container").append(''),$(".hero-content").append('
');var t=$(".nav-button"),a=$(".nav-holder");$(".nav-holder ,.nav-button ");function n(){t.addClass("vis-m"),a.slideUp(500)}t.on("click",function(){$(this).hasClass("vis-m")?(t.removeClass("vis-m"),a.slideDown(500)):n()}),$(window).resize(function(){e()}),$(".scroll-nav a").on("click",function(){$(window).width()<1036&&n()})}function initparallax(){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()}};(trueMobile=e.any())&&$(".video-container video , .video-holder iframe , .background-video").remove()}$(window).load(function(){"use strict";$(".loader").fadeOut(500,function(){$("#main").animate({opacity:"1"},500)}),$(window).on("beforeunload",function(){window.scrollTo(0,0)})}),$(document).ready(function(){initLambert(),initparallax()});