Menu = {timer : null, current : null};


function auf(name)
{
	if(name)
	{
		zu2();

		if(name != this.current2) zu2sub();

		document.getElementById(name).style.visibility = "visible";

		if(this.timer) clearTimeout(this.timer);

		this.current = name;
	}
}


function zu()
{
	this.timer = setTimeout("zu2()",600);
}


function zu2()
{
	if(this.current) document.getElementById(this.current).style.visibility = "hidden";
	this.current = null;
}


function aufsub(namesub, name2)
{
	if(namesub)
	{
		zu2sub();
		document.getElementById(namesub).style.visibility = "visible";

		if(this.timersub) clearTimeout(this.timersub);

		this.currentsub = namesub;
		this.current2 = name2;
	}
}


function zusub()
{
	this.timersub = setTimeout("zu2sub()",600);
}


function zu2sub()
{
	if(this.currentsub) document.getElementById(this.currentsub).style.visibility = "hidden";

	this.currentsub = null;
}