if (document.images) {
// precache all 'off' button images
var offImgArray=new Array()
offImgArray["home"] = new Image(115,40)
offImgArray["schedule"] = new Image(140,40)
offImgArray["bios"] = new Image(115,40)
offImgArray["photos"] = new Image(140,40)
offImgArray["music"] = new Image(140,40)
offImgArray["contact"] = new Image(140,40)
offImgArray["links"] = new Image(140,40)
offImgArray["store"] = new Image(140,40)


// off image array -- set 'off' image path for each button
offImgArray["home"].src = "images/buttons/home.gif"
offImgArray["schedule"].src = "images/buttons/schedule.gif"
offImgArray["bios"].src = "images/buttons/bios.gif"
offImgArray["photos"].src = "images/buttons/photos.gif"
offImgArray["music"].src = "images/buttons/music.gif"
offImgArray["contact"].src = "images/buttons/contact.gif"
offImgArray["links"].src = "images/buttons/links.gif"
offImgArray["store"].src = "images/buttons/store.gif"


// precache all 'on' button images
var onImgArray=new Array()
onImgArray["home"] = new Image(115,40)
onImgArray["schedule"] = new Image(140,40)
onImgArray["bios"] = new Image(115,40)
onImgArray["photos"] = new Image(140,40)
onImgArray["music"] = new Image(140,40)
onImgArray["contact"] = new Image(140,40)
onImgArray["links"] = new Image(140,40)
onImgArray["store"] = new Image(140,40)


// on image array -- set 'on' image path for each button
onImgArray["home"].src = "images/buttons/home_down.gif"
onImgArray["schedule"].src = "images/buttons/schedule_down.gif"
onImgArray["bios"].src = "images/buttons/bios_down.gif"
onImgArray["photos"].src = "images/buttons/photos_down.gif"
onImgArray["music"].src = "images/buttons/music_down.gif"
onImgArray["contact"].src = "images/buttons/contact_down.gif"
onImgArray["links"].src = "images/buttons/links_down.gif"
onImgArray["store"].src = "images/buttons/store_down.gif"
}

// functions that swap images
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
	}
}