// pre-cache all 'off' button images
var offImgArray = new Array()
offImgArray[0] = new Image(438,97)
offImgArray[1] = new Image(162,117)
offImgArray[2] = new Image(136,80)
offImgArray[3] = new Image(136,80)
offImgArray[4] = new Image(136,80)
offImgArray[5] = new Image(136,80)
offImgArray[6] = new Image(136,80)
offImgArray[7] = new Image(136,80)
offImgArray[8] = new Image(136,80)

// off image array -- set 'off' image path for each button
offImgArray[0].src = "graphics/title.jpg"
offImgArray[1].src = "graphics/title2.jpg"
offImgArray[2].src = "graphics/home_off.jpg"
offImgArray[3].src = "graphics/prod_off.jpg"
offImgArray[4].src = "graphics/sales_off.jpg"
offImgArray[5].src = "graphics/rent_off.jpg"
offImgArray[6].src = "graphics/customers_off.jpg"
offImgArray[7].src = "graphics/service_off.jpg"
offImgArray[8].src = "graphics/contact_off.jpg"

// pre-cache all 'on' button images
var onImgArray = new Array()
onImgArray[0] = new Image(438,97)
onImgArray[1] = new Image(162,117)
onImgArray[2] = new Image(136,80)
onImgArray[3] = new Image(136,80)
onImgArray[4] = new Image(136,80)
onImgArray[5] = new Image(136,80)
onImgArray[6] = new Image(136,80)
onImgArray[7] = new Image(136,80)
onImgArray[8] = new Image(136,80)

// on image array -- set 'on' image path for each button
onImgArray[0].src = "graphics/title.jpg"
onImgArray[1].src = "graphics/title2.jpg"
onImgArray[2].src = "graphics/home_on.jpg"
onImgArray[3].src = "graphics/prod_on.jpg"
onImgArray[4].src = "graphics/sales_on.jpg"
onImgArray[5].src = "graphics/rent_on.jpg"
onImgArray[6].src = "graphics/customers_on.jpg"
onImgArray[7].src = "graphics/service_on.jpg"
onImgArray[8].src = "graphics/contact_on.jpg"

// functions that swap images and status bar
function imageOn(i) {
    document.images[i].src = onImgArray[i].src
}
function imageOff(i) {
    document.images[i].src = offImgArray[i].src
}
function setMsg(msg) {
    window.status = msg
    return true
}

