function checkBrowser()
{
	this.ver = navigator.appVersion;
	this.dom = document.getElementById ? 1 : 0;
	this.ie5 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1 : 0;
	this.ie4 = (document.all && !this.dom) ? 1 : 0;
	this.ns5 = (this.dom && parseInt(this.ver) >= 5) ? 1 : 0;
	this.ns4 = (document.layers && !this.dom) ? 1 : 0;
	this.bw = (this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
}

function domObj(objName,nest,x,y)
{
	nest=(!nest) ? '':'document.'+nest+'.'
	this.css=false;
	this.obj=false;

	if (client.dom){
		this.css=document.getElementById(objName).style;
	}else if(client.ie4){
		this.css=document.all[objName].style;
	}else if(client.ie4){
		this.css=eval(nest+"document.layers." +objName);
	}else{}
	this.obj = objName + "Object";
	eval( this.obj + "=this") ;

	return this;
}

function zeigen(basisName)
{
	var i=0;
	oLayer = new domObj(basisName+i);
	while (oLayer.css){
		oLayer.css.visibility = "visible";
		i++;
		oLayer = new domObj(basisName+i);
	}
}

function verstecken(basisName)
{
	var i=0;
	oLayer = new domObj(basisName+i);
	while (oLayer.css){
		oLayer.css.visibility = "hidden";
		i++;
		oLayer = new domObj(basisName+i);
	}
}

function sichtbarkeitAendern(basisName)
{
	var i=0;
	oLayer = new domObj(basisName+i);
	while (oLayer.css){
		if (oLayer.css.visibility == "visible"){
			oLayer.css.visibility = "hidden";
		}else if (oLayer.css.visibility == "hidden"){
			oLayer.css.visibility = "visible";
		}
		i++;
		oLayer = new domObj(basisName+i);
	}
}

var client = new checkBrowser();
