function checkBrowser()
{
        this.ver = navigator.appVersion;
        this.dom = document.getElementById ? 1 : 0;
        this.opera = (navigator.userAgent.indexOf("Opera")>=0 && this.dom) ? 1 : 0;
        this.ie7 = (this.ver.indexOf("MSIE 7")>-1 && this.dom && navigator.userAgent.indexOf("Opera")==-1) ? 1 : 0;
        this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom && navigator.userAgent.indexOf("Opera")==-1) ? 1 : 0;
        this.ie5 = (this.ver.indexOf("MSIE 6")>-1 && this.dom && navigator.userAgent.indexOf("Opera")==-1) ? 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){
                tmpObj=document.getElementById(objName)
                if(tmpObj)
                        this.css=tmpObj.style;
        }else if(client.ie4){
                this.css=document.all[objName].style;
        }else if(client.ns4){
                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){
                if(client.ie5||client.ie6||client.ie7){
                        oLayer.css.display = "inline";
                }else{
                        oLayer.css.display = "table-row";
                }
                i++;
                oLayer = new domObj(basisName+i);
        }
}

function verstecken(basisName)
{
        var i=0;
        oLayer = new domObj(basisName+i);
        while (oLayer.css){
                oLayer.css.display = "none";
                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);
        }
}

function echoObject( obj ){
	out = "";
	//alert(typeof obj);
	if(typeof obj == 'object' && obj.length){
		out += "Object (\n";
		for (var i=0; i<obj.length; i++){
			if(!obj[i].name){
				out +="  " + i + "= " + obj[i] + "\n";
			}
			else{
				out += "  " + obj[i].name + "=" +obj[i] + "\n";
			}
		}
		out += ");";
	}
	else if(typeof obj == 'object'){
		for (var name in obj) {
			out += "  " + name + "=" +obj[name];
			//alert(name);
		}
	}
	alert(out);
}

client=new checkBrowser();
