var XX = unescape('%27'), AktiveTaste ='', Tasten = 0, GrafikTasten = true, MausUeber = null, Rahmen = null, Mannsch;

//function NavKopf(Seitentitel, Rahmen, Titel, Ebenen, Grafiktasten)
function NavKopf(G) {
	//Kopf(Titel, Ebene, Linie, ExtraTabelle, Groesse, anderes rechtes Logo)
		Kopf('<img src="\/Bilder\/MKoepfe\/' + Mannsch + '.jpg" class="Titel" alt="">', 3, false, true);
		if (G) { GrafikTasten = true;} else { GrafikTasten = false; };
		document.write('<div class="navi"><table><tr>');
		Tasten = 0;
/*
		if ( parent.frames[1] ) {
				if ( parent.frames[1].name ) {
						if ( parent.frames[1].name.length > 4 ) {
								if ( parent.frames[1].name.substr( 0, 5) == "unten" ) Rahmen = parent.frames[1];
							}
					}
			}
*/
		if ( parent.frames[1] ) Rahmen = parent.frames[1];
	};

function NavFuss() { document.write('<\/tr><\/table><hr class="a"><\/div>'); };

function NavTaste(TName, StatText, Verweis) {
		var V;
		Tasten++;
		with (document) {
				V = ' id="Taste' + Tasten + '" ';
				if ( Verweis ) {
						V = V + '" onmouseover="BeiMausUeber( this);" onmouseout="BeiMausWeg( this);" onmousedown="BeiMausKlick( this,' + XX + Verweis + XX + ')" alt="' + StatText + '" title="' + StatText + '"';
					} else {
						V = V + 'style="cursor:auto;"';
					}
				write('<td class="Taste">');
				if (GrafikTasten) {
						write('<img class="Taste" src="' + NBPfad + TName + '1.jpg"' + V + '>');
					} else {
						write('<div class="Taste" ' + V + '>' + TName + '<\/div>');
					}
				write('<\/td>');
			} // Ende with document
	}

function ArchivTaste(Jahr) { NavTaste( 'Archiv 20' + Jahr, 'Eintr&auml;ge des Jahres 20' + Jahr, 'index' + Jahr + '.html' ); }

function BeiMausUeber(Taste) { TZustand2(Taste); if (Taste.title) window.status = Taste.title; MausUeber = Taste; }

function BeiMausWeg(Taste) { if (Taste != AktiveTaste) { TZustand1(Taste); }; window.status = ''; MausUeber = null; }

function BeiMausKlick(Taste, Verweis) {
		AktiveTaste = Taste;
		AlleTastenAus();
		if ( Verweis.substr( 0 , 7).toUpperCase() == 'HTTP://' ) {
				extern(Verweis);
			} else {
				if (Rahmen) {
						Rahmen.location.href = Verweis;
						if ( Verweis.substr( 0 , 1) != '#' ) TZustand2( Taste);
					} else {
						extern(Verweis);
					}
			}
	}

function HISPokal( M) {
 		var Saison = 11;
		extern('http://www.hvb.his-online.net/spielplan/spielplan.asp?ID=8_2_1_1_0_0_' + M + '_' + Saison + '_-1');
	}

function TZustand1(Taste) {
		if (GrafikTasten) {
				document.images[Taste.id].src = document.images[Taste.id].src.replace( '2.jpg', '1.jpg');
			} else with (Taste.style) {
				color = '#000080';
				backgroundColor = '#FC6';
				margin = '0px 2px 2px 0px';
				borderWidth = '1px 3px 3px 1px';
				borderStyle = 'outset';
				borderColor = '#FC6';
			}
	}

function TZustand2(Taste) {
		if (GrafikTasten) {
				document.images[Taste.id].src = document.images[Taste.id].src.replace( '1.jpg', '2.jpg');
			}	else with (Taste.style) {
				color = '#800000';
				backgroundColor = '#FFC';
				margin = '2px 2px 2px 2px';
				border = '1px solid #800000';

			}
	}

function AlleTastenAus() { for (var T = 1; T <= Tasten; T++) { TZustand1(document.getElementById('Taste' + T)); } }