function swapImage(id, src) { document.getElementById(id).src = '/sliced_images/' + src; } function init() { if (TransMenu.isSupported()) { TransMenu.initialize(); menu2.onactivate = function() { document.getElementById("menuCompanyImg").src = "/sliced_images/index2_r1_c4_f2.jpg"; }; menu2.ondeactivate = function() { document.getElementById("menuCompanyImg").src = "/sliced_images/index2_r1_c4.jpg"; }; menu3.onactivate = function() { document.getElementById("menuServicesImg").src = "/sliced_images/index2_r1_c6_f2.jpg"; }; menu3.ondeactivate = function() { document.getElementById("menuServicesImg").src = "/sliced_images/index2_r1_c6.jpg"; }; menu4.onactivate = function() { document.getElementById("menuCareersImg").src = "/sliced_images/index2_r1_c7_f2.jpg"; }; menu4.ondeactivate = function() { document.getElementById("menuCareersImg").src = "/sliced_images/index2_r1_c7.jpg"; }; menu5.onactivate = function() { document.getElementById("menuContactImg").src = "/sliced_images/index2_r1_c8_f2.jpg"; }; menu5.ondeactivate = function() { document.getElementById("menuContactImg").src = "/sliced_images/index2_r1_c8.jpg"; }; document.getElementById("menuHome").onmouseover = function() { document.getElementById("menuHomeImg").src = "/sliced_images/index2_r1_c3_f2.jpg"; ms.hideCurrent(); } document.getElementById("menuHome").onmouseout = function() { document.getElementById("menuHomeImg").src = "/sliced_images/index2_r1_c3.jpg"; } //document.getElementById("menuContact").onmouseover = function() { document.getElementById("menuContactImg").src = "/sliced_images/index2_r1_c8_f2.jpg"; ms.hideCurrent(); } //document.getElementById("menuContact").onmouseout = function() { document.getElementById("menuContactImg").src = "/sliced_images/index2_r1_c8.jpg"; } } } if (TransMenu.isSupported()) { var ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft); var menu1 = ms.addMenu(document.getElementById("menuHome")); var menu2 = ms.addMenu(document.getElementById("menuCompany")); menu2.addItem("History", "/company_engineering_architecture_planning/history.htm"); menu2.addItem("Performance", "/company_engineering_architecture_planning/performance.htm"); menu2.addItem("Locations", "/company_engineering_architecture_planning/locations_kentucky_indiana_tennessee_ohio_texas.htm"); var menu3 = ms.addMenu(document.getElementById("menuServices")); menu3.addItem("Buildings", "/gallery/index.php?18"); menu3.addItem("Water Resources", "/gallery/index.php?19"); menu3.addItem("Transportation", "/gallery/index.php?20"); menu3.addItem("Utility Mapping/GIS", "/gallery/index.php?21"); menu3.addItem("Military", "/gallery/index.php?22"); var menu4 = ms.addMenu(document.getElementById("menuCareers")); menu4.addItem("Job Openings", "/careers/index.php"); menu4.addItem("Apply Online", "/careers/index.php?action=apply"); menu4.addItem("Benefits", "/careers/benefits.htm"); var menu5 = ms.addMenu(document.getElementById("menuContact")); menu5.addItem("Contact Form", "/contact_engineers_architects_planners/index.php"); menu5.addItem("Teaming Form", "/contact_engineers_architects_planners/teaming.php"); TransMenu.renderAll(); } window.onload = function() { init(); }