


		
		var preloaded = [];

		// here is a lame preloading script i am putting in just for demonstration
		for (var i = 1; i <= 5; i++) {
			preloaded[i] = [loadImage(i+".gif"), loadImage(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() {
				
				document.images['button1'].src = "images/nav_02.gif";
				
				
				}
				menu1.ondeactivate = function() {
				document.images['button1'].src = "images/nav_02.gif";	
				
				
				}

				menu2.onactivate = function() { document.images['button2'].src = "images/nav_03.gif" };
				menu2.ondeactivate = function() {document.images['button2'].src = "images/nav_03.gif" };

				menu3.onactivate = function() { document.images['button3'].src = "images/nav_04.gif" };
				menu3.ondeactivate = function() {document.images['button3'].src = "images/nav_04.gif"};

				menu4.onactivate = function() {document.images['button4'].src = "images/nav_05.gif" };
				menu4.ondeactivate = function() {document.images['button4'].src = "images/nav_05.gif"};

				menu5.onactivate = function() {document.images['button5'].src = "images/nav_06.gif" };
				menu5.ondeactivate = function() {document.images['button5'].src = "images/nav_06.gif"};
				
			
				
			}
		}

		// this is a crappy example preloader. Use whichever one you want.
		function loadImage(sFilename) {
			var img = new Image();
			img.src ="images/nav_01" + sFilename;
			return img;
		}

		// this is a crappy example image swapper. Use whichever you want.
		function swapImage(imgName, sFilename) {
		document.images[imgName].src = sFilename;
		}

