		var preloaded = [];

		// here is a lame preloading script i am putting in just for demonstration
		for (var i = 0; i <= 5; i++) {
			preloaded[i] = [loadImage(i + "-0.gif"), loadImage(i + "-1.gif")];
		}

		function init() {
			// whatever stuff you need to do onload goes here.

			//==========================================================================================
			// if supported, initialize graniteDropDowns
			//==========================================================================================
			// 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 (lehrerDropDown.isSupported()) {
				lehrerDropDown.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("button1", 'menu_files/aboutus_over.jpg') };
				menu1.ondeactivate = function() { swapImage("button1", 'menu_files/aboutus.jpg') };

				menu2.onactivate = function() { swapImage("button2", 'menu_files/products_over.jpg') };
				menu2.ondeactivate = function() { swapImage("button2",'menu_files/products.jpg') };
			
				menu3.onactivate = function() { swapImage("button3", 'menu_files/services_over.jpg') };
				menu3.ondeactivate = function() { swapImage("button3", 'menu_files/services.jpg') };

				menu4.onactivate = function() { swapImage("button4", 'menu_files/principals_over.jpg') };
				menu4.ondeactivate = function() { swapImage("button4", 'menu_files/principals.jpg') };
				
				menu5.onactivate = function() { swapImage("button5", 'menu_files/research_over.jpg') };
				menu5.ondeactivate = function() { swapImage("button5", 'menu_files/research.jpg') };

				menu6.onactivate = function() { swapImage("button6", 'menu_files/news_over.jpg') };
				menu6.ondeactivate = function() { swapImage("button6", 'menu_files/news.jpg') };

				menu7.onactivate = function() { swapImage("button7", 'menu_files/careers_over.jpg') };
				menu7.ondeactivate = function() { swapImage("button7", 'menu_files/careers.jpg') };
				
				menu8.onactivate = function() { swapImage("button8", 'menu_files/contact_over.jpg') };
				menu8.ondeactivate = function() { swapImage("button8", 'menu_files/contact.jpg') };
				
				}
		}

		
		function loadImage(sFilename) {
			var img = new Image();
			img.src ="images/nav/" + sFilename;
			return img;
		}

		
		function swapImage(imgName, sFilename) {
			document.images[imgName].src = sFilename;
		}