function ShowMenu( item ) {
	var SubNavigation = document.getElementById( "SubNavigation" );

	doHideSubMenus();
	ShowSubMenu( item );

	with( SubNavigation.style ) {
		overflow = "visible";
	}

}

function HideSubMenus() {
	clearTimeout( window.SubMenuTO );
	window.SubMenuTO = setTimeout( "doHideSubMenus()", 100 );
}

function doHideSubMenus() {
	clearTimeout( window.SubMenuTO );
	var SubNavigation = document.getElementById( "SubNavigation" );
	
	for( var SubMenu = SubNavigation.firstChild;SubMenu; SubMenu = SubMenu.nextSibling ) {
		if( SubMenu.style ) {
			with( SubMenu.style ) {
				width = "0px";
				height = "0px";
				padding = "0";
			}
		}
	}
	
	window.Item = null;
}

function ShowSubMenu( Item ) {
	window.Item = Item;
	doShowSubMenu();
}

function doShowSubMenu() {
	clearTimeout( window.SubMenuTO );

	if( !window.Item ) return;
	
	var SubItem = document.getElementById( window.Item.firstChild.title );
	if( !SubItem ) return;
	
	with( SubItem.style ) {
		left = window.Item.offsetLeft + "px";
		width = "";
		height = "";
		padding = "10px 8px 19px 0px";
	}
	
	if( SubItem.clientWidth < window.Item.clientWidth ) SubItem.style.width = window.Item.clientWidth + "px";
}

