/* Javascript für animiertes Menü */

/**** Ausklappmenue ****/

function toggle(divID,schalterID,imgID)
{
	var div = document.getElementById(divID);
	var img = document.getElementById(imgID);
	var swi = document.getElementById(schalterID);

	if (div == null)
		return;

	if (div.style.display == "none")
	{
		/ * ausklappen */
		div.style.display = "block";
		if (img != null)
			img.src = "mat/minus.gif";
		if (swi != null)
			swi.firstChild.data = " ...weniger";
	} else {
		/* einklappen */
		div.style.display = "none";
		if (img != null)
			img.src = "mat/plus.gif";
		if (swi != null)
			swi.firstChild.data = " mehr...";
	}
}

/* Javascript für animiertes Menü */

/**** (1) Hervorhebung von Text-Links (geht so nicht in älteren Browserversionen) ****/
var old_color = 'black';
var hi_color = 'red';

/* Mit txt_on() kann die Hervorhebungsfarbe definiert werden. */

function txt_on(color) {
	hi_color = color;
}

function ton(me) {
	if (typeof(me.style) != "undefined") {
		old_color = me.style.color;
		me.style.color = hi_color;
	}
}

function toff(me) {
	if (typeof(me.style) != "undefined") {
		me.style.color = old_color;
	}
}



/**** (2) Hervorhebung von IMG-Links. ****/

var on_images = new Object();
var off_images = new Object();

/* Die Mouse-Over-Images müssen vorher mit img_on() registriert werden. */

function img_on(id,url) {
	on_images[id] = new Image();
	on_images[id].src = url;
}

function ion(id) {
	if (typeof(off_images[id]) == "undefined") {
		off_images[id] = new String();
	}
	off_images[id] = document[id].src;
	document[id].src = on_images[id].src;
}

function ioff(id) {
	document[id].src = off_images[id];
}
/*Fenster šffnen. */

function e5(Datei,FName,Aussehen) {
NeuesFenster = window.open(Datei,FName,Aussehen);
}

/*Fenster schlie§en. */

function e8() {
window.close()
}
