var base = "";
var locPath = this.location.pathname;

if (this.location.protocol=="file:") {
	var base = "file://localhost/Volumes/HAL2000/public_html";
	locPath = this.location.href.substring(base.length, locPath.length+16);
}

names= new Array(
	"<IMG SRC='http://www.0000ff.de/img/logoMini.gif' BORDER=0 HEIGHT=10 WIDTH=60 ALT='HOME'>",
	"&uuml;bersicht",
	"links",
	"archiv",
	"allergieliste",
	"g&auml;stebuch");

locations= new Array(
	"/index2.html",
	"/about.html",
	"/links.html",
	"/archiv/index.html",
	"/allergie.html",
	"/guestbook.php");
	
titles= new Array(
	"home",
	"sitemap",
	"links",
	"site archive",
	"food I&#39;m allergic to",
	"guestbook");
	
function writeNav() {
	document.write("<div class='nav'>");
	for(n=0; n < names.length; n++) {
		if(locPath==locations[n]) {
			document.write("<span class='active'>");
		} else if(locations[n].substring(0, 4) == "http") {
			document.write("<a href='" + locations[n] + "' ");
			document.write("target='_top' title='" + titles[n] + "'>");
		} else {
			document.write("<a href='" + base + locations[n] +"' ");
			document.write("target='_top' title='" + titles[n] + "'>");
		}
		document.write(names[n]);
		if(locPath==locations[n])
			document.write("</span>");
		else
			document.write("</a>");
		if (n != names.length-1) document.write(" | ");		
	}
	document.write("</div>");
}
