// JavaScript Document - common.js

function swapButton(num,obj) {
	var targetImg = document.getElementById("homeButtons");
	
	targetImg.src = "images/home_image_buttons" + num + ".jpg";
	
	obj.onmouseout = function() {
		targetImg.src = "images/home_image_buttons1.jpg";
	}
}

function menuHover(obj) {
	if (obj.className == "menuItem") {
		obj.className = "menuItem menuItemCurrent";
		
		obj.onmouseout = function() {
			this.className = "menuItem";
		}
	}
}

// Example:
// simplePreload( '01.gif', '02.gif' ); 
function simplePreload() { 
	var args = simplePreload.arguments;
	document.imageArray = new Array(args.length);
	
	for(var i=0; i<args.length; i++) {
		document.imageArray[i] = new Image;
		document.imageArray[i].src = args[i];
	}
}

