$(function(){enquire.register("screen and (min-width: 1025px)",{match:function(){$("body").addClass("desktop")},unmatch:function(){$("body").removeClass("desktop")}}).register("screen and (min-width: 751px) and (max-width: 1024px)",{match:function(){$("body").addClass("tablet")},unmatch:function(){$("body").removeClass("tablet")}}).register("screen and (max-width: 751px)",{match:function(){$("body").addClass("mobile")},unmatch:function(){$("body").removeClass("mobile")}});$("select.selPlaceholder").on("change",
function(){$(this).val()?$(this).removeClass("selPlaceholder"):$(this).addClass("selPlaceholder")});$('a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);a=a.length?a:$("[name="+this.hash.slice(1)+"]");if(a.length)return $("body").hasClass("mobile")?$("html, body").animate({scrollTop:a.offset().top-89},1E3):$("html, body").animate({scrollTop:a.offset().top-106},1E3),!1}});(function(){$(window).on("resize",
function(){$("body").hasClass("mobile")||$("img[data-src]").each(function(){var a=$(this).attr("data-src");$(this).prop("src",a)})}).resize()})()});function scrollToPoint(a){console.log(a.length)}
$(document).ready(function(){$(document).on("click",".navIcon",function(){$(this).toggleClass("j-mobActive");$("nav").slideToggle()});$(document).on("focus",".inputWrap input, .inputWrap textarea",function(){console.log("focused");$(".contactForm .inputWrap").removeClass("j-focus");$(this).closest(".inputWrap").addClass("j-focus")});var a=$(".headerTop").outerHeight();$(window).on("scroll",function(){var b=Math.max(0,a-$(this).scrollTop());$("header").css("top",b)})});
$(document).on("click",".cookieScroll",function(a){window.location.href!="https://"+window.location.host+"/"?(a.preventDefault(),a=$(this).attr("href"),window.localStorage.setItem("storeurl",a),window.location.href="/"):(a.preventDefault(),a=$(this).attr("href"),scrollToPoint(a))});$(window).load(function(){var a=window.localStorage.getItem("storeurl");scrollToPoint(a)});
function workslider(){var a=$(".workSlider");$("body").hasClass("mobile")?a.hasClass("slick-initialized")&&a.slick("unslick"):a.hasClass("slick-initialized")||a.slick({infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,adaptiveHeight:!0})}
$(document).ready(function(){workslider();$(window).on("resize",workslider);$(document).on("click",".workItem",function(){$("body").hasClass("mobile")?$("html, body").animate({scrollTop:$("#workSection").offset().top-89},500):$("html, body").animate({scrollTop:$("#workSection").offset().top-106},500);var a=$(".workItem").index(this);$(".workItem").removeClass("j-work");$(this).addClass("j-work");$(".workSlider").slick("slickGoTo",a)});$(document).on("click",".workContentWrap h3",function(){$("body").hasClass("mobile")&&
($(".workContentWrap h3").not(this).removeClass("j-activeH3"),$(".workContentWrap h3").not(this).next(".workContentInner").slideUp(),$(this).toggleClass("j-activeH3"),$(this).next(".workContentInner").slideToggle())});$(document).on("click",".peopleItem",function(){var a=$(this).data("name");console.log(a);$('.peopleContent[data-people!="'+a+'"]').slideUp();$('.peopleContent[data-people="'+a+'"]').slideToggle()})});
$(document).ready(function(){$(document).on("click",".blogYear",function(){$(".blogYear").not(this).removeClass("j-active");$(".blogYear").not(this).next("ul").slideUp();$(this).toggleClass("j-active");$(this).next("ul").slideToggle()})});$(".loadBtn").click(function(a){a={a:"loadmore",c:$(".blogItem").length};$.get("/blog",a,function(a){$(".blogItem").last().after($(a.content))})});