/* Container navigation javascript */
function bottom_link_1(PathToRoot)
{
    divWidth=600;
    barHeight=5;
	theLinkName = new Array
	(
		"Wir über uns",
        "Satzung", 
		"Anmeldung",
		"Vorstand",
		"inst. Mitglieder",
		"Links",
        "Impressum",
        "Presse"
		);
	
	theLinkHref = new Array
	(
		PathToRoot + "wir_ueber_uns.html",
        PathToRoot + "satzung.html", 
		PathToRoot + "anmeldung.html",
		PathToRoot + "vorstand.html",
		PathToRoot + "institutionelle_mitglieder.html",
		PathToRoot + "links.html",
        PathToRoot + "impressum.html",
        PathToRoot + "presse.html"
		);
    document.writeln("<p id='bottom_link' class='tc_1'>");
    document.writeln("<br><br>");
    document.writeln("<img src='" + PathToRoot + "bilder/bar1a.gif' width='" + divWidth + "' height='" + barHeight + "' border='0' alt='Trennlinie'>");
    document.writeln("<br");
    document.writeln(" | ");
	for (i=0; i<= theLinkName.length-1; i++)
	{
        document.writeln("<a class='path tc_1'");
        document.writeln("  href='" + theLinkHref[i] + "'>");
        document.writeln(theLinkName[i]);
        if(i < theLinkName.length-1){document.writeln("  |  </a>")};
    }
    document.writeln("</p>");
}
function bottom_link()
{
    bottom_link_1("");
}
function bottom_link_old(PathToRoot)
{
    divWidth=600;
    barHeight=5;
	theLinkName = new Array
	(
		"Wir über uns",
        "Satzung", 
		"Anmeldung",
		"Vorstand",
		"inst. Mitglieder",
		"Links",
        "Impressum",
        "Presse"
		);
	
	theLinkHref = new Array
	(
		"wir_ueber_uns.html",
        "satzung.html", 
		"anmeldung.html",
		"vorstand.html",
		"institutionelle_mitglieder.html",
		"links.html",
        "impressum.html",
        "presse.html"
		);
    document.writeln("<p id='bottom_link' class='tc_1'>");
    document.writeln("<br><br>");
    document.writeln("<img src='bilder/bar1a.gif' width='" + divWidth + "' height='" + barHeight + "' border='0' alt='Trennlinie'>");
    document.writeln("<br");
    document.writeln(" | ");
	for (i=0; i<= theLinkName.length-1; i++)
	{
        document.writeln("<a class='path tc_1'");
        document.writeln("  href='" + theLinkHref[i] + "'>");
        document.writeln(theLinkName[i]);
        if(i < theLinkName.length-1){document.writeln("  |  </a>")};
    }
    document.writeln("</p>");
}

/* Fügt das Bild in die Titelleiste */
function addImage(ClassName, ImgName, AltName)
{
	document.writeln("<IMG id='" + ClassName + "'");
	document.writeln("  src=" + ImgName);
	document.writeln("  alt=" + AltName + ">");
}
/* Fügt die Liste der Links ein
Über "selected" wird ein Link gewählt, der
hervorgehoben wird
*/
function addLinks(PathToRoot, selected)
{
	totalWidth = 700;
	sumWidth = 0;
	factor = 0.0;
	theLinkName = new Array
	(
		"Praktika/Jobbörse", 
		"Kurse/Veranstaltungen",
		"Outdoorstudium",
		"Reisen/Camps",
		"Projekte"
		);
	
	theLinkHref = new Array
	(
		PathToRoot + "praktikumsboerse.html", 
		PathToRoot + "kurse.html",
		PathToRoot + "studium.html",
		PathToRoot + "reisen.html",
		PathToRoot + "projekte.html"
		);
	theWidth = new Array(theLinkName.length)
	document.writeln("<DIV id='link_top' class='bc_0'>");
	document.writeln("<table border='0'>");
	document.writeln("  <tr style='vertical-align:top;'>");
	
	for (i=0; i<= theLinkName.length-1; i++)
	{
		theWidth[i] = theLinkName[i].length * 10;
		sumWidth += theWidth[i];
	}
	factor = totalWidth / sumWidth;
	for (i=0; i<= theLinkName.length-1; i++)
	{
		theWidth[i] = theWidth[i] * factor;
	}
	for (i=0; i<= theLinkName.length-1; i++)
	{
		document.writeln("<td class='link_top'");
		document.writeln("  style=");
		document.writeln("'width:" + theWidth[i] + "px;'");
		document.writeln(">");
		document.writeln("<a class='link_top'");
		document.writeln("  href=" + theLinkHref[i]);
		document.writeln(">");
		document.writeln(theLinkName[i]);
		document.writeln("</a>");
		document.writeln("</td>");
	}
	document.writeln("  </tr>");
	document.writeln("</table>");
	document.writeln("</div>");
	document.writeln("<div id='spacer_right' ");
	document.writeln("style='left:0px;width:"+totalWidth+"px;' class='bc_x'");
	document.writeln(">");
	document.writeln("&nbsp;");
	document.writeln("</div>");
}


/*
PathToRoot: relativer Pfad zum root Verzeichnis
HImgName: relativer Pfad zu Kopfzeilenbild
HAltName: alt tag für Kopfzeilenbild
theLink:  Nummer des gewählten Kopfzeilenlinks (1-5, 0: Home)
*/

function navigation_1(PathToRoot, HImgName, HAltName, theLink)
{
	document.writeln("<DIV id='main'>");
	document.writeln("<DIV id='right'>");
	document.writeln("<a href='" + PathToRoot + "index.html'>");
	addImage("logo", PathToRoot + "bilder/OL_logo_de_389x70.png", "Logo");
	document.writeln("</a>");
	document.writeln("</a>");
	addImage("image_top", PathToRoot + HImgName, HAltName);
	addLinks(PathToRoot, theLink);
	document.writeln("</DIV>");
	document.writeln("</DIV>");
}
function navigation(HImgName, HAltName, theLink)
{
    navigation_1("", HImgName, HAltName, theLink);
}
function navigation_old(HImgName, HAltName, theLink)
{
	document.writeln("<DIV id='main'>");
	document.writeln("<DIV id='right'>");
	document.writeln("<a href='index.html'>");
	addImage("logo", "bilder/OL_logo_de_389x70.png", "Logo");
	document.writeln("</a>");
	addImage("image_top", HImgName, HAltName);
	addLinks("", theLink);
	document.writeln("</DIV>");
	document.writeln("</DIV>");
}
