function ShowSMenu(Id)
		{
		OldId = Id;
		
		var CurrentObj;
		CurrentObj = document.getElementById('SMenu_' + Id);
		if (CurrentObj)
			{
			CurrentObj.className = 'MyMenuDivSMenuSel';
			}
	
		}
	function HideSMenu(Id,Back)
		{
		if ((OldId == -1) || (OldId != Id))
			{
			//comming after timer, Id different from current selected : hide
			var CurrentObj;
			CurrentObj = document.getElementById('SMenu_' + Id);
			if (CurrentObj)
				{
				CurrentObj.className = 'MyMenuDivSMenu';
				}
			CurrentObj = document.getElementById('Menu' + Id);
			if (CurrentObj)
				{
				if (CurrentObj.className == 'MyMenuNavbarL0Hover')
					{
					CurrentObj.className = 'MyMenuNavbarL0';
					}
				}
			CurrentObj = document.getElementById('TDMenu' + Id);
			if (CurrentObj)
				{
				if (CurrentObj.className == 'MyMenuNavbarL0Hover')
					{
					CurrentObj.className = 'MyMenuNavbarL0';
					}
				}
			if (parseInt(OldId) + 1 != parseInt(Id))
				{
				//new current is not the menu on the left : hide left td background
				CurrentObj = document.getElementById('Separator' + Id);
				if (CurrentObj)
					{
					if (CurrentObj.className == 'MyMenuNavbarL0Hover')
						{
						CurrentObj.className = 'MyMenuNavbarL0';
						}
					}
				}
			if (parseInt(OldId) != parseInt(Id) + 1)
				{
				//new current is not the menu on the right : hide left td background
				TempId = parseInt(Id) + 1;
				CurrentObj = document.getElementById('Separator' + TempId);
				if (CurrentObj)
					{
					if (CurrentObj.className == 'MyMenuNavbarL0Hover')
						{
						CurrentObj.className = 'MyMenuNavbarL0';
						}
					}
				}
			}
		else
			{
			if (Back==1)
				{
				//coming after timer and current is same cancel timer hide
				}
			else
				{
				//leaving current menu : empty variable and set timer to hide in X ms
				OldId = -1;
				window.setTimeout('HideSMenu(' + Id + ',1);',100);
				}
			}
		}