// Site-wide functions. var BRS={}; // Namespace for storing site-wide functions. BRS.nav_id=""; // Set this on each specific page. function init() { // Highlight navbar element - stopgap solution for moment. BRS.nav_highlight(BRS.nav_id); } BRS.nav_highlight = function(id) { try{ var el=document.getElementById(id); el.className="active"; } catch(err) { } }