function unselectAllMenus()
{
	hideNavigationSubMenus();
	hideSubMenu();
	unselectMenuApoio();
	unselectMenuVertical();
}

/// <method name="unselectMenuVertical">
/// <summary>
/// Unselects the vertical menu option.
/// </summary>
/// </method>
function unselectMenuVertical()
{
	var current = document.getElementById( 'domMenu_NavigationMenuCurrent' );
	if ( undefined != current )
		current.id = '';
}

/// <method name="menuApoioClicked">
/// <summary>
/// Callback when the user clicks on a menu option. Performs the
/// following actions:
///  1. If a selected image is defined for this element, use it!
///  2. Disable the onOut/outOver handlers (so as to not too 
///  3. Resets the previous selected button (if any) to it's normal state
///  4. Sets the current item as the selected button
///  5. Disabled any selected vertical menu option
///  6. Executes the command!
/// </summary>
/// <param name="option" type="element">
/// Reference to IMG element.
/// </param>
/// </method>
function menuApoioClicked( option )
{
	option.onmouseout = "";
	option.onmouseover = "";
	
	var srcSelected = option.getAttribute( 'srcSelected' );
	if ( srcSelected != undefined )
		option.src = option.getAttribute( 'srcSelected' );
	else
		option.src = option.getAttribute( 'srcNormal' );
	
	var current = document.getElementById( 'menuApoioCurrent' );
	if ( current != undefined && current != option )
	{
		menuApoioOut( current );
		current.id = '';
	}
	
	option.id = 'menuApoioCurrent';
	unselectMenuVertical();
}

