	function initAButton(buttonID)
	{

		menuID = "menu" + buttonID ; 
		menu_ID = "menu_" + buttonID ; 
		var theButton = document.getElementById( "menu" + buttonID) ;
		if(window.menuID){ //There is at least one submenu
			menuID.onactivate = function() { theButton.className = "hover"; };
			menuID.ondeactivate = function() { theButton.className = ""; };
			}
		else {	// we get here if there are NO SUBMENUS 

			theButton.onmouseover = function() {
				ms.hideCurrent();
				this.className = "hover";
				}
			theButton.onmouseout = function() { this.className = ""; }; 
			
			}
		}
	
	function transMenuInit() {
			
			//==========================================================================================
			// if supported, initialize TransMenus
			//==========================================================================================
			// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
			// This is better than server-side checking because it will also catch browsers which would
			// normally support the menus but have javascript disabled.
			//
			// If supported, call initialize() and then hook whatever image rollover code you need to do
			// to the .onactivate and .ondeactivate events for each menu.
			//==========================================================================================
			if (TransMenu.isSupported()) {
				TransMenu.initialize();

				// hook all the highlight swapping of the main toolbar to menu activation/deactivation
				// instead of simple rollover to get the effect where the button stays hightlit until
				// the menu is closed.
				for (i=1; i<10; i++){
					initAButton(i);
				}
			}
		}

