
		var preloaded = [];

	
		//for (var i = 1; i <= 6; i++) {
		    
		//	preloaded[i] = [loadImage(i + ".gif"), loadImage(i + "_over.gif")];
			//alert(preloaded[i][i]);
		//}

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

			//==========================================================================================
			// if supported, initialize dropdowns
			//==========================================================================================
			// 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 (DropDown.isSupported()) {
				
				//alert(DropDown.isSupported());
				DropDown.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.
				if(typeof(menu1) != "undefined"){
				    menu1.onactivate = function() { swapImage("navAboutAxia", "navAboutAxia", "Over") };
				    menu1.ondeactivate = function() { swapImage("navAboutAxia", "navAboutAxia", "") };
				}
				
				if(typeof(menu2) != "undefined"){
				    menu2.onactivate = function() { swapImage("navOurWork", "navOurWork", "Over") };
				    menu2.ondeactivate = function() { swapImage("navOurWork", "navOurWork", "") };
				}
				
				if(typeof(menu3) != "undefined"){
				    menu3.onactivate = function() { swapImage("navLeadership", "navLeadership", "Over") };
				    menu3.ondeactivate = function() { swapImage("navLeadership", "navLeadership", "") };
				}
				
				if(typeof(menu4) != "undefined"){
				    menu4.onactivate = function() { swapImage("navCareers", "navCareers", "Over") };
				    menu4.ondeactivate = function() { swapImage("navCareers", "navCareers", "") };		
				}
				
				if(typeof(menu5) != "undefined"){
				    menu5.onactivate = function() { swapImage("navContact", "navContact", "Over") };
				    menu5.ondeactivate = function() { swapImage("navContact", "navContact", "") };		
				}
			}
		}


		function loadImage(sFilename) {
			var img = new Image();
			img.src ="newImages/" + sFilename;
			
			return img;
		}


		function swapImage(imgName, sFilename, mouseEvent) {
			thisImgSrc = document.images[imgName].src
			
			if (thisImgSrc.indexOf("On") != -1){
			    
			    document.images[imgName].src = "newImages/" + sFilename + "On.gif"
			 }
			 else {
			    document.images[imgName].src = "newImages/" + sFilename + mouseEvent + ".gif"
				
			 }
			 
			
		}
		