var path;
if (window.location.href.indexOf('/pages/')>-1) {
	path = '../';
	if (window.location.href.indexOf('/people/')>-1) {
		path += '../';
	}
} else {
	path = '';
}

menu_html='<div class="tweditor_mainmenu">';
menu_html+='<table xclass="tweditor_mainmenu" border="0" cellpadding="0" cellspacing="0">';
menu_html+='<tr>';
menu_html+='<td colspan="9"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
menu_html+='</tr>';
menu_html+='<tr>';
menu_html+='<td align="center"><a href="'+path+'pages/why.html" onMouseOver="Show(1);" onMouseOut="Hide(1);">Why C<SUP>3</SUP></a></td>';
menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
menu_html+='<td align="center"><a href="'+path+'pages/services.html" onMouseOver="//Show(2);" onMouseOut="//Hide(2);">Services</a></td>';
menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
menu_html+='<td align="center"><a href="'+path+'pages/team.html" onMouseOver="Show(3);" onMouseOut="Hide(3);">The Team</a></td>';
menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
menu_html+='<td align="center"><a href="'+path+'pages/projects.html" onMouseOver="Show(4);" onMouseOut="Hide(4);">Projects</a></td>';
menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
menu_html+='<td align="center"><a href="'+path+'pages/say.html" onMouseOver="//Show(5);" onMouseOut="//Hide(5);">What Clients Say</a></td>';
menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
menu_html+='<td align="center"><a href="'+path+'pages/library.html" onMouseOver="//Show(6);" onMouseOut="//Hide(6);">Library</a></td>';
menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
menu_html+='<td align="center"><a href="'+path+'pages/contact.html" onMouseOver="//Show(7);" onMouseOut="//Hide(7);">Contact</a></td>';
if (window.location.href.indexOf('/pages/')>-1) {
	menu_html+='<td align="center"><span class="tweditor_mainmenu_divider">&nbsp;|&nbsp;</span></td>';
	menu_html+='<td align="center"><a href="'+path+'index.html" onMouseOver="//Show(8);" onMouseOut="//Hide(8);">HOME</a></td>';
}
menu_html+='</tr>';
menu_html+='<tr>';
menu_html+='<td align="center"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
menu_html+='<td align="center"><span id="menu_span1"><img src="'+path+'images/spacer.gif" name="img1" alt="spacer graphic" width="1" height="1" border="1"/></span></td>';
menu_html+='<td align="center"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
menu_html+='<td align="center"><span id="menu_span2"><img src="'+path+'images/spacer.gif" name="img2" alt="spacer graphic" width="1" height="1" border="1"/></span></td>';
menu_html+='<td align="center"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
menu_html+='<td align="center"><span id="menu_span3"><img src="'+path+'images/spacer.gif" name="img3" alt="spacer graphic" width="1" height="1" border="1"/></span></td>';
menu_html+='<td align="center"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
menu_html+='<td align="center"><span id="menu_span4"><img src="'+path+'images/spacer.gif" name="img4" alt="spacer graphic" width="1" height="1" border="1"/></span></td>';
menu_html+='<td align="right"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
menu_html+='<td align="center"><span id="menu_span4"><img src="'+path+'images/spacer.gif" name="img4" alt="spacer graphic" width="1" height="1" border="1"/></span></td>';
menu_html+='<td align="right"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
if (window.location.href.indexOf('/pages/')>-1) {
	menu_html+='<td align="center"><span id="menu_span5"><img src="'+path+'images/spacer.gif" name="img5" alt="spacer graphic" width="1" height="1" border="1"/></span></td>';
	menu_html+='<td align="right"><img src="'+path+'images/spacer.gif" alt="spacer graphic" width="1" height="1" border="0"/></td>';
}
menu_html+='</tr>';
menu_html+='</table>';
menu_html+='</div>';
document.write(menu_html);