// JavaScript Document

document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.writeln('   <tr align="center">');
document.writeln('      <td width="16%" class="topNav" align:"left" style="background: #9babce;"><a class="topNav" href="/services.html">Services</a></td>');
document.writeln('		<td width="6" class="topNavSep">&nbsp;</td>');
document.writeln('		<td width="21%" class="topNav" style="background: #8d9dc0;"><a class="topNav" href="/clients.html">Clients</a></td>');
document.writeln('		<td width="6" class="topNavSep">&nbsp;</td>');
document.writeln('      <td width="21%" class="topNav" style="background: #7b8bae;"><a class="topNav" href="/executive_team.html">Executive Team</a></td>');
document.writeln('		<td width="6" class="topNavSep">&nbsp;</td>');
document.writeln('      <td width="21%" class="topNav" style="background: #637396;"><a class="topNav" href="http://www.tmg-emedia.com/resources.html">Resources</a></td>');
document.writeln('		<td width="6" class="topNavSep">&nbsp;</td>');
document.writeln('      <td width="21%" class="topNav" style="background: #425275;"><a class="topNav" href="http://www.tmg-emedia.com/contact.html">Contact</a></td>');
document.writeln('   </tr>');
document.writeln('</table>');

// NOTE MODIFICATION TO THIS CODE: ADDED "if(this.current) this.doHide();" TO Menu.show
//		to prevent timeout from retaining old menu when next to new menu, due to when mouse events
//		fire and timeout works
// This code was copied from FC&S top menu control
//   The div that uses it has been changed to eliminate reliance on images for links
Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if(document.getElementById) return document.getElementById(name).style;
	else if(document.all) return document.all[name].style;
	else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	if(this.current) this.doHide();
	this.getStyle(name).visibility = "visible";
	this.current = name;
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",100);
}
Menu.doHide = function(){
	if(this.current){
		this.getStyle(this.current).visibility = "hidden";
		this.current = null;
	}
}

// ||||||||||||||||||||||||||||||||||||||||||||||||||
	/*This div is shown and hidden as a submenu under About Us. It is positioned, so if something in the menu
    changes, it will have to be repositioned. */
/*
document.writeln('<div id="subnav1" class="topSubNav" onmouseover="Menu.show(this.id);" style="POSITION: absolute; LEFT: 528px; TOP: 23px; z-index: 10; VISIBILITY: hidden;" onmouseout="Menu.hide();">');
document.writeln('	<layer onmouseover="if(document.layers)Menu.show(\'subnav1\');" onmouseout="if(document.layers)Menu.hide();">');
document.writeln('	<table cellSpacing="0" cellPadding="0" border="0">');
document.writeln('		<tr>');
document.writeln('			<td align="left"><A href="/nuab/Website/nuab_letters.html" class="topNav">Letters to the Editor</A></td>');
document.writeln('		</tr>');
document.writeln('		<tr>');
document.writeln('			<td align="left"><A href="/nuab/Website/nuab_guidelines.html" class="topNav">Writers\' Guidelines</A></td>');
document.writeln('		</tr>');
document.writeln('	</table>');
document.writeln('	</layer></div>');
*/
