function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

Normal1 = new Image();
Normal1.src = "../pics/Thumbnails/Mannschaft_2006_thumb1.jpg";     /* erste Standard-Grafik */
Highlight1 = new Image();
Highlight1.src = "../pics/Bundesligen/Bautzen_2006.jpg"; /* erste Highlight-Grafik */

function Bildwechsel (Bildname, Bildobjekt) { window.document.images[Bildname].src = Bildobjekt.src; }

function BildLaden (Bild) { window.open(Bild, "_blank", "width=820,height=620,left=0,top=0"); }

function StandardText(ID)
{
    document.getElementsByTagName("span")[ID].style.fontWeight = "normal";
    document.getElementsByTagName("span")[ID].style.backgroundColor = "";
    document.getElementsByTagName("span")[ID].style.color = "#0000FF";
    document.getElementsByTagName("span")[ID].style.textDecoration = "underline";
}
function TextVeraendern(ID)
{
    document.getElementsByTagName("span")[ID].style.fontWeight = "bold";
    document.getElementsByTagName("span")[ID].style.backgroundColor = "moccasin";
    document.getElementsByTagName("span")[ID].style.color = "#000000";
    document.getElementsByTagName("span")[ID].style.textDecoration = "none";
}

function NachOben(Pfad)
{
	if (Pfad == "../") {
document.write("<div id=\"Grafik_oben\" title=\"nach oben\" style=\"position:absolute;top:1;visibility:hide;\">");
document.write("<a href=\"#oben\"><img border=\"0\" height=\"26\" src=\"../pics/pfeilblau1.gif\" width=\"28\"></a>");
document.write("</div>"); } else {
document.write("<div id=\"Grafik_oben\" title=\"nach oben\" style=\"position:absolute;top:1;visibility:hide;\">");
document.write("<a href=\"#oben\"><img border=\"0\" height=\"26\" src=\"pics/pfeilblau1.gif\" width=\"28\"></a>");
document.write("</div>"); }
}

function Einblenden()
{
var Fensterbreite = 0;
var Fensterhoehe = 0;
var ScrollLinks = 0;
var ScrollOben = 0;
var Bildbreite = 28;
var Bildhoehe = 26;
var SicherheitsabstandLinks = 20;
var SicherheitsabstandOben = 200;
	Fensterbreite = document.body.clientWidth;
	Fensterhoehe = document.body.clientHeight;
	ScrollLinks = document.body.scrollLeft;
	ScrollOben = document.body.scrollTop;

if(Fensterhoehe>Bildhoehe)
	{
		document.getElementById("Grafik_oben").style.top = Fensterhoehe+ScrollOben-(Bildhoehe+SicherheitsabstandOben);
	}
	else
	{
		document.getElementById("Grafik_oben").style.top = 0;
	}
	if(Fensterbreite>Bildbreite)
	{
		document.getElementById("Grafik_oben").style.right = Fensterbreite-(Bildbreite+SicherheitsabstandLinks);
	}
	else
	{
		document.getElementById("Grafik_oben").style.right = 0;
	}
	document.getElementById("Grafik_oben").style.visibility = "visible";
}

// Beginn: Für die Landkarte Sachsen zur Anzeige des unsichtbaren DIVS

function Suchen(Wert2) {
  var Datensaetze = 17;
  document.all.Anzeigetabelle.style.display = "none";
  var Suchausdruck = "";
  Suchausdruck = Suchausdruck + "Ziffer = " + Wert2;
  document.all.Begriffe.object.Filter = Suchausdruck;
  document.all.Begriffe.Reset();
  document.all.Anzeigetabelle.dataSrc = "#Begriffe";
  document.all.Anzeigetabelle.dataPageSize = Begriffe.recordset.recordCount;
  document.all.Anzeigetabelle.style.display = "block";
}
function DIVEinblenden(Wert) {
Suchen(Wert);
document.all.KommText.filters.blendTrans.Apply();
document.all.KommText.style.visibility = "visible";
document.all.KommText.filters.blendTrans.Play();
}
function DIVAusblenden() {
document.all.KommText.filters.blendTrans.Apply();
document.all.KommText.style.visibility = "hidden";
document.all.KommText.filters.blendTrans.Play();
}
function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}
function Fensterbreite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}
function FrameHoehe() {
	  if (screen.height >= 960) { (Wert2 = 90) } else { (Wert2 = 100) }
	  document.getElementById("KommText").style.width = Fensterbreite()*0.4-Wert2;
	  document.getElementById("KommText").style.left = Fensterhoehe()*0.5+Wert2;
	  document.getElementById("KommText").style.top = Fensterhoehe()*0.55+(Wert2*2);
}

// Ende: Landkarte Sachsen DIV


// öffnet ein Bild in einem Fenster und schließt dieses wenn auf das geöffnete Bild geklickt wird
function GrafikAnzeigen(GrafikURL, Breite, Hoehe, Beschreibung)
{
	Fensteroptionen="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
	
	if (Beschreibung == "")
	Grafikfenster=window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
	
	if (Beschreibung != "")
	Grafikfenster=window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe * 1.2);
	
	Grafikfenster.focus();
	Grafikfenster.document.open();
	with(Grafikfenster)
	{
		document.write("<html><head>");
		document.write("<title>Grafikanzeige</title>");
		document.write("<link href=\"website.css\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\"");
		document.write("</head>");
		document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\" background=\"Corel/Menue/HG/hg_tab.jpg\">");
		document.write("<table =\"100%\" background=\"Corel/Menue/HG/hg_tab.jpg\"><tr><td>");
		document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\">");
		document.write("</td></tr><tr><td align=\"center\" class=\"Massentext\" style=\"padding-top:10px\">");
		document.write(Beschreibung);
		document.write("</td></tr></table>");
		document.write("</body></html>");
	}
}