function getRef (obj) {
	if(typeof obj == "string")
		obj = (document.getElementById) ? document.getElementById(obj) : document.all(obj);
	return obj;
}

function cnSwap (elm, nc) {
	getRef(elm).className = nc;
}

var preloadFlag = false;
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function preloadCatImages() {
	if (document.images) {
		cattree_top_over = newImage("http://www.childgarden.com/images/store/cattree_top_over.gif");
		preloadFlag = true;
	}
}

preloadCatImages();