$(document).ready(function(){$(".carousel").carousel();$(".carousel").on("touchstart",function(event){const xClick=event.originalEvent.touches[0].pageX;$(this).one("touchmove",function(event){const xMove=event.originalEvent.touches[0].pageX;const sensitivityInPx=5;if(Math.floor(xClick-xMove)>sensitivityInPx){$(this).carousel("next")}else{if(Math.floor(xClick-xMove)<-sensitivityInPx){$(this).carousel("prev")}}});$(this).on("touchend",function(){$(this).off("touchmove")})});$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').not('[class*="carousel-control-"]').on("click",function(event){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$("[name="+this.hash.slice(1)+"]");if(target.length){event.preventDefault();$("html, body").animate({scrollTop:target.offset().top-100},1000,function(){var $target=$(target);$target.focus()})}close_menu()}});$("a.to-top").click(function(e){e.preventDefault();$("html, body").animate({scrollTop:0},1000)});$(window).on("scroll",function(){var top=0;if($(window).scrollTop()>top){$(".sticky-header").addClass("show");$(".commonHeader, .commonHeaderPlaceHolder").hide()}else{$(".sticky-header").removeClass("show");$(".commonHeader, .commonHeaderPlaceHolder").show()}});$(".nav-icon").click(function(){$(this).toggleClass("open");$(".sticky-header .links").toggleClass("open")});function close_menu(){$(".nav-icon.open").removeClass("open");$(".sticky-header .links.open").removeClass("open")}});