<!--
// Generelle Definitionen und Variablen
var arImageSrc = new Array ();
var arImageSrc = new Array ();
var arImageSrc = new Array ();
var LastActive, FinishedPreload, TopActive ;

// Funktionen
// 1. Rahmen um geklickte Grafiken entfernen

function deblur(Objekt)
{
	if(is_ie4up)
	{
		Objekt.blur();
	}
}
// 2. Bildvorlader
function Vorlader()
{
	if (is_ie4up || is_nav4up)
	{
		arImageList = new Array ();
		for (counter in arImageSrc)
		{
			for(i = 0; i < arImageSrc[counter].length; i++)
			//alert (i);
			{
				arImageList[counter+"_"+i] = new Image();
				arImageList[counter+"_"+i].src = arImageSrc[counter][i];
			}
		}
		FinishedPreload = 1;
	}
}

// 3. Bildwechsel
function Bildwechsel(Name, Status) {
	if(FinishedPreload == 1) {
		document[Name].src = arImageList[Name+"_"+Status].src;
	}
}
// 4. Highligt setzen
function HLight(Name) {
	if(Name != "" && Name == Name) {
		document[Name].src = arImageList[Name+"_1"].src;
	}
}
// 5. Layer Aus/Ein
function Layerwechsel(Name, Status)	{
	if(Status == 0) { // Zustand "aus"
		if (is_ie4) {
			document.all["layer" + Name].style.visibility = "hidden";
		}
		else if (is_nav4) {
			document.layers["layer" + Name].visibility = "hide";
		}
		else {
			document.getElementById("layer" + Name).style.visibility = "hidden";
		}
	}
	if(Status == 1) { // Zustand "an"
		if (is_ie4) {
			document.all["layer" + Name].style.visibility = "visible";
		}
		else if (is_nav4) {
			document.layers["layer" + Name].visibility = "show";
		}
		else {
			document.getElementById("layer" + Name).style.visibility = "visible";
		}
	}
}


// 6. PopUp
function tep(){
	width = 1000;
	height = 730;
	XPos = 0;
	YPos = 0;
	//Popup
	url="tep/index.html";
	popupfenster = open(url,"popup2","width="+width+",height="+height+",location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,top="+YPos+",screenY="+YPos+",left="+XPos+",screenX="+XPos);
	popupfenster.focus();
}
function popup(name,id){
	width = 490;
	height = 490;
	XPos = 0;
	YPos = 0;
	Hoehe1 = screen.height;
	Weite1 = screen.width;
	//Popup
	url= "./_popups/"+name+"-"+id+".php";
	popupfenster = open(url,"popup2","width="+width+",height="+height+",location=no,resizable,menubar=no,scrollbars=yes,status=no,toolbar=no,top="+YPos+",screenY="+YPos+",left="+XPos+",screenX="+XPos);
	popupfenster.focus();
}

//-->

