function openMenu(listItemToOpen) { document.getElementById(listItemToOpen).style.display = "block"; } function displayBold(id) { document.getElementById(id).style.fontWeight = "bold"; } function highlightSection(sectionName) { document.getElementById(sectionName).style.backgroundColor = "#EEFFEE"; document.getElementById(sectionName).style.display = "block"; document.getElementById(sectionName).style.width = "13em"; document.getElementById(sectionName).style.height = "1.5em"; } ////////////////////////////////////////////////////// products menu//////////////////////////////////////////// function setupMenuProducts() { openMenu('menu_root'); } ////////////////////////////////////////////// START OF Contruction and mining menu ///////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function setupMenuConstructionAndMining() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.color = "#008000"; } ////////////////////////////////////////////////////// diesel_powered menu ///////////////////////////////////////////////////// function setupMenuDieselPowered() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("diesel_powered").style.color = "#008000"; } ////////////////////////////////////////////////////// combo_compressor menu ///////////////////////////////////////////////////// function setupMenuComboCompressor() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("combo_compressor").style.color = "#008000"; } ////////////////////////////////////////////////////// drill_compressors menu ///////////////////////////////////////////////////// function setupMenuDrillCompressors() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("drill_compressors").style.color = "#008000"; } ////////////////////////////////////////////////////// compressed_air_tools menu ///////////////////////////////////////////////////// function setupMenuCompressedAirTools() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("compressed_air_tools").style.color = "#008000"; } ////////////////////////////////////////////////////// utility_compressors menu ///////////////////////////////////////////////////// function setupMenuUtilityCompressors() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("utility_compressors").style.color = "#008000"; } ////////////////////////////////////////////////////// open_frame_compressors menu ///////////////////////////////////////////////////// function setupMenuOpenFrameCompressors() { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("open_frame_compressors").style.color = "#008000"; } function setupUnderdeck () { setupMenuProducts() openMenu('menu_construction'); highlightSection("diesel_powered"); highlightSection("combo_compressor"); highlightSection("drill_compressors"); highlightSection("compressed_air_tools"); highlightSection("utility_compressors"); highlightSection("open_frame_compressors"); highlightSection("underdeck"); document.getElementById("underdeck").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("construction_and_mining").style.borderBottom = "2px solid #A6E0C7"; document.getElementById("underdeck").style.color = "#008000"; } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////END OF Contruction and mining menu//////////////////////////////////////////