
function showSubMenu(name) {

	parentMenu = $('menu-' + name);
	subMenu = $('submenu-' + name);
	
	// Get the offset from the parent
	//parentOffset = Element.cumulativeOffset(parentMenu)[0];
	
	// Show the submenu div
	subMenu.show();
	
	// Highlight the parent
	highlightParent(parentMenu);
}

function hideSubMenu(name) {
	$('submenu-' + name).hide();
	dimParent('menu-' + name);
}

function highlightParent(id) {
	$(id).addClassName('highlight');
}

function dimParent(id) {
	$(id).removeClassName('highlight');
}
