var arrShow = new Array();
arrShow["akt"]="divLeer";
var printWin = null;

// Layer-Aktionen
function layShowHide(divShow) {

	divHide = arrShow["akt"];
	if (divHide != divShow){
		if (document.layers) { // NS 4
			hideObj = eval("document."+divHide);
			showObj = eval("document."+divShow);
			hideObj?hideObj.visibility = "hide":0;
			showObj?showObj.visibility = "show":0;
		}
		if (document.getElementById && !document.all){ // NS 6
			hideObj = eval("document.getElementById('"+divHide+"')");
			showObj = eval("document.getElementById('"+divShow+"')");
			hideObj?hideObj.style.visibility = "hidden":0;
			showObj?showObj.style.visibility = "visible":0;
		}
		if (document.all){ // MS 4 + 5
			hideObj = eval("document.all."+divHide);
			showObj = eval("document.all."+divShow);hideObj?hideObj.style.visibility = "hidden":0;
			showObj?showObj.style.visibility = "visible":0;
		}
		arrShow["akt"] = divShow;
	}
}

function layHide() {
	divHide = arrShow["akt"];
	if (document.layers) { // NS 4
		hideObj = eval("document."+divHide);
		hideObj?hideObj.visibility = "hide":0;
	}
	if (document.getElementById && !document.all){ // NS 6
		hideObj = eval("document.getElementById('"+divHide+"')");
		hideObj?hideObj.style.visibility = "hidden":0;
	}
	if (document.all){ // MS 5
		hideObj = eval("document.all."+divHide);
		hideObj?hideObj.style.visibility = "hidden":0;
	}
	arrShow["akt"] = "divLeer";
}

// separates Fenster mit Fokus
function sepWindow(PW){sepWin = window.open(PW,"DTK::Info","width=500,height=470,top=10,left=120,scrollbars=yes,menubar=no");}

// Tooltip
if (!document.layers&&!document.all)
	event="test"



function tipon(e,l,text,text2){
//	document.onmouseup = event;
	if (text=="ext"){
		text="Externer Link";
		text2="&ouml;ffnet ein neues Browser-Fenster";
	}
	if (text=="ACR"){
		text="PDF-DOCUMENT";
		text2="AcrobatReader&reg;-PlugIn must be installed.<BR><IMG SRC='/media/pagecon/qmark.gif' WIDTH=17 HEIGHT=17 BORDER=0><BR>Click on HELP (Page-Top) for further information";
	}
	text="<table width=155 border=0 cellpadding=3 BGCOLOR=#3460A0 CELLSPACING=3><tr><td valign=top ALIGN=center BGCOLOR=#EEEEEE class='body'><B>"+text+"</B></td></tr><tr><td VALIGN=top BGCOLOR=#FFFFFF class='body'>"+text2+"</td></tr></table>";
	if (document.all && document.readyState=="complete"){
		document.all.tooltip2.innerHTML=text
		document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+3+l
		document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+12
		document.all.tooltip2.style.visibility="visible"
  } else if (document.getElementById && !document.all){ // NS 6
		document.getElementById('tooltip2').innerHTML=text;
	  document.getElementById('tooltip2').style.left = e.pageX+3+l;
    document.getElementById('tooltip2').style.top = e.pageY+2;
		document.getElementById('tooltip2').style.visibility = "visible";
	} else if (document.layers){
		document.tooltip2.document.nstip.document.write(text);
		document.tooltip2.document.nstip.document.close();
		document.tooltip2.document.nstip.left=0;
		document.tooltip2.left=e.pageX+3+l;
		document.tooltip2.top=e.pageY+12;
		document.tooltip2.visibility="show";
	}
}
function tipoff(){
	if (document.all){document.all.tooltip2.style.visibility="hidden"}
	else if (document.layers){document.tooltip2.visibility="hidden"}
  else if (document.getElementById && !document.all){ document.getElementById('tooltip2').style.visibility = "hidden";}
}
