// Browser Klasse
function Browser() {
	this.ver = navigator.appVersion;
	this.dom = document.getElementById ? 1 : 0;
	this.ie6 = (this.ver.indexOf("MSIE 6") > -1 && this.dom) ? 1 : 0;
	this.ie5 = (this.ver.indexOf("MSIE 5") > -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.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5);
}

// Browser-Objekt erzeugen
var bw = new Browser();

// Menüelement Klasse
function Division(obj,nest){
	nest = (!nest) ? '' : 'document.'+nest+'.';
  this.css = bw.dom ? document.getElementById(obj).style : bw.ie4 ? document.all[obj].style : bw.ns4 ? eval( nest + "document.layers." + obj) : 0;		
	this.el = bw.dom ? document.getElementById(obj) : bw.ie4 ? document.all[obj] : bw.ns4 ? eval(nest+'document.'+obj) : 0;	
	this.ref = bw.dom || bw.ie4 ? document : bw.ns4 ? eval(nest + "document.layers." + obj + ".document") : 0;
	this.x = (bw.ns4 || bw.ns5) ? this.css.left : this.css.pixelLeft; this.x = this.x * 1;
	this.y = (bw.ns4 || bw.ns5) ? this.css.top:this.css.pixelTop; this.y = this.y * 1;
	this.height = bw.ns4 ? this.ref.height : this.el.offsetHeight; this.height = this.height * 1;		
	// Methoden einbinden
	this.hideIt = b_hideIt;
	this.showIt=b_showIt;
	this.vis=b_vis;
	this.moveIt=b_moveIt;
}

// Element einblenden
function b_showIt() {
	this.css.visibility="visible";
}

// Element ausblenden
function b_hideIt() {
	this.css.visibility="hidden";
}

// Prüfen, ob Element sichtbar ist
function b_vis() { 
	ret = false;
	if(this.css.visibility=="hidden" || this.css.visibility=="hide")
		ret = true;
	return ret;
}

// Element verschieben
function b_moveIt(x,y) {
	this.x=x;
	this.y=y;
	this.css.left=this.x;
	this.css.top=this.y;
}