

		var preloaded = [];

		// here is a lame preloading script i am putting in just for demonstration
		for (var i = 1; i <= 6; i++) {
			//preloaded[i] = [loadImage("e" + i + "-0.gif"), loadImage("e" + i + "-1.gif")];
		}

		function init() {
			// whatever stuff you need to do onload goes here.

			//==========================================================================================
			// if supported, initialize mtdropdowns
			//==========================================================================================
			// 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 (mtDropDown.isSupported()) {
				mtDropDown.initialize();

				// hook all the image 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() { img1.src='Images/LinkO1.gif'; };
				menu1.ondeactivate = function() { img1.src='Images/LinkN1.gif'; };

				menu2.onactivate = function() { img2.src='Images/LinkO2.gif'; };
				menu2.ondeactivate = function() { img2.src='Images/LinkN2.gif'; };

				menu3.onactivate = function() { img3.src='Images/LinkO3.gif'; };
				menu3.ondeactivate = function() { img3.src='Images/LinkN3.gif'; };

				menu4.onactivate = function() { img4.src='Images/LinkO4.gif'; };
				menu4.ondeactivate = function() { img4.src='Images/LinkN4.gif'; };

				menu5.onactivate = function() { img5.src='Images/LinkO5.gif'; };
				menu5.ondeactivate = function() { img5.src='Images/LinkN5.gif'; };

				menu6.onactivate = function() { img6.src='Images/LinkO6.gif'; };
				menu6.ondeactivate = function() { img6.src='Images/LinkN6.gif'; };

				menu7.onactivate = function() { img7.src='Images/LinkO7.gif'; };
				menu7.ondeactivate = function() { img7.src='Images/LinkN7.gif'; };

				menu8.onactivate = function() { img8.src='Images/LinkO8.gif'; };
				menu8.ondeactivate = function() { img8.src='Images/LinkN8.gif'; };

			  /*menu2.onactivate = function() { swapImage("button2", preloaded[2][1].src) };
				menu2.ondeactivate = function() { swapImage("button2", preloaded[2][0].src) };

				menu3.onactivate = function() { swapImage("button3", preloaded[3][1].src) };
				menu3.ondeactivate = function() { swapImage("button3", preloaded[3][0].src) };

				menu4.onactivate = function() { swapImage("button4", preloaded[4][1].src) };
				menu4.ondeactivate = function() { swapImage("button4", preloaded[4][0].src) };

				menu5.onactivate = function() { swapImage("button5", preloaded[5][1].src) };
				menu5.ondeactivate = function() { swapImage("button5", preloaded[5][0].src) };
				*/
			}
		}

