
//      File: menu-top.js
//	Description: Menu system for VBS
//	Author: Robert Ducharme

//	to call this JavaScript, place the following code in the calling HTML file:
//      <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="menu-top.js"></SCRIPT>

document.write('<STYLE TYPE="text/css">');
document.write('  <!--');
document.write('    .tabs { color: #ffffff; font-family: verdana,helvetica,arial,sans-serif; font-size:10pt; font-style:normal; font-weight: bold; text-decoration: none; }');
document.write('    .tabs:hover { color: #0000ff; }');
document.write('  -->');
document.write('</STYLE>');

var str = "";
var bgColor_onoff;
var bgColor_on  = "#999999";
var bgColor_off = "#bbbbbb";

var currentPathname = new String(location.pathname);

// <!-- begin tabs -->
document.write('<table bgcolor="#bbbbbb" cellpadding="0" cellspacing="0" border="0" width="100%">');
document.write('<tr>');
	str = '<td height="18" width="1%" bgcolor="#ffffff"><img src="tabs_space.gif" width="3" height="18"></td>';
	document.write(str);

	bFile=false; if (currentPathname.search("home.asp") != -1) { bFile=true; } else { null; };
	bgColor_onoff = (bFile == true) ? bgColor_on : bgColor_off
	str = '<td width="1%" align="left" bgcolor="' + bgColor_onoff + '"><img src="tabs_left_corner.gif" width="3" height="18"></td>';
	str = str + '<td align="center" width="18%" bgcolor="' + bgColor_onoff + '"><a href="./home.asp" target="_self" class="tabs"><font size="2">Home</font></a></td>';
	str = str + '<td width="1%" align="right" bgcolor="' + bgColor_onoff + '"><img src="tabs_right_corner_bar.gif" width="4" height="18"></td>';
	document.write(str);

	bFile=false; if (currentPathname.search("profile.asp") != -1) { bFile=true; } else { null; };
	bgColor_onoff = (bFile == true) ? bgColor_on : bgColor_off
	str = '<td width="1%" align="left" bgcolor="' + bgColor_onoff + '"><img src="tabs_left_corner.gif" width="3" height="18"></td>';
	str = str + '<td align="center" width="18%" bgcolor="' + bgColor_onoff + '"><a href="./profile.asp" target="_self" class="tabs"><font size="2">Firm Profile</font></a></td>';
	str = str + '<td width="1%" align="right" bgcolor="' + bgColor_onoff + '"><img src="tabs_right_corner_bar.gif" width="4" height="18"></td>';
	document.write(str);

	bFile=false; if (currentPathname.search("calendar.asp") != -1) { bFile=true; } else { null; };
	bgColor_onoff = (bFile == true) ? bgColor_on : bgColor_off
	str = '<td width="1%" align="left" bgcolor="' + bgColor_onoff + '"><img src="tabs_left_corner.gif" width="3" height="18"></td>';
	str = str + '<td align="center" width="18%" bgcolor="' + bgColor_onoff + '"><a href="./calendar.asp" target="_self" class="tabs"><font size="2">Calendar</font></a></td>';
	str = str + '<td width="1%" align="right" bgcolor="' + bgColor_onoff + '"><img src="tabs_right_corner_bar.gif" width="4" height="18"></td>';
	document.write(str);

	bFile=false; if (currentPathname.search("links.asp") != -1) { bFile=true; } else { null; };
	bgColor_onoff = (bFile == true) ? bgColor_on : bgColor_off
	str = '<td width="1%" align="left" bgcolor="' + bgColor_onoff + '"><img src="tabs_left_corner.gif" width="3" height="18"></td>';
	str = str + '<td align="center" width="18%" bgcolor="' + bgColor_onoff + '"><a href="./links.asp" target="_self" class="tabs"><font size="2">Links</font></a></td>';
	str = str + '<td width="1%" align="right" bgcolor="' + bgColor_onoff + '"><img src="tabs_right_corner_bar.gif" width="4" height="18"></td>';
	document.write(str);

	bFile=false; if (currentPathname.search("sitemap.asp") != -1) { bFile=true; } else { null; };
	bgColor_onoff = (bFile == true) ? bgColor_on : bgColor_off
	str = '<td width="1%" align="left" bgcolor="' + bgColor_onoff + '"><img src="tabs_left_corner.gif" width="3" height="18"></td>';
	str = str + '<td align="center" width="*" bgcolor="' + bgColor_onoff + '"><a href="./sitemap.asp" target="_self" class="tabs"><font size="2">Sitemap</font></a></td>';
	str = str + '<td width="1%" align="right" bgcolor="' + bgColor_onoff + '"><img src="tabs_right_corner.gif" width="4" height="18"></td>';
	document.write(str);

	str = '<td width="1%" bgcolor="#ffffff"><img src="tabs_space.gif" width="3" height="18"></td>';
	document.write(str);
document.write('</tr>');
document.write('<tr bgcolor="#333333">');
	document.write('	<td bgcolor="#ffffff"><img src="tabs_space.gif" width="1" height="1"></td>');
	document.write('	<td colspan="3" height="1" bgcolor="#004443"><img src="tabs_space.gif" width="1" height="1"></td>');
	document.write('	<td colspan="3"><img src="tabs_space.gif" width="1" height="1"></td>');
	document.write('	<td colspan="3"><img src="tabs_space.gif" width="1" height="1"></td>');
	document.write('	<td colspan="3"><img src="tabs_space.gif" width="1" height="1"></td>');
	document.write('	<td colspan="3"><img src="tabs_space.gif" width="1" height="1"></td>');
	document.write('	<td bgcolor="#ffffff"><img src="tabs_space.gif" width="1" height="1"></td>');
document.write('</tr>');
document.write('</table>');
// <!-- end tabs -->







// start of old menu system

/*
// turn ON multi-line comment
menuColorBackground = '#FFFFCC'
menuTargetFrame = '_self'

document.write('<FONT FACE="Verdona, Arial, Helvetica" SIZE="1" STYLE="text-decoration:none">');

document.write('<TABLE cellpadding="0" cellspacing="1" border="0" height="10" width="100%">');
document.write('<TR ALIGN="center" VALIGN="middle">');

var NavMenu = "";

var NavMenu = NavMenu + addMenuItem("VBS Home", "./home.asp");
var NavMenu = NavMenu + addMenuItem("Firm Profile", "./profile.asp");
var NavMenu = NavMenu + addMenuItem("Calendar", "./calendar.asp");
var NavMenu = NavMenu + addMenuItem("Links", "./links.asp");
var NavMenu = NavMenu + addMenuItem("Sitemap", "./sitemap.asp");

// write today's date and time into the menu bar
var NavMenu = NavMenu + '<TD BGCOLOR="' + menuColorBackground + '">';
var NavMenu = NavMenu + '<FONT FACE="Verdona, Arial, Helvetica" SIZE="1" STYLE="text-decoration:none">';
var NavMenu = NavMenu + new Date();
var NavMenu = NavMenu + '</FONT>';
var NavMenu = NavMenu + '</TD>';

document.write(NavMenu);

document.write('</TR></TABLE>');
document.write('</FONT>');
document.write('<BR CLEAR="all">');

function addMenuItem(LinkName, LinkURL) {
	var out = "";
	var out = out + '<TD BGCOLOR="' + menuColorBackground + '">';
	var out = out + '<FONT FACE="Verdona, Arial, Helvetica" SIZE="1" STYLE="text-decoration:none">';
        var out = out + '<A HREF="' + LinkURL + '"' + 'TARGET="' + menuTargetFrame + '">' + LinkName + '</A>';
	var out = out + '</FONT>';
	var out = out + '</TD>';
	return out;
	};
// turn OFF multi-line comment
*/
