	var arrPreloadImageNames = new Array("images/menu_home_on.jpg","images/menu_about_on.jpg", "images/menu_menu_on.jpg", "images/menu_special_on.jpg", "images/menu_gallery_on.jpg", "images/menu_press_on.jpg", "images/menu_location_on.jpg");
	var preloadImage = new Array();

	function preloadImages() {
		for (var i=0; i<arrPreloadImageNames.length; i++){
			preloadImage[i] = new Image();
			preloadImage[i].onload = function(){alert('preloaded ' + this.src);};
			preloadImage[i].src = arrPreloadImageNames[i];
		}
	}

	function findImage(imgName) { //v3.0
		var img = null;
		
		if(document.getElementById) {
			img = document.getElementById(imgName);
		}

		if(!img) {
			img = document[imgName];
		}

		if(!img && document.all) {
			img = document.all[imgName];
		}
		  
		return img;
	}

	 function swapImage(imageName,imageSrc) { //v3.0
		var img = findImage(imageName);
		
		if(img != null) {
			img.src = imageSrc;
		}
	}
