			function XShowHide (theLayer, isVisible)
			{
				if ((theLayer) && (theLayer.style))
				{
					if ((theLayer.style.visibility != 'visible') && (isVisible))
					{
						theLayer.style.visibility = 'visible';
						theLayer.style.display = 'block';
					}
					else if ((theLayer.style.visibility == 'visible') && (!isVisible))
					{
						theLayer.style.visibility = 'hidden';
						theLayer.style.display = 'none';
					}
				}
			}

			theShowIndex = -1;
			theShowOver = 0;
			
			var	isToHide = 0;
			
			function XShowMenu(theIndex, theOver)
			{
				if (((isToHide == 1) || (theIndex != 0)) && ((theShowIndex != theIndex) || (theShowOver != theOver)))
				{
					XShowHide (document.getElementById('TopMenu' + theShowIndex), 	0);
					XShowHide (document.getElementById('TopMenu' + theIndex), 		1);
	
					XShowHide (document.getElementById('SubMenu' + theShowIndex + theShowOver), 	0);
					XShowHide (document.getElementById('SubMenu' + theIndex + theOver), 			1);
			
					theShowIndex 	= theIndex;
					theShowOver 	= theOver;
				}
				isToHide = 0;
			}
			function XHideMenu()
			{
				isToHide = 1;
				setTimeout ("XShowMenu(0, 0)", 50);
			}
				function GoToSponsor 		()			{	window.open ('sponsor.xhtml','Sponsor','titlebar=no,toolbar=no,scrollbars=no,resize=no,width=500,height=250');		}
	
