// main.js
// copyright oestreicher & wagner
function detectBrowser() {
	var agent	=	navigator.userAgent.toLowerCase();
	this.ns		=	((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ie		=	(agent.indexOf("msie") != -1);
	this.op3	=	(agent.indexOf("opera") != -1);
	this.win	=	(agent.indexOf("win")!=-1);
	this.mac	=	(agent.indexOf("mac")!=-1);
	this.unix	=	(agent.indexOf("x11")!=-1);
	this.w3c	=	document.documentElement;
	return this;
}
// initialize browser object
is = new detectBrowser();
aLayers = new Array();
var toppos = 127+84;
if (is.mac && is.ie) toppos = toppos-126;
function SpaltenFaerben(farbe,spalte) {
	if (document.getElementById) {
		document.getElementById(spalte).style.backgroundColor = farbe;
	}
}
function showLayer(arg) {
	if (document.getElementById) {
		hideLayer(arg);
		if (arg == 0) arg = aLayers[0];
		document.getElementById(arg).style.visibility = "visible";
	}
}
function hideLayer(arg) {
	if (document.getElementById) {
		if (arg == 0) arg = aLayers[0];
		for (i = 0; i < aLayers.length; i++) {
		if (aLayers[i] != arg) document.getElementById(aLayers[i]).style.visibility = "hidden";
		}
	}
}
function SendSchnellzugriff() {
	//document.schnellzugriff.action = document.schnellzugriff.suche_auswahl.value;
	//document.schnellzugriff.targetPath.value = document.schnellzugriff.suche_auswahl.value;
	document.schnellzugriff.submit();
}

function Go (x) {
  if (x == "nothing") {
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
    return;
  } else {
    if (x == "end") {
      top.location.href = parent.frames[1].location;
    } else {
      document.Element.location.href = x;
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
    }
  }
}