!function(){var e,a,t,s,n;if((e=document.getElementById("site-navigation"))&&void 0!==(a=e.getElementsByTagName("button")[0]))if(void 0!==(t=e.getElementsByTagName("ul")[0])){t.setAttribute("aria-expanded","false"),-1===t.className.indexOf("nav-menu")&&(t.className+=" nav-menu"),a.onclick=function(){-1!==e.className.indexOf("toggled")?(e.className=e.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded","false")):(e.className+=" toggled",a.setAttribute("aria-expanded","true"),t.setAttribute("aria-expanded","true"))},s=t.getElementsByTagName("a");for(var i=0,r=(n=t.getElementsByTagName("ul")).length;i<r;i++)n[i].parentNode.setAttribute("aria-haspopup","true");for(i=0,r=s.length;i<r;i++)s[i].addEventListener("focus",l,!0),s[i].addEventListener("blur",l,!0);!function(e){var a,t=e.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");if("ontouchstart"in window){a=function(e){var a=this.parentNode;if(a.classList.contains("focus"))a.classList.remove("focus");else{e.preventDefault();for(var t=0;t<a.parentNode.children.length;++t)a!==a.parentNode.children[t]&&a.parentNode.children[t].classList.remove("focus");a.classList.add("focus")}};for(var s=0;s<t.length;++s)t[s].addEventListener("touchstart",a,!1)}}(e)}else a.style.display="none";function l(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}();