// // Now passes JSLint (Bob Denny 29-May-07) // Reorganized (Bob Denny 23-Oct-07) // Additional edits (Bob Denny 26-Dec-07) // Many more edits (Bob Denny 05-Jan-08) // More and more... (Bob Denny 07-Jan-08) // Case sensitivity for Unix/A2 (Bob Denny 13-May-08) // Developer Getting Started (Bob Denny 28-Jul-10) // Unknown who/when SafetyMonitor Drivers was added (Jan 2015 maybe?) // Observing Conditions Drivers (Bob Denny 06-Jan-2016) // //* Initialize globals var MainMenuItem = new Array(); var MainMenuURL = new Array(); var SubMenuOutput = new String; var BreadCrumbOutput = new String; var sLocation = new String; var RelativePath = "./"; var TopLevelIndex = 0; // Determine the top level index of where we are in the site // Site is organized in a hierachical folder structure // We use this to create the navigation menus and breadcrumbs sLocation = location.href; if (sLocation.match(/About\//i) !== null) { TopLevelIndex = 1; } else if (sLocation.match(/Downloads\//i) !== null) { TopLevelIndex = 2; } else if (sLocation.match(/Support\//i) !== null) { TopLevelIndex = 3; } else if (sLocation.match(/Standards\//i) !== null) { TopLevelIndex = 4; } else if (sLocation.match(/Developer\//i) !== null) { TopLevelIndex = 5; } else if (sLocation.match(/Community\//i) !== null) { TopLevelIndex = 6; } else if (sLocation.match(/FAQs\//i) !== null) { TopLevelIndex = 7; } if (TopLevelIndex > 0) RelativePath = "../"; // Setup Main Menu and its links MainMenuItem[0] = "Home"; MainMenuURL[0] = RelativePath + "index.htm"; MainMenuItem[1] = "About"; MainMenuURL[1] = RelativePath + "About/Index.htm"; MainMenuItem[2] = "Downloads"; MainMenuURL[2] = RelativePath + "Downloads/Index.htm"; MainMenuItem[3] = "Support"; MainMenuURL[3] = RelativePath + "Support/Index.htm"; MainMenuItem[4] = "Standards"; MainMenuURL[4] = RelativePath + "Standards/Index.htm"; MainMenuItem[5] = "Developers"; MainMenuURL[5] = RelativePath + "Developer/Index.htm"; MainMenuItem[6] = "Community"; MainMenuURL[6] = RelativePath + "Community/Index.htm"; MainMenuItem[7] = "FAQs"; MainMenuURL[7] = RelativePath + "FAQs/Index.htm"; var BreadCrumbString = "" + "Home" + "" + " > "; if (TopLevelIndex > 0) { BreadCrumbString += "" + MainMenuItem[TopLevelIndex] + " > "; } //* End of Initialize globals function writemainmenu() { var output = ""; var classname = ""; document.write("
"); } function writesubmenu() { switch (TopLevelIndex) { case 0: // Home Page SubMenuOutput += "