function showSubMenu(element)
{
	element.firstChild.nextSibling.nextSibling.style.display = 'block';
	element.firstChild.style.color = '#9d0c15';
}

function hideSubMenu(element)
{
	element.firstChild.nextSibling.nextSibling.style.display = 'none';
	if( element.parentNode.parentNode.tagName == 'DIV' )
		element.firstChild.style.color = '#22a';
}

function toggleSubMenu(element)
{
	element_style = element.firstChild.nextSibling.nextSibling.style;
	if( element_style.display == 'block' )
		hideSubMenu(element);
	else
		showSubMenu(element);
}

