function preload(imgSrc) {
	img = new Image();
	img.src = imgSrc;
	return img;
}

// swapImg - swaps an image for another that has already been preloaded.
function swapImg(imgName, preloadedImg) {
	if (document[imgName]) {
		document[imgName].src	= preloadedImg.src;
	}
}

