//
//
//
function ShowSubMenu( theSubMenuID )
{
	//
	//	Wenn es ein "StandardSubMenu" gibt, muss es ausgeblendet werden,
	//	falls ein >>anderes<< SubMenu gezeigt werden soll.
	//
	for( var idx = 1; idx <= 5; idx++ )
	{
		// if( theStandardSubMenuID == "'0" + idx + "'" )
		HideSubMenu( "0" + idx, true );
	}

	/*
	if( theStandardSubMenuID && (theSubMenuID != theStandardSubMenuID) )
	{
		HideSubMenu( theStandardSubMenuID, true );
	}
	*/

	//
	//	Finden und Anzeigen des SubMenus mit der ID "theSubMenuID"
	//
	theSubMenu = document.getElementById( "sub_menu_" + theSubMenuID );
	if( ! theSubMenu ) return;

	theSubMenu.style.display    = 'block';
	theSubMenu.style.visibility = 'visible';
}

//
//
//
function HideSubMenu( theSubMenuID, isForced )
{
	//
	//	Wenn nicht erzwungenes Ausblenden vorliegt:
	//	Wenn es ein "StandardSubMenu" gibt, blende dieses nicht aus.
	//
	// if( !isForced && theStandardSubMenuID && (theSubMenuID == theStandardSubMenuID) ) return;

	//
	//	Finden und Ausblenden des SubMenus mit der ID "theSubMenuID"
	//
	theSubMenu = document.getElementById( "sub_menu_" + theSubMenuID );
	if( ! theSubMenu ) return;

	theSubMenu.style.display    = 'none';
	theSubMenu.style.visibility = 'hidden';

	//
	//	Wenn es ein "StandardSubMenu" gibt, zeige es an,
	//	wenn ein anderes SubMenu gerade ausgeblendet worden war.
	// if( theStandardSubMenuID && (theSubMenuID != theStandardSubMenuID) ) ShowSubMenu( theStandardSubMenuID );

}

//
//
//
/*
function HideSubMenuOnTime( theSubMenuID )
{
	window.setTimeout( "HideSubMenu('" + theSubMenuID + "')", 1000 );
	window.setTimeout( "ShowSubMenu('" + theStandardSubMenuID + "')", 1000 );
}
*/
