linka='';
thisPage='nav.html';
imgPath='images/';

	var x = 0
	page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
		}
page = escape(page);
page = page.slice(7);

function subMenu(name,linkb,linkt) {
 this.name = name;
 this.linkb = linkb;
 this.linkt = linkt;
}

// Home
if (page=='Home') {
	parent.anzeige.location.href='start.html';
thisMenu = new Array();
}

// Informativesmenu
if (page=='Info') {
	parent.anzeige.location.href='aktuelles.html';
thisMenu = new Array();
thisMenu[0] = new subMenu('Aktuelles','aktuelles.html','anzeige');
thisMenu[1] = new subMenu('Vorstand','vorstand.html','anzeige');
//thisMenu[2] = new subMenu('Der Verein','verein.html','anzeige');
thisMenu[2] = new subMenu('Kontaktformular','kontakt.html','anzeige');
}

// Turnieremenu
if (page=='Turnier') {
	parent.anzeige.location.href='turniere.html';
thisMenu = new Array();
thisMenu[0] = new subMenu('Jugendmeisterschaft','jugend.html','anzeige');
thisMenu[1] = new subMenu('Vereinsmeisterschaft','vm.html','anzeige');
thisMenu[2] = new subMenu('Blitz Grand-Prix','bgp.html','anzeige');
thisMenu[3] = new subMenu('Pokalturnier','pokal.html','anzeige');
thisMenu[4] = new subMenu('Weitere Turniere','turniere.html','anzeige');
thisMenu[5] = new subMenu('Mannschaften','mannschaften.html','anzeige');
}

// Linksmenu
if (page=='Links') {
	parent.anzeige.location.href='schachlinks.html';
thisMenu = new Array();
thisMenu[0] = new subMenu('Schachlinks','schachlinks.html','anzeige');
thisMenu[1] = new subMenu('Wertungszahlen','http://www.deutscher-schachbund.de/dwz/db/verein-prn.html?zps=A0112','_blank');
}

// Impressum
if (page=='impressum') {
	parent.anzeige.location.href='impressum.html';
thisMenu = new Array();
}

