var holdon = new Array();
var ie = document.all?1:0;
if (!ie) var dom = document.getElementById?1:0;
var b_can = false;
if (ie || dom) b_can = true;

function hiMenu(l) {
	if (!b_can) return;
	this.l = l;
	this.doc = "document.";
	this.vis = ".visibility=";
	if (ie) {
		this.obj = "all['"+this.l+"']";
		this.st = ".style";
		this.make = "\"visible\"";
	} else if (dom) {
		this.obj = "getElementById('"+this.l+"')";
		this.st = ".style";
		this.make = "\"visible\"";
	}
	eval(this.doc+this.obj+this.st+this.vis+this.make);
	holdon[l] = 1;
	return;
}

function stashMenu(l) {
	if (holdon[l] == 1) return;
	this.l = l;
	this.doc = "document.";
	this.vis = ".visibility=";
	if (ie) {
		this.obj = "all['"+this.l+"']";
		this.st = ".style";
		this.make = "\"hidden\"";
	} else if (dom) {
		this.obj = "getElementById('"+this.l+"')";
		this.st = ".style";
		this.make = "\"hidden\"";
	}
	eval(this.doc+this.obj+this.st+this.vis+this.make);
	return;
}

function loMenu(l) {
	if (!b_can) return;	
	this.l = l;
	holdon[l] = 0;
	window.setTimeout("stashMenu('"+this.l+"')", 500);
}

