
function writeDirectorateMenu()
{
		menuTitle = "Directorates"
		menuTitleHref= "BusinessAreas.html"
		menuString = ""
		menuString = menuString + "Biomedical Engineering" + "," + "biomed.php" + ";"
		menuString = menuString + "Electromagnetic Sciences" + "," + "electromag.html" + ";"
		menuString = menuString + "Electronic Systems" + "," + "electro.html" + ";"
		menuString = menuString + "Federal Systems" + "," + "fedsys.html" + ";"
		menuString = menuString + "ISR Systems" + "," + "isr.html" + ";"
		menuString = menuString + "Airborne Reconnaissance" + "," + "ars.html" + ";"
		menuString = menuString + "Education&Training" + "," + "education/index.html" + ";" //add 8/18/2006 MAC
		
		//Write menubar for business areas
		createMenuBar();
		
		//-----------------------------  Begin menu bar items
		createMenuItem(menuString);
		endMenuBar(17);
}
//**********************************************************
function writeAboutUsMenu()
{
		menuTitle = "About Us"
		menuTitleHref= "Aboutus.html"
		menuString = ""
		menuString = menuString + "About Us" + "," + "aboutus.html" + ";"
		menuString = menuString + "History" + "," + "history.html" + ";"
		menuString = menuString + "Corporate" + "," + "corporate.html" + ";"
		menuString = menuString + "Locations" + "," + "locations.html" + ";"
		menuString = menuString + "Staff" + "," + "staff.html" + ";"
		menuString = menuString + "Customers" + "," + "customers.html" + ";"
				menuString = menuString + "News & Events" + "," + "news.html" + ";"
		
		//Write menubar for business areas
		createMenuBar();
		
		//-----------------------------  Begin menu bar items
		createMenuItem(menuString);
		endMenuBar(17);
}
//**********************************************************
function writeContractsMenu()
{
		menuTitle = "Contracts"
		menuTitleHref= "contracts.html"
		menuString = ""
		menuString = menuString + "General Information" + "," + "contracts.html" + ";"
		menuString = menuString + "GSA ITS" + "," + "gsa_its.html" + ";"
		menuString = menuString + "GSA PES" + "," + "gsa_pe.html" + ";"
		menuString = menuString + "ITSP II" + "," + "itsp.html" + ";"

		
		
		//Write menubar for business areas
		createMenuBar();
		
		//-----------------------------  Begin menu bar items
		createMenuItem(menuString);
		endMenuBar(17);
}
//**********************************************************
function writeCareersMenu()
{
		menuTitle = "Careers"
		menuTitleHref= "careers.php"
		menuString = ""
		menuString = menuString + "Benefits" + "," + "benefits.html" + ";"
		menuString = menuString + "EEO Statement" + "," + "eeo.html" + ";"
		//menuString = menuString + "Search Jobs" + "," + "http://www.rri-usa.org/jm/publish/" + ";"
		//menuString = menuString + "" + "," + "#" + ";"
		
		
		//Write menubar for business areas
		createMenuBar(175);
		
		//-----------------------------  Begin menu bar items
		createMenuItem(menuString);
		endMenuBar(18);
}
//************************************************************************************
function writeTopMenuBar()
{
		document.write("  <style type='text/css'>   ");
		document.write("  A:link { color:rgb(255,255,255) }   ");
		document.write("  A:visited { color:rgb(255,255,255) }   ");
		document.write("  A:hover { color:rgb(255,255,255) }   ");
		document.write("  A {text-decoration: none}   ");
		document.write("  .navbar   ");
		document.write("  {color: white; font-family: Tahoma; font-size: 13px; font-weight: bold;}   ");
		document.write("  .topnavbar   ");
		document.write("  {color: white;font-family: Tahoma;font-size: 11px;font-weight: bold;}   ");
		document.write("  .headerText1   ");
		document.write("  {font-weight: bold;font-family: verdana;font-style: italic;color: white;font-size: 23px}   ");
		document.write("  .headerText2    ");
		document.write("  {font-weight: bold;font-family: verdana;font-style: italic;color: rgb(204, 204, 204);font-size: 13px}   ");
		document.write("    </style>   ");
		document.write("  <table style='text-align: left; width: 934px; height: 103px;' border='0'   ");
		document.write("   cellpadding='0' cellspacing='0'>   ");
		document.write("    <tbody>   ");
		document.write("      <tr>   ");
		document.write("        <td style='width: 937px; height: 103px; vertical-align: top;'   ");
		document.write("   background='images/Banner2.jpg'>   ");
		document.write("        <table style='text-align: left; width: 934px; height: 66px;'   ");
		document.write("   border='0' cellpadding='0' cellspacing='0'>   ");
		document.write("          <tbody>   ");
		document.write("            <tr>   ");
		document.write("              <td style='vertical-align: top; width: 935px; height: 35px;'>   ");
		document.write("              </td>   ");
		document.write("            </tr>   ");
		document.write("            <tr>   ");
		document.write("              <td style='text-align: left; width: 937px; height: 39px;'>&nbsp;&nbsp;   ");
		document.write("              </td>   ");
		document.write("            </tr>   ");
		document.write("          </tbody>   ");
		document.write("        </table>   ");
		document.write("        <span class='navbar'> </span>   ");
		document.write("        <div style='text-align: left;'><span class='navbar'>&nbsp;| <a   ");
		document.write("   target='_top' href='index.html'>Home</a> | <a target='_top'   ");
		document.write("   href='aboutus.html'>About Us</a> | <a target='_top'   ");
		document.write("   href='BusinessAreas.html'>Directorates</a> | <a target='_top'     ");
		document.write("   href='education/index.html'>Education</a> | <a target='_top'     ");
		document.write("   href='contracts.html'>Contracts</a> | <a target='_top'     ");
		document.write("   href='careers.php'>Careers</a> | <a target='_top' href='contact.html'>Contact     ");
		document.write("  Us</a> | <a target='_top' href='SiteMap.html'>Site Map</a></span></div>     ");
		document.write("        </td>    ");
		document.write("      </tr>     ");
		document.write("    </tbody>    ");
		document.write("  </table>   ");
}
//*************************************************************
function createMenuItem(menuString)
{

		var myString = new String(menuString)
		var aRows = myString.split(";");
			
          for (var i=0; i < aRows.length -1; i++)
          {
            aCols = aRows[i].split(",")
			var cLabel = aCols[0];
			var cHref = aCols[1];
			document.write(" <td class='menubartext' ");
			document.write(" style='vertical-align: top;padding-left:6px;' ><a ");
			document.write(" href='" + cHref + "'>" + cLabel + " <br>");
			document.write(" </a></td> ");
			document.write(" </tr> ");
			document.write(" <tr> ");
				
		  }
		
}
//******************************************************************
function createMenuBar(nTableHeight)
{ 			
		document.write(" <table border='0' cellpadding='0' cellspacing='0' ");
		document.write(" height='100%' width='250'> ");
		document.write(" <tbody> ");
		document.write(" <tr valign='top'> ");
		document.write(" <td> ");
		document.write(" <div style='text-align: center;'> </div> ");
		document.write(" <table style='width: 169px; height:359px;' border='0'> ");
		document.write(" <tbody> ");
		document.write(" <tr> ");
		document.write(" <td> ");
		document.write(" <table style='width: 167px; height: 480px;' ");
		document.write(" class='text' background='images/membersbg3.gif' border='0' cellpadding='0' ");
		document.write(" cellspacing='0'> ");
		document.write(" <tbody> ");
		document.write(" <tr> ");
		document.write(" <td ");
		document.write(" style='vertical-align: top; text-align: center;'><span ");
		document.write(" class='menubartitle'></span> ");
		document.write(" <table ");
		document.write(" style='width: 100%; text-align: left;' border='1' cellpadding='2' ");
		document.write(" cellspacing='2'> ");
		document.write(" <tbody> ");
		document.write(" <tr> ");
		document.write(" <style type='text/css'> ");
		document.write(" A:link { color:white } ");
		document.write(" A:visited { color:white } ");
		document.write(" A:hover { color:white } ");
		document.write(" A {text-decoration: none} ");
		document.write(" </style> ");
		document.write(" <td class='menubartitle' ");
		document.write(" style='text-align: center; vertical-align: top; background-color: rgb(153, 0, 0);'><a ");
		document.write(" style='text-decoration: underline; font-style: italic;' ");
		
		document.write(" href='" + menuTitleHref + "'>" + menuTitle + "</a><br> ");
		
		document.write(" </td> ");
		document.write(" </tr> ");
		document.write(" </tbody> ");
		document.write(" </table> ");
		document.write(" <table ");
		document.write(" style='text-align: left; width: 177px; ' border='1' ");
		document.write(" cellpadding='0' cellspacing='2'> ");
		document.write(" <tbody> ");
		document.write(" <tr> ");  //height: 140px
}
//***********************************************************************
function endMenuBar(nbreaks)
{
		document.write(" </tbody> ");
		document.write(" </table> ");
		document.write(" </td></tr><tr><td style='vertical-align: top; background-color: rgb(255, 255, 255);'><br> ");
		//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		for (var i=0; i < nbreaks - 1; i++)
		{
			document.write("<br>");
		}
		document.write(" </td></tr></tbody></table></td></tr></tbody></table> ");
}
//=================================================================================
function writeLegalFooter()
{
		//Create a string
		document.write("<style> ");
		document.write(".footer{color: white; font-family: Tahoma, Arial; font-size: 11px;} ");
		//document.wrkite("a:link {color: white};")
		//document.wrkite("a:visited {color: white};")
		document.write("</style> ");
		document.write("<table ");
		document.write(" style='text-align: left; margin-left: 0pt; margin-top: 0pt; height: 27px;' ");
		document.write(" class='footer' border='0' cellpadding='0' cellspacing='0' width='100%'> ");
		document.write(" <tbody style='text-align:center;'> ");
		document.write(" <tr> ");
		document.write(" <td class='footer' ");
		document.write(" style='background: rgb(153,0,0) url(none) no-repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;padding-left:206px' ");
		document.write(" _top='' href='index.html' title='RRI Home'>&copy;2010 <a target='_top' ");
		document.write(" href='index.html'>Riverside ");
		document.write(" Research Institute</a> reserves all rights.</td> ");
		document.write(" </tr> ");
		document.write(" </tbody> ");
		document.write(" </table> ");
}
