function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		imgpath = "images/";
		b1o = newImage(imgpath + "b1o.gif");
		b1b2o = newImage(imgpath + "b1b2o.gif");
		b2o = newImage(imgpath + "b2o.gif");
		b3o = newImage(imgpath + "b3o.gif");
		b3b4o = newImage(imgpath + "b3b4o.gif");
		b4o = newImage(imgpath + "b4o.gif");
		b5o = newImage(imgpath + "b5o.gif");
		b5b6o = newImage(imgpath + "b5b6o.gif");
		b6o = newImage(imgpath + "b6o.gif");
		b7o = newImage(imgpath + "b7o.gif");
		b8b7o = newImage(imgpath + "b8b7o.gif");
		b8o = newImage(imgpath + "b8o.gif");
		preloadFlag = true;
	}
}