function menuControl()
{
	this.popups = new Array();
	this.timer = '';

	oMenuRef = this;

	this.add = function(item)
	{
		this.popups.push(item);
	}

	this.hide_all = function()
	{
		this.timer = setTimeout("oMenuRef.hide()",500);
	}

	this.hide = function()
	{
		this.popups.each( function(item){
			$(item).style.display = 'none';
		});
	}

	this.show = function(id)
	{
		this.cancel_hide();
		this.hide();
		$(id).style.display = '';
	}

	this.cancel_hide = function()
	{
		clearTimeout(this.timer);
	}
}