// This defines the drop down menus for vertical menus

// define drop down table width
// define links - Link Header, URL

function verticalMenu() {

  // In the web pages which use this menu, you need 
  // <div id=vertical_menu>
  //   <script>
  //     verticalMenu();
  //   </script>
  // </div>

  // This will build up the html needed for the menu and put it in your page at run-time
  // I really just wanted to include a file in all pages, such as
  //     <div scr="the code below this.html">/div>
  // but thas's not valid in html, and I can't think of another way of doing it.

  // I did try <iframe>.  That includes the menu, but the drop down menus
  //  cannot drop out of the frame.
  
  // Ken Odam
  
  x=   '<table id=vertical_menu width="270" border="0" cellspacing="0" cellpadding="0">';
  x=x+   '<tr>';
  x=x+     '<td align="right" height="25" width="235" ';
  x=x+         'background="images/backgroundbot1-cell-left.gif">';
  x=x+       '<a href="#" ';
  x=x+          'onMouseOut="FW_startTimeout()" ';
  x=x+          'onMouseOver="window.FW_showMenu(window.fw_menu_1,255,140)" ';
  x=x+          'class="nav-txt-blue">SOLUTIONS';
  x=x+       '</a>';
  x=x+     '</td>';
  x=x+     '<td height="25" align="right" width="15" valign="middle" background="">';
  x=x+       '<img src="images/green-nav-bullet.gif" width="10" height="10">';
  x=x+     '</td>';
  x=x+     '<td height="25" background="images/backgroundbot1-cell-right.gif">';
  x=x+       '&nbsp;';
  x=x+     '</td>';
  x=x+   '</tr>';
  
  x=x+   '<tr>';
  x=x+     '<td align="right" height="25" width="235" ';
  x=x+         'background="images/backgroundbot1-cell-left.gif">';
  x=x+       '<a href="#" ';
  x=x+          'onMouseOut="FW_startTimeout()" ';
  x=x+          'onMouseOver="window.FW_showMenu(window.fw_menu_2,255,165)" ';
  x=x+          'class="nav-txt-blue">ABOUT EZD';
  x=x+       '</a>';
  x=x+     '</td>';
  x=x+     '<td height="25" align="right" width="15" valign="middle" background="">';
  x=x+       '<img src="images/green-nav-bullet.gif" width="10" height="10">';
  x=x+     '</td>';
  x=x+     '<td height="25" background="images/backgroundbot1-cell-right.gif">';
  x=x+       '&nbsp;';
  x=x+     '</td>';
  x=x+   '</tr>';
  
  
  x=x+   '<tr>';
  x=x+     '<td align="right" height="25" width="235" ';
  x=x+         'background="images/backgroundbot1-cell-left.gif">';
  x=x+       '<a href="#" ';
  x=x+          'onMouseOut="FW_startTimeout()" ';
  x=x+          'onMouseOver="window.FW_showMenu(window.fw_menu_3,255,190)" ';
  x=x+          'class="nav-txt-blue">D.RISK';
  x=x+       '</a>';
  x=x+     '</td>';
  x=x+     '<td height="25" align="right" width="15" valign="middle" background="">';
  x=x+       '<img src="images/green-nav-bullet.gif" width="10" height="10">';
  x=x+     '</td>';
  x=x+     '<td height="25" background="images/backgroundbot1-cell-right.gif">';
  x=x+       '&nbsp;';
  x=x+     '</td>';
  x=x+   '</tr>';
  
  
  x=x+   '<tr>';
  x=x+     '<td align="right" height="25" width="235" ';
  x=x+         'background="images/backgroundbot1-cell-left.gif">';
  x=x+       '<a href="#" ';
  x=x+          'onMouseOut="FW_startTimeout()" ';
  x=x+          'onMouseOver="window.FW_showMenu(window.fw_menu_5,255,215)" '; // 265
  x=x+          'class="nav-txt-blue">DOWNLOADS';
  x=x+       '</a>';
  x=x+     '</td>';
  x=x+     '<td height="25" align="right" width="15" valign="middle" background="">';
  x=x+       '<img src="images/green-nav-bullet.gif" width="10" height="10">';
  x=x+     '</td>';
  x=x+     '<td height="25" background="images/backgroundbot1-cell-right.gif">';
  x=x+       '&nbsp;';
  x=x+     '</td>';
  x=x+   '</tr>';
  x=x+ '</table>';
  
  vertical_menu.innerHTML=x;
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",93);
  fw_menu_0.addMenuItem("Home Page","location='index.html'");
   fw_menu_0.hideOnMouseOut=true;
 
//  The SOLUTIONS Menu   
  window.fw_menu_1 = new Menu("root",82);
 	fw_menu_1.addMenuItem("SUMMARY","location='solutions.html'");
	fw_menu_1.addMenuItem("BENEFITS","location='benefits.html'");
    fw_menu_1.hideOnMouseOut=true;

//  The ABOUT EZD Menu   
  window.fw_menu_2 = new Menu("root",95);
	fw_menu_2.addMenuItem("OVERVIEW","location='company.html'");
	fw_menu_2.addMenuItem("PEOPLE","location='key-personnel.html'");
	fw_menu_2.addMenuItem("CONTACT US","location='contact.html'");
	fw_menu_2.hideOnMouseOut=true;
	
//  The D.RISK Menu   
  window.fw_menu_3 = new Menu("root",79);
 	fw_menu_3.addMenuItem("PROCESS","location='d-risk.html'");
	fw_menu_3.addMenuItem("LOG IN","location='login.html'");
    fw_menu_3.hideOnMouseOut=true;
	
//  The DOWNLOADS Menu   
  window.fw_menu_5 = new Menu("root",105);
	fw_menu_5.addMenuItem("ARTICLES","location='articles.html'");
    fw_menu_5.addMenuItem("BROCHURE","location='Brochure.pdf'");
	fw_menu_5.addMenuItem("CASE STUDIES","location='casestudies.html'");
    fw_menu_5.addMenuItem("EVENTS","location='events.html'");
   fw_menu_5.hideOnMouseOut=true;

  fw_menu_5.writeMenus();
} 

// fwLoadMenus()