ns4 = (document.layers);
ie4 = (document.all && !document.getElementById);
ns6 = (!document.all && document.getElementById);
ie5 = (document.all && document.getElementById);

function menuItem(obj, parent) {
	this.lyr = (ns6 || ie5) ?document.getElementById(obj) : (ie4) ?document.all[obj] : document[obj];
	this.sty = (ns6 || ie5 || ie4) ?this.lyr.style : this.lyr;
	if(parent != null) this.parent = parent;
	this.timer = null;
	this.obj = obj + "Layer";
	eval(this.obj + "= this");
	return this;
}

function makeEm() {
	s = new Array();
	s[0] = new menuItem('sub0');
	s[1] = new menuItem('sub1');
	s[2] = new menuItem('sub2');
	s[3] = new menuItem('sub3');
	s[4] = new menuItem('sub4');
	s[5] = new menuItem('sub5');
	s[6] = new menuItem('sub6');

}

menuItem.prototype.show = function() {
	clearTimeout(this.timer);
	this.showIt();
}

menuItem.prototype.showIt = function() {
	this.sty.visibility = "visible";
}

menuItem.prototype.hide = function() {
	this.timer = setTimeout(this.obj + ".hideIt()", 150);
}

menuItem.prototype.hideIt = function() {
	this.sty.visibility = "hidden";
}

