var openedItem = []
function switchDetail(id, level)
	{
	if (document.getElementById(id).style.display == "none")
		{
		document.getElementById(id).style.display = "block"
		if (openedItem[level] != null)
			{
			document.getElementById(openedItem[level]).style.display = "none"
			}
		openedItem[level] = id
		}
	else
		{
		document.getElementById(id).style.display = "none"
		openedItem[level] = null
		}
	}

function openDetail(id)
	{
	document.getElementById(id).style.display = "block"
	document.getElementById(id).status = "open"
	document.getElementById(id).hide = function ()
		{
		if (this.status == "closing")
			{
			this.style.display = "none"
			this.status = "close"
			}
		}
	}

function closeDetail(id)
	{
	document.getElementById(id).status = "closing"
	hideTimer = setTimeout("document.getElementById('" + id + "').hide()",10)
	}