// set active page
function setActivePage() {if((subnav = document.getElementById('menu_'+location.pathname.substring(location.pathname.lastIndexOf('/')+1, ((location.pathname.lastIndexOf('-') != -1) ? location.pathname.lastIndexOf('-') : location.pathname.lastIndexOf('.'))))) != null) subnav.className="active";}