<!-- // Begin

function onLoad() {
  loadMenus();
}

// menubarheight is used for showMenu property and is the absolute value from the top of the page where the menu begins
menubarheight="172"; 

function loadMenus() {
  //Dynamic Menus

  window.myMenu = new Menu(); // needed for dropdown function to work properly
  myMenu.addMenuItem("my menu item A");
  myMenu.addMenuItem("my menu item B");
  myMenu.addMenuItem("my menu item C");
  myMenu.addMenuItem("my menu item D");


// window.msubcontractors = new Menu("Subcontractors");		
//  msubcontractors.menuWidth = ((0 * 6) + 14);
//  msubcontractors.menuItemWidth = ((0 * 6) + 10);
  
  window.mcompany = new Menu("Company");
  mcompany.addMenuItem("Quick Profile", "window.location='company/profile.html'");
  mcompany.addMenuItem("Message from the CEO", "window.location='company/message.html'");
  mcompany.addMenuItem("Our History", "window.location='company/history.html'");
  mcompany.addMenuItem("Management Team", "window.location='management/guigli_robert.html'");
  mcompany.addMenuItem("Our Fleet", "window.location='company/fleet.html'");
  mcompany.addMenuItem("Union Relations", "window.location='company/union.html'");
  mcompany.addMenuItem("Job Safety", "window.location='company/safety.html'");
  mcompany.addMenuItem("Suppliers & Contractors", "window.location='company/suppliers.html'");
  mcompany.addMenuItem("Employment Opportunities", "window.location='company/employment.html'");

  mcompany.menuWidth = ((23 * 6) + 14);
  mcompany.menuItemWidth = ((23 * 6) + 10);


  window.mdivisions = new Menu("Divisions");			
  mdivisions.addMenuItem("Field Surveying & Engineering", "window.location='departments/engineering.html'");
  mdivisions.addMenuItem("Project Management", "window.location='departments/project.html'");
  mdivisions.addMenuItem("Estimating & Purchasing", "window.location='departments/estimating.html'");
  mdivisions.addMenuItem("Equipment Maintenance & Transportation", "window.location='departments/equipment.html'");

  mdivisions.menuWidth = ((35 * 6) + 14);
  mdivisions.menuItemWidth = ((35 * 6) + 10);


  window.mservices = new Menu("Services");
  mservices.addMenuItem("Site Contracts", "window.location='services/contracts.html'");
  mservices.addMenuItem("Equipment Rentals", "window.location='services/rentals.html'");

  mservices.menuWidth = ((15 * 6) + 28);
  mservices.menuItemWidth = ((15 * 6) + 24);


window.mportfolio = new Menu("Portfolio");
  mportfolio.addMenuItem("Commercial & Industrial", "window.location='portfolio/commercial.html'");
  mportfolio.addMenuItem("Municipal & State", "window.location='portfolio/municipal.html'");
  mportfolio.addMenuItem("Institutional", "window.location='portfolio/institutional.html'");
  mportfolio.addMenuItem("Clients", "window.location='portfolio/clients.html'");
  mportfolio.addMenuItem("Testimonials", "window.location='portfolio/testimonials.html'");
  mportfolio.addMenuItem("Awards", "window.location='portfolio/awards.html'");  		
  mportfolio.menuWidth = ((22 * 6) + 14);
  mportfolio.menuItemWidth = ((22 * 6) + 10);


  window.mnews = new Menu("News");
  mnews.addMenuItem("news test", "window.location='news/index.html'");
  mnews.menuWidth = ((19 * 6) + 14);
  mnews.menuItemWidth = ((19 * 6) + 10);


  window.mcontact = new Menu("Contact");
  mcontact.addMenuItem("Staff Directory", "window.location='contact/staff.html'");
  mcontact.addMenuItem("Subcontractors", "window.location='contact/subcontractors.html'");
  mcontact.addMenuItem("Upload File/FTP", "window.location='contact/ftp.html'");
  mcontact.addMenuItem("Career Application", "window.location='contact/apply.html'");
  mcontact.menuWidth = ((19 * 6) + 14);
  mcontact.menuItemWidth = ((19 * 6) + 10);

  
  window.msearch = new Menu("Site Map");	
  msearch.menuWidth = ((0 * 6) + 14);
  msearch.menuItemWidth = ((0 * 6) + 10);
 
  myMenu.writeMenus();


}

//  End -->

