<%!
	String navItem(String url, String head, String link) {
		String ret="";

		if(url.toLowerCase().indexOf(link.substring(0,link.length()-3))!=-1) {
			ret += "<tr><td class=tableborder height=1><img src=\"dot.gif\" height=\"1\"></td></tr>";
			ret += "<tr><td class=tablehead   height=2><img src=\"dot.gif\" height=\"2\"></td></tr>";
			ret += "<tr><td class=tablehead   width=125 cellspacing=\"0\" cellpadding=\"6\" border=\"0\">";		
			ret += "  <b>&nbsp;"+head+"</b>"; //ret += "  <b><font size=\"-2\">&nbsp;"+head+"</font></b>";
			ret += "</td></tr>";
			ret += "<tr><td class=tablehead   height=2><img src=\"dot.gif\" height=\"2\"></td></tr>";
			ret += "<tr><td class=tableborder height=1><img src=\"dot.gif\" height=\"1\"></td></tr>";
		}
		else {
			ret += "<tr><td>&nbsp;<a href=\""+link+"\">"+head+"</a></td></tr>";	 
		}
		ret += "<tr><td height=5><img src=\"dot.gif\" height=\"5\"></td></tr>";
			
		return ret;
	}
%>

<table border="0" cellpadding="0" cellspacing="0" width="125">

	<%
	  String url = request.getRequestURI();
	  String ext = ".htm";
	  //if(url.toLowerCase().indexOf(".jsp")==-1) ext = ".htm";

	
	%>
  <tr><td>&nbsp;</td></tr>
  <tr><td>&nbsp;</td></tr>
  <!--
  <html:navhead prompt="Lossless Audio"/>
  <tr><td>&nbsp;</td></tr>
	-->
	<%
		//out.println(navItem("Lossless Audio", true, ""));
		out.println(navItem(url, "Introduction", "index"     +ext));
		out.println(navItem(url, "Download",     "download"  +ext));
		out.println(navItem(url, "News",         "news"      +ext));
		out.println(navItem(url, "Comparison",   "comparison"+ext));
		out.println(navItem(url, "Theory",       "theory"    +ext));
		out.println(navItem(url, "Contact",      "contact"   +ext));
	%>
	<tr><td>&nbsp;</td></tr>
	<tr><td>&nbsp;</td></tr>
<%/*
	<tr><td>
	<table cellspacing="2"><tr><td>
	<div align="center"><script language="JavaScript" src="http://pub4.bravenet.com/minipoll/show.php?usernum=320823182&cpv=1">
	</script></div>
	</td></tr></table>
	</td></tr>
*/%>

	<tr><td>&nbsp;</td></tr> 
	<tr><td>Search: 
		<form action="search.php">
			<input type=hidden name="start" value="1">
			<input type=text name="searchstring">
		</form>
	</td></tr>
	
	<tr><td>&nbsp;</td></tr> 
	<tr><td width="115" align=center>
		<span class=small>Last updated:<br><i>19th November 2002<br><br></i>(c) Michael Bevin</span>
	</td></tr>	
</table>
