﻿function init() {
			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.
				menu1.onactivate = function() { document.getElementById("one").className = "hover"; };
				menu1.ondeactivate = function() { document.getElementById("one").className = ""; };

				menu2.onactivate = function() { document.getElementById("two").className = "hover"; };
				menu2.ondeactivate = function() { document.getElementById("two").className = ""; };

				//menu3.onactivate = function() { document.getElementById("three").className = "hover"; };
				//menu3.ondeactivate = function() { document.getElementById("three").className = ""; };

				//menu4.onactivate = function() { document.getElementById("four").className = "hover"; };
				//menu4.ondeactivate = function() { document.getElementById("four").className = ""; };
				document.getElementById("three").onmouseover = function() {
					ms.hideCurrent();
					this.className = "hover";
				}

				document.getElementById("three").onmouseout = function() { this.className = ""; }
			}
}
