


function oldid()
{
	alteid = "n00";
	anzeige (linkid);
} 


function anzeige (neueid)
{
	xid = neueid;
	for ( nummer1 = 1 ; nummer1 < 18 ; nummer1++)
	{
		y = "0" + nummer1;
		laenge = y.length - 2;
		y = y.substr(laenge,2); 
		
		navid = alteid + y; 
		if (document.getElementById(navid))
		{
			document.getElementById(navid).style.display="none";
		}
	} 


	for ( nummer1 = 1 ; nummer1 < 18 ; nummer1++)
	{
		y = "0" + nummer1;
		laenge = y.length - 2;
		y = y.substr(laenge,2); 
		
		navid = xid + y; 
		if (document.getElementById(navid))
		{
			document.getElementById(navid).style.display="block";
		}
	} 
	alteid = xid;
}


function titel () 
{
<!-- Frame-Adresse -->
	var pfad = window.location.pathname.split( '/' );
	anzahl = pfad.length;
<!-- Ermittlung Frametitel-->
  if (anzahl > 3)
  {
	titelnummer = anzahl-2;
	titel = pfad[titelnummer];

<!-- Grossbuchstabe -->

	buchstabe = titel.substring(0, 1)
	buchstabe = buchstabe.toUpperCase()
	titel = buchstabe + titel.substring(1, titel.length);

<!-- &auml; &ouml; ü Umwandlung -->

	for (x=1;x<4;x++)
	{
		if(titel.indexOf("ae") != -1)
		{
			position = titel.indexOf("ae");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&auml;" + titely
 		}
 
		if(titel.indexOf("oe") != -1)
		{
			position = titel.indexOf("oe");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&ouml;" + titely
		}

		if(titel.indexOf("ue") != -1)
		{
			position = titel.indexOf("ue");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&uuml;" + titely
		}
	}

<!-- Ausgabe -->
	titeltext00 = titel;

	if (document.getElementById('titel00'))
	{
		document.getElementById('titel00').innerHTML = titeltext00 ;
	}
  }

<!-- Ermittlung Link 1 rauf-->
  if (anzahl > 4)
  {
	titelnummer = anzahl-3;
	titel = pfad[titelnummer];

<!-- Grossbuchstabe -->

	buchstabe = titel.substring(0, 1)
	buchstabe = buchstabe.toUpperCase()
	titel = buchstabe + titel.substring(1, titel.length);

<!-- &auml; &ouml; ü Umwandlung -->

	for (x=1;x<4;x++)
	{
		if(titel.indexOf("ae") != -1)
		{
			position = titel.indexOf("ae");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&auml;" + titely
 		}
 
		if(titel.indexOf("oe") != -1)
		{
			position = titel.indexOf("oe");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&ouml;" + titely
		}

		if(titel.indexOf("ue") != -1)
		{
			position = titel.indexOf("ue");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&uuml;" + titely
		}
	}

<!-- Ausgabe -->
	titeltext01 = '<a href="../index.html" >' + titel + "</a>";
	if (document.getElementById('titel01'))
	{
		document.getElementById('titel01').innerHTML = titeltext01 ;
	}
  }

<!-- Ermittlung Link 2 rauf-->
  if (anzahl > 5)
  {
	titelnummer = anzahl-4;
	titel = pfad[titelnummer];

<!-- Grossbuchstabe -->

	buchstabe = titel.substring(0, 1)
	buchstabe = buchstabe.toUpperCase()
	titel = buchstabe + titel.substring(1, titel.length);

<!-- &auml; &ouml; ü Umwandlung -->

	for (x=1;x<4;x++)
	{
		if(titel.indexOf("ae") != -1)
		{
			position = titel.indexOf("ae");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&auml;" + titely
 		}
 
		if(titel.indexOf("oe") != -1)
		{
			position = titel.indexOf("oe");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&ouml;" + titely
		}

		if(titel.indexOf("ue") != -1)
		{
			position = titel.indexOf("ue");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&uuml;" + titely
		}
	}

<!-- Ausgabe -->

	titeltext02 = '<a href="../../index.html" >' + titel + "</a>"
	if (document.getElementById('titel02'))
	{
		document.getElementById('titel02').innerHTML = titeltext02 ;
	}
  }
<!-- Ermittlung Link 3 rauf-->
  if (anzahl > 6)
  {
	titelnummer = anzahl-5;
	titel = pfad[titelnummer];

<!-- Grossbuchstabe -->

	buchstabe = titel.substring(0, 1)
	buchstabe = buchstabe.toUpperCase()
	titel = buchstabe + titel.substring(1, titel.length);

<!-- &auml; &ouml; ü Umwandlung -->

	for (x=1;x<4;x++)
	{
		if(titel.indexOf("ae") != -1)
		{
			position = titel.indexOf("ae");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&auml;" + titely
 		}
 
		if(titel.indexOf("oe") != -1)
		{
			position = titel.indexOf("oe");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "&ouml;" + titely
		}

		if(titel.indexOf("ue") != -1)
		{
			position = titel.indexOf("ue");
			laenge = titel.length;
			titelx = titel.substring(0,position);
			titely = titel.substring(position+2,laenge);
			titel = titelx + "ü" + titely
		}
	}

<!-- Ausgabe -->

	titeltext03 = '<a href="../../../index.html" >' + titel + "</a>"
	if (document.getElementById('titel03'))
	{
		document.getElementById('titel03').innerHTML = titeltext03 ;
	}
  }
}

function fehler(f)
{
<!-- parent.ende muss im Frame auf null gesetzt werden -->
	ende = parent.ende;
	fehlernummer = f;
	if ( ende == 0 ) 
	{
	parent.ende = f - 1;
	if (f == 0) parent.ende = 99;
	}

	fehlernummer= "0" + f;
	laenge = fehlernummer.length - 2;
	fehlernummer = fehlernummer.substr(laenge,2); 
	bi = "bild" + fehlernummer;
	te = "text" + fehlernummer;
	le = "leer" + fehlernummer;
	if (document.getElementById(bi))
	{
		document.getElementById(bi).innerHTML = '' ;
	}
	if (document.getElementById(te))
	{
		document.getElementById(te).innerHTML = '' ;
	}
	if (document.getElementById(le))
	{
		document.getElementById(le).innerHTML = '' ;
	}
}

function informationen()
{ 
	frameid = parent['haupt'].frameid;
	objekt = document.getElementById ("player");
	if (playertext == -1) {}
	else{objekt.innerHTML = playertext;};
	playertext = -1;
} 

function neuladen()
{
framelink = new Array();
frameid = new Array();
framelink [1]  = "haupt/home/index.html";  frameid [1] = "n02";
framelink [2]  = "haupt/news/index.html";  frameid [2] = "n02";
framelink [3]  = "haupt/termine/index.html";  frameid [3] = "n03";
framelink [4]  = "haupt/tanzgruppen/index.html";  frameid [4] = "n04";
framelink [5]  = "haupt/tanzgruppen/index.html";  frameid [5] = "n04";
framelink [6]  = "haupt/tanzgruppen/tanzmariechen/index.html";  frameid [6] = "n04";
framelink [7]  = "haupt/tanzgruppen/garde/index.html";  frameid [7] = "n04";
framelink [8]  = "haupt/tanzgruppen/blue%20devils/index.html";  frameid [8] = "n04";
framelink [9]  = "haupt/tanzgruppen/sun%20dancer/index.html";  frameid [9] = "n04";
framelink [10]  = "haupt/tanzgruppen/kleine%20garde/index.html";  frameid [10] = "n04";
framelink [11]  = "haupt/verein/index.html";  frameid [11] = "n05";
framelink [12]  = "haupt/verein/index.html";  frameid [12] = "n05";
framelink [13]  = "haupt/verein/vorstand/index.html";  frameid [13] = "n05";
framelink [14]  = "haupt/verein/posten/index.html";  frameid [14] = "n05";
framelink [15]  = "haupt/verein/jugendabteilung/index.html";  frameid [15] = "n05";
framelink [16]  = "haupt/chronik/index.html";  frameid [16] = "n06";
framelink [17]  = "haupt/chronik/index.html";  frameid [17] = "n06";
framelink [18]  = "haupt/chronik/geschichte/index.html";  frameid [18] = "n0602";
framelink [19]  = "haupt/chronik/index.html";  frameid [19] = "n06";
framelink [20]  = "haupt/chronik/geschichte/index.html";  frameid [20] = "n0602";
framelink [21]  = "haupt/chronik/geschichte/2010er/index.html";  frameid [21] = "n0602";
framelink [22]  = "haupt/chronik/geschichte/2000er/index.html";  frameid [22] = "n0602";
framelink [23]  = "haupt/chronik/geschichte/1990er/index.html";  frameid [23] = "n0602";
framelink [24]  = "haupt/chronik/geschichte/1980er/index.html";  frameid [24] = "n0602";
framelink [25]  = "haupt/chronik/geschichte/1970er/index.html";  frameid [25] = "n0602";
framelink [26]  = "haupt/chronik/geschichte/1960er/index.html";  frameid [26] = "n0602";
framelink [27]  = "haupt/chronik/geschichte/1950er/index.html";  frameid [27] = "n0602";
framelink [28]  = "haupt/chronik/prinzen/index.html";  frameid [28] = "n06";
framelink [29]  = "haupt/chronik/kinderprinzen/index.html";  frameid [29] = "n06";
framelink [30]  = "haupt/chronik/zeitungsartikel/index.html";  frameid [30] = "n06";
framelink [31]  = "haupt/fotoalbum/index.html";  frameid [31] = "n07";
framelink [32]  = "haupt/fotoalbum/index.html";  frameid [32] = "n07";
framelink [33]  = "haupt/fotoalbum/2012-2013/index.html";  frameid [33] = "n0702";
framelink [34]  = "haupt/fotoalbum/index.html";  frameid [34] = "n07";
framelink [35]  = "haupt/fotoalbum/2012-2013/index.html";  frameid [35] = "n0702";
framelink [36]  = "haupt/fotoalbum/2011-2012/index.html";  frameid [36] = "n0703";
framelink [37]  = "haupt/fotoalbum/index.html";  frameid [37] = "n07";
framelink [38]  = "haupt/fotoalbum/2011-2012/index.html";  frameid [38] = "n0703";
framelink [39]  = "haupt/fotoalbum/2011-2012/prinzentreffen/index.html";  frameid [39] = "n070303";
framelink [40]  = "haupt/fotoalbum/index.html";  frameid [40] = "n07";
framelink [41]  = "haupt/fotoalbum/2011-2012/index.html";  frameid [41] = "n0703";
framelink [42]  = "haupt/fotoalbum/2011-2012/prinzentreffen/index.html";  frameid [42] = "n070303";
framelink [43]  = "haupt/fotoalbum/2011-2012/prinzentreffen/01/index.html";  frameid [43] = "n070303";
framelink [44]  = "haupt/fotoalbum/2011-2012/prinzentreffen/02/index.html";  frameid [44] = "n070303";
framelink [45]  = "haupt/fotoalbum/2011-2012/prinzentreffen/03/index.html";  frameid [45] = "n070303";
framelink [46]  = "haupt/fotoalbum/2010-2011/index.html";  frameid [46] = "n0704";
framelink [47]  = "haupt/fotoalbum/index.html";  frameid [47] = "n07";
framelink [48]  = "haupt/fotoalbum/2010-2011/index.html";  frameid [48] = "n0704";
framelink [49]  = "haupt/fotoalbum/2009-2010/index.html";  frameid [49] = "n0705";
framelink [50]  = "haupt/fotoalbum/index.html";  frameid [50] = "n07";
framelink [51]  = "haupt/fotoalbum/2009-2010/index.html";  frameid [51] = "n0705";
framelink [52]  = "haupt/fotoalbum/2008-2009/index.html";  frameid [52] = "n0706";
framelink [53]  = "haupt/fotoalbum/index.html";  frameid [53] = "n07";
framelink [54]  = "haupt/fotoalbum/2008-2009/index.html";  frameid [54] = "n0706";
framelink [55]  = "haupt/fotoalbum/2008-2009/zeltlager/index.html";  frameid [55] = "n0706";
framelink [56]  = "haupt/fotoalbum/2008-2009/prinzentreffen/index.html";  frameid [56] = "n0706";
framelink [57]  = "haupt/fotoalbum/2008-2009/fackelzug/index.html";  frameid [57] = "n0706";
framelink [58]  = "haupt/fotoalbum/2007-2008/index.html";  frameid [58] = "n0707";
framelink [59]  = "haupt/fotoalbum/index.html";  frameid [59] = "n07";
framelink [60]  = "haupt/fotoalbum/2007-2008/index.html";  frameid [60] = "n0707";
framelink [61]  = "haupt/fotoalbum/2007-2008/prinzentreffen/index.html";  frameid [61] = "n0707";
framelink [62]  = "haupt/fotoalbum/2007-2008/fackelzug/index.html";  frameid [62] = "n0707";
framelink [63]  = "haupt/fotoalbum/2007-2008/auftaktsitzung/index.html";  frameid [63] = "n0707";
framelink [64]  = "haupt/fotoalbum/2006-2007/index.html";  frameid [64] = "n0708";
framelink [65]  = "haupt/fotoalbum/index.html";  frameid [65] = "n07";
framelink [66]  = "haupt/fotoalbum/2006-2007/index.html";  frameid [66] = "n0708";
framelink [67]  = "haupt/fotoalbum/2006-2007/fruehlingsfest/index.html";  frameid [67] = "n0708";
framelink [68]  = "haupt/fotoalbum/2006-2007/galasitzung/index.html";  frameid [68] = "n0708";
framelink [69]  = "haupt/fotoalbum/2006-2007/kindersitzung/index.html";  frameid [69] = "n0708";
framelink [70]  = "haupt/fotoalbum/2006-2007/prinzentreffen/index.html";  frameid [70] = "n0708";
framelink [71]  = "haupt/fotoalbum/2006-2007/auftaktsitzung/index.html";  frameid [71] = "n0708";
framelink [72]  = "haupt/fotoalbum/2005-2006/index.html";  frameid [72] = "n0709";
framelink [73]  = "haupt/fotoalbum/index.html";  frameid [73] = "n07";
framelink [74]  = "haupt/fotoalbum/2005-2006/index.html";  frameid [74] = "n0709";
framelink [75]  = "haupt/fotoalbum/2005-2006/stadtmeisterschaft/index.html";  frameid [75] = "n0709";
framelink [76]  = "haupt/fotoalbum/2005-2006/fruehlingsfest/index.html";  frameid [76] = "n0709";
framelink [77]  = "haupt/fotoalbum/2005-2006/weihnachtsfeier/index.html";  frameid [77] = "n0709";
framelink [78]  = "haupt/fotoalbum/2005-2006/auftaktsitzung/index.html";  frameid [78] = "n0709";
framelink [79]  = "haupt/fotoalbum/2004-2005/index.html";  frameid [79] = "n0710";
framelink [80]  = "haupt/fotoalbum/index.html";  frameid [80] = "n07";
framelink [81]  = "haupt/fotoalbum/2004-2005/index.html";  frameid [81] = "n0710";
framelink [82]  = "haupt/fotoalbum/2004-2005/fruehlingsfest/index.html";  frameid [82] = "n0710";
framelink [83]  = "haupt/fotoalbum/2004-2005/fackelzug/index.html";  frameid [83] = "n0710";
framelink [84]  = "haupt/fotoalbum/2004-2005/neujahrstreffen/index.html";  frameid [84] = "n0710";
framelink [85]  = "haupt/fotoalbum/2004-2005/auftaktsitzung/index.html";  frameid [85] = "n0710";
framelink [86]  = "haupt/fotoalbum/2003-2004/index.html";  frameid [86] = "n0711";
framelink [87]  = "haupt/fotoalbum/index.html";  frameid [87] = "n07";
framelink [88]  = "haupt/fotoalbum/2003-2004/index.html";  frameid [88] = "n0711";
framelink [89]  = "haupt/fotoalbum/2003-2004/stadtfest/index.html";  frameid [89] = "n0711";
framelink [90]  = "haupt/fotoalbum/2003-2004/fruehlingsfest/index.html";  frameid [90] = "n0711";
framelink [91]  = "haupt/fotoalbum/2003-2004/auftaktsitzung/index.html";  frameid [91] = "n0711";
framelink [92]  = "haupt/fotoalbum/2003-2004/proklamation/index.html";  frameid [92] = "n0711";
framelink [93]  = "haupt/fotoalbum/2002-2003/index.html";  frameid [93] = "n0712";
framelink [94]  = "haupt/fotoalbum/index.html";  frameid [94] = "n07";
framelink [95]  = "haupt/fotoalbum/2002-2003/index.html";  frameid [95] = "n0712";
framelink [96]  = "haupt/fotoalbum/2002-2003/stadtfest/index.html";  frameid [96] = "n0712";
framelink [97]  = "haupt/fotoalbum/2002-2003/sommerfest/index.html";  frameid [97] = "n0712";
framelink [98]  = "haupt/fotoalbum/2002-2003/fruehlingsfest/index.html";  frameid [98] = "n0712";
framelink [99]  = "haupt/fotoalbum/2002-2003/hausball/index.html";  frameid [99] = "n0712";
framelink [100]  = "haupt/fotoalbum/2002-2003/exprinzenfruehstueck/index.html";  frameid [100] = "n0712";
framelink [101]  = "haupt/spatzennest/index.html";  frameid [101] = "n08";
framelink [102]  = "haupt/gästebuch/index.html";  frameid [102] = "n09";
framelink [103]  = "haupt/links/index.html";  frameid [103] = "n10";
framelink [104]  = "haupt/kontakt/index.html";  frameid [104] = "n11";
framelink [105]  = "haupt/impressum/index.html";  frameid [105] = "n12";
framelink [106]  = "";  frameid [106] = "n13";
framelink [107]  = "";  frameid [107] = "n14";
framelink [108]  = "";  frameid [108] = "n15";
framelink [109]  = "";  frameid [109] = "n16";
framelink [110]  = "";  frameid [110] = "n17";



	var pfad = window.location.pathname.split( '/' );

	titelnummer = pfad.length;
	titelnummer2 = titelnummer-2;
	titel = pfad[titelnummer2];
	fenster = framelink.length
	
	p = 0;
	xlink = "";
    for (i=1; i<titelnummer; i++)
	{
		if(pfad[i]=="index.html")
		{
			xlink = xlink + "index.html"; 
			p = 2;
		}
        
		if(pfad[i]=="haupt")
		{
			p = 1;
		}
	  
		if (p == 1)
		{
			xlink = xlink + pfad[i] + "/"
		}
	}
 	for (i=1; i<fenster; i++)
	{
		if (xlink == framelink[i])
		{	
			linkid = frameid [i];
		}
	}

	parent.linkid = linkid;
	parent.anzeige(linkid);
}

function uebergabe (x) 
{
	parent.start = x;
	parent.nummer = x;
	URI = "bildershow.html";
	parent['haupt'].location.href = URI  

	return false;
}


function zurueck()
{   
	start = parent.start;
	nummer = parent.nummer;
	ende = parent.ende;
  
	nummer = nummer - 1;
	if ( nummer == 0) nummer = ende;	
  
	image = "0" + nummer;
	laenge = image.length - 2;
	image = image.substr(laenge,2); 
	text = image;
	url = "images/" + image + ".jpg";
	document.images['gross'].src = url;
  
  document.getElementById("text1").innerHTML=text;
  document.getElementById("text2").innerHTML=text;

	parent.nummer = nummer
}

function vor()
{   
	start = parent.start;
	nummer = parent.nummer;
	ende = parent.ende;
	nummer = nummer + 1;
	if ( nummer > ende ) nummer = 1;	
  
	image = "0" + nummer;
	laenge = image.length - 2;
	image = image.substr(laenge,2); 
	text = image;
	url = "images/" + image + ".jpg";
	document.images['gross'].src = url;
  
  document.getElementById("text1").innerHTML=text;
  document.getElementById("text2").innerHTML=text;

	parent.nummer = nummer
}

function bild()
{   
	start = parent.start;
	nummer = parent.nummer;
	ende = parent.ende;

	if ( nummer == 0) nummer = start;
  
	image = "0" + nummer;
	laenge = image.length - 2;
	image = image.substr(laenge,2); 
	text = image;
	url = "images/" + image + ".jpg";
	document.images['gross'].src = url;
  
  document.getElementById("text1").innerHTML=text;
  document.getElementById("text2").innerHTML=text;

	parent.nummer = nummer
}
  
function sprung()
{
	nummer = parent.nummer;
	sprung = "0" + nummer;
	laenge = sprung.length - 2;
	sprung = sprung.substr(laenge,2); 
	URI = "index.html#"+sprung;
	parent['haupt'].location.href = URI  
	return false;  
  }

