');/* Uncomment for mobile button that says 'MENU' $('.custom-menu-primary .hs-menu-wrapper').before('
MENU
');*///$('.custom-menu-primary .flyouts .hs-item-has-children > a').after('
');$('.mobile-trigger').click(function() {alert("hi");//$('.custom-menu-primary .hs-menu-wrapper').slideToggle(250);//$('body').toggleClass('mobile-open');//$('.child-trigger').removeClass('child-open');//$('.hs-menu-children-wrapper').slideUp(250);winHeight = $(window).height();headerHeight = $(".custom-header-logo-wrapper").outerHeight();finalHeight = winHeight - headerHeight;customMenuHeight = $(".custom-menu-primary").outerHeight();if($('body').hasClass("mobile-open")){$(".custom-menu-primary").css("height", finalHeight); }else {$(".custom-menu-primary").css("height", "auto");}return false;});$('.child-trigger').click(function() {//$(this).parent().siblings('.hs-item-has-children').find('.child-trigger').removeClass('child-open');//$(this).parent().siblings('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250);//$(this).next('.hs-menu-children-wrapper').slideToggle(250);//$(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250);//$(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.child-trigger').removeClass('child-open');//$(this).toggleClass('child-open');winHeight = $(window).height();headerHeight = $(".custom-header-logo-wrapper").outerHeight();finalHeight = winHeight - headerHeight;//customMenuHeight = $(".custom-menu-primary").outerHeight();$(".custom-menu-primary").css("height", finalHeight); return false;});$("ul.list-unstyled").hide();$('ul.list-unstyled-parent>li').click(function() {$("ul.list-unstyled").toggle();});});