/* Schrift und Ueberschriftgroessen dynamisch aendern */

function gr(punkt) {
	document.getElementById("Inhalt").style.fontSize = punkt;
	document.getElementById("Zusatzinfo").style.fontSize = punkt;

	h1punkt = (parseInt(punkt,10)+4);

			
	for (var i = 0; i < document.getElementById("Inhalt").childNodes.length; i++) {
    		if (document.getElementById("Inhalt").childNodes[i].nodeName == "H1") {
      		document.getElementById("Inhalt").childNodes[i].style.fontSize = h1punkt+"pt";
    		}
	}


}





function bild_gr(Pfad) {
/* Berechnet wie weit die Seite gescrollt ist */
	var scrx,scry;
	if (self.pageYOffset) // all except Explorer
	{
	scrx = self.pageXOffset;
	scry = self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	// Explorer 6 Strict
	{
	scrx = document.documentElement.scrollLeft;
	scry = document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
	scrx = document.body.scrollLeft;
	scry = document.body.scrollTop;
	}
/* Scrollpositionsberechnung ENDE */	

var winwidth,winheight;
if (self.innerHeight) // all except Explorer
{
	winwidth = self.innerWidth;
	winheight = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	winwidth = document.documentElement.clientWidth;
	winheight = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	winwidth = document.body.clientWidth;
	winheight = document.body.clientHeight;
}

/* altes Bild ausblenden, falls es existiert */
		if (typeof mydiv == "object") {
		document.getElementById("Zusatzinfo").removeChild(mydiv);
		}
/* Bild ein- und ausblenden */
		mydiv = document.createElement("div");
		var mybild = document.createElement("img");
		var mytext = document.createTextNode("[Schließen]");
		var mybr = document.createElement("br");
		var mya = document.createElement("a");
		mydiv.appendChild(mybild);
		mydiv.appendChild(mybr);
		mydiv.appendChild(mya);
		mya.appendChild(mytext);
		document.getElementById("Zusatzinfo").appendChild(mydiv);
		mybild.src = Pfad;
		mya.href = "javascript:bild_weg()";
		mydiv.style["position"] = "absolute";
		
		mydiv.style["top"] = ((((screen.height-150)/2)+scry)-((mybild.height/2)+35))+"px";
		
		mydiv.style["right"] = (winwidth/2)- (mybild.width/2)+"px";
		mybild.style["border"] = "8px solid ivory";
		mydiv.style["border"] = "5px solid #008080";
		mydiv.style["background"] = "#008080";
		mydiv.style["overflow"] = "auto";
		mya.style["color"] = "ivory";
		
}


function bild_weg() {
		document.getElementById("Zusatzinfo").removeChild(mydiv);
		delete mydiv;
}

