

		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() {ChangeNav('menu1');};
				menu1.ondeactivate = function() {ClearNav('menu1');};

				menu2.onactivate = function() {ChangeNav('menu2');};
				menu2.ondeactivate = function() {ClearNav('menu2');};

				menu3.onactivate = function() {ChangeNav('menu3');};
				menu3.ondeactivate = function() {ClearNav('menu3');};

				menu4.onactivate = function() {ChangeNav('menu4');};
				menu4.ondeactivate = function() {ClearNav('menu4');};

				menu7.onactivate = function() {ChangeNav('menu7');};
				menu7.ondeactivate = function() {ClearNav('menu7');};

				menu8.onactivate = function() {ChangeNav('menu8');};
				menu8.ondeactivate = function() {ClearNav('menu8');};

				menu9.onactivate = function() {ChangeNav('menu9');};
				menu9.ondeactivate = function() {ClearNav('menu9');};

				menu10.onactivate = function() {ChangeNav('menu10');};
				menu10.ondeactivate = function() {ClearNav('menu10');};

				menu11.onactivate = function() {ChangeNav('menu11');};
				menu11.ondeactivate = function() {ClearNav('menu11');};

				//menu5.onactivate = function() { swapImage("button5", preloaded[5][1].src) };
				//menu5.ondeactivate = function() { swapImage("button5", preloaded[5][0].src) };
			
			}
		}

		// this is a crappy example preloader. Use whichever one you want.
		function loadImage(sFilename) {
			var img = new Image();
			//img.src ="http://content.tsmm.net/aston/images/" + sFilename;
			return img;
		}

		// this is a crappy example image swapper. Use whichever you want.
		function swapImage(imgName, sFilename) {
			document.images[imgName].src = sFilename;
		}