var lastId;

function showSubmenu(id)
{
	var lastClicked = document.getElementById(lastId);

	if (lastClicked != null)
		lastClicked.style.display = "none";

	var justClicked  = document.getElementById(id);
	justClicked.style.display = "block";

	lastId = id;
}
