function showvtnavbar(color, siteHomeLink, siteName, siteFeedbackLink, showSearch, siteSearchLink, siteSearchName) {
	var firstItem = true;
  var bgcolor = "#800000";
  if (color == "black") { bgcolor = "#000000"; }
  if (color == "000000") { bgcolor = "#000000"; }
  if (color == "800000") { bgcolor = "#800000"; }
  if (color == "990000") { bgcolor = "#990000"; }
	document.writeln("<style><!-- .vtnavbar { font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size : 10pt; background-color : " + bgcolor + "; color : #FFFFFF; } --></style>");
	document.writeln("<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\"><form method=\"post\" action=\"http://www.vt.edu/support/vtnavbar/searchredirect.phtml\"><tr>");
  document.write("<td class=\"vtnavbar\" bgcolor=\""+bgcolor+"\"><a href=\"http://www.vt.edu/\"><img src=\"http://www.vt.edu/support/vtnavbar/images/vtlogo");
	if (color == "black") { document.write("000000"); }	
  else if (color == "990000") { document.write("990000"); }	
  else { document.write("800000"); }
  document.writeln(".gif\" width=\"170\" height=\"25\" border=\"0\" alt=\"Virginia Tech Logo\"></a></td>");
	document.write("<td nowrap class=\"vtnavbar\" align=\"right\" bgcolor=\""+bgcolor+"\">");
	if (siteHomeLink) {
		firstItem = false;
		document.write("<a class=\"vtnavbar\" href=\"" + siteHomeLink + "\">" + siteName + " Home</a>");
	}
	if (siteFeedbackLink) {
		if (!firstItem) document.write(" | ");
		firstItem = false;
		document.write("<a target=\"main\" class=\"vtnavbar\" href=\"" + siteFeedbackLink + "\">Feedback</a>");
	}
	if (showSearch) {
		if (!firstItem) document.write(" | ");
		firstItem = false;
		if (siteSearchLink) {
			document.writeln("Search <select size=\"1\" name=\"searchurl\">");
			document.writeln("<option value=\"" + siteSearchLink + "\" selected>" + siteSearchName + "</option>");
			document.writeln("<option value=\"http://search.vt.edu/query.html?col=vt&qt=\">VT Web Site</option>");
      document.writeln("</select>");
		} else {
			document.write("Search VT <input type=\"hidden\" name=\"searchurl\" value=\"http://search.vt.edu/query.html?col=vt&qt=\">");
		}
    document.write("<input type=\"text\" name=\"searchterm\" size=\"8\">&nbsp;<input type=\"image\" name=\"Go\" src=\"http://www.vt.edu/support/vtnavbar/images/go");
  	if (color == "black") { document.write("000000"); }	
    else if (color == "990000") { document.write("990000"); }	
    else { document.write("800000"); }
    document.write(".gif\" width=\"21\" height=\"21\" align=\"absmiddle\" border=\"0\">&nbsp;");
	}
	document.writeln("</td>");
	document.writeln("</tr></form></table>");
}