function showMenuItems(subItemsContainerId, show)
{
	// test
	if (null == show)
	{
		return;
	}

	// get sub items container
	var subItemsContainer = document.getElementById(subItemsContainerId);
	if (null == subItemsContainer)
	{
		return;
	}
	
	// test if first time
	if (null == subItemsContainer.expanded)
	{
		subItemsContainer.expanded = show;
	}
	else
	{
		// already has the required state
		if (subItemsContainer.expanded == show)
		{
			return;
		}
	}
	
	// show/hide
	if (true == show)
	{
		subItemsContainer.expanded = show;
		subItemsContainer.style.visibility = 'visible';
	}
	else
	{
		subItemsContainer.expanded = show;
		subItemsContainer.style.visibility = 'hidden';
	}
}
