		var preloaded = [];
		
		preloaded[1] = [loadImage("buttom_1_1.jpg"), loadImage("buttom_1.jpg")];
		preloaded[2] = [loadImage("buttom_2_1.jpg"), loadImage("buttom_2.jpg")];
		preloaded[3] = [loadImage("buttom_3_1.jpg"), loadImage("buttom_3.jpg")];
		preloaded[4] = [loadImage("buttom_4_1.jpg"), loadImage("buttom_4.jpg")];
		preloaded[5] = [loadImage("buttom_5_1.jpg"), loadImage("buttom_5.jpg")];

		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() { swapImage("buttom_1", preloaded[1][1].src) };
				menu1.ondeactivate = function() { swapImage("buttom_1", preloaded[1][0].src) };

				menu2.onmouseover = function() { swapImage("buttom_2", preloaded[2][1].src) };
				menu2.onmouseout = function() { swapImage("buttom_2", preloaded[2][0].src) };

				menu3.onactivate = function() { swapImage("buttom_3", preloaded[3][1].src) };
				menu3.ondeactivate = function() { swapImage("buttom_3", preloaded[3][0].src) };
				
				menu4.onmouseover = function() { swapImage("buttom_4", preloaded[4][1].src) };
				menu4.onmouseout = function() { swapImage("buttom_4", preloaded[4][0].src) };
				
				menu5.onmouseover = function() { swapImage("buttom_5", preloaded[5][1].src) };
				menu5.onmouseout = function() { swapImage("buttom_5", preloaded[5][0].src) };
				*/
			}
		}

		// this is a crappy example preloader. Use whichever one you want.
		function loadImage(sFilename) {
			var img = new Image();
			img.src ="../images/" + sFilename;
			return img;
		}

		// this is a crappy example image swapper. Use whichever you want.
		function swapImage(imgName, sFilename) {
			document.images[imgName].src = sFilename;
		}