// builds rollover arrays
if (document.images) {
	// precache all 'off' button images
	var offImgArray = new Array()
	offImgArray["auto"] = new Image(79,46)
	offImgArray["boat"] = new Image(79,46)
	offImgArray["rv"] = new Image(79,46)
	offImgArray["mh"] = new Image(79,46)
	offImgArray["trailer"] = new Image(79,46)
	offImgArray["misc"] = new Image(79,46)
	offImgArray["post"] = new Image(165,46)
	offImgArray["pay"] = new Image(165,46)

	// off image array -- set 'off' image path for each button
	offImgArray["auto"].src = "/images/carsoff.gif"
	offImgArray["boat"].src = "/images/boatoff.gif"
	offImgArray["rv"].src = "/images/rvsoff.gif"
	offImgArray["mh"].src = "/images/mhoff.gif"
	offImgArray["trailer"].src = "/images/trailersoff.gif"
	offImgArray["misc"].src = "/images/miscoff.gif"
	offImgArray["post"].src = "/images/postloadoff.gif"
	offImgArray["pay"].src = "/images/paymentoptionoff.gif"

	// precache all 'on' button images
	var onImgArray = new Array()
	onImgArray["auto"] = new Image(79,46)
	onImgArray["boat"] = new Image(79,46)
	onImgArray["rv"] = new Image(79,46)
	onImgArray["mh"] = new Image(79,46)
	onImgArray["trailer"] = new Image(79,46)
	onImgArray["misc"] = new Image(79,46)
	onImgArray["post"] = new Image(165,46)
	onImgArray["pay"] = new Image(165,46)

	// off image array -- set 'on' image path for each button
	onImgArray["auto"].src = "/images/carson.gif"
	onImgArray["boat"].src = "/images/boatson.gif"
	onImgArray["rv"].src = "/images/rvson.gif"
	onImgArray["mh"].src = "/images/mhon.gif"
	onImgArray["trailer"].src = "/images/trailerson.gif"
	onImgArray["misc"].src = "/images/miscon.gif"
	onImgArray["post"].src = "/images/postloadon.gif"
	onImgArray["pay"].src = "/images/paymentoptionon.gif"

}

// functions that swap images & status bar
function imageOn(imgName) {
	if (document.images) {
		document.images[imgName].src = onImgArray[imgName].src
	}
}

function imageOff(imgName) {
	if (document.images) {
		document.images[imgName].src = offImgArray[imgName].src
	}
}

function setMsg(msg) {
	window.status = msg
	return true
}
