<!-- // Hide from older browsers
// This script will precache the images used in the header for the rollover effect.
// It also sets up the functions necessary to swap the images and set the status
// bar message.  For the swap functions to work, it is imperitive to name the
// images using the name attribute within the img tag.

// Precache the off images.
var offImages = new Array()
offImages[0] = new Image(141, 30)
offImages[1] = new Image(141, 30)
offImages[2] = new Image(141, 30)
offImages[3] = new Image(141, 30)
offImages[4] = new Image(141, 30)
offImages[5] = new Image(141, 30)
offImages[0].src = "http://www.phs.d211.org/images/Header/Old/Home-Off.jpg"
offImages[1].src = "http://www.phs.d211.org/images/Header/Old/Academics-Off.jpg"
offImages[2].src = "http://www.phs.d211.org/images/Header/Old/Activities-Off.jpg"
offImages[3].src = "http://www.phs.d211.org/images/Header/Old/Athletics-Off.jpg"
offImages[4].src = "http://www.phs.d211.org/images/Header/Old/Media-Center-Off.jpg"
offImages[5].src = "http://www.phs.d211.org/images/Header/Old/News-Info-Off.jpg"

// Precache the on images.
var onImages = new Array()
onImages[0] = new Image(141, 30)
onImages[1] = new Image(141, 30)
onImages[2] = new Image(141, 30)
onImages[3] = new Image(141, 30)
onImages[4] = new Image(141, 30)
onImages[5] = new Image(141, 30)
onImages[0].src = "http://www.phs.d211.org/images/Header/Old/Home-On.jpg"
onImages[1].src = "http://www.phs.d211.org/images/Header/Old/Academics-On.jpg"
onImages[2].src = "http://www.phs.d211.org/images/Header/Old/Activities-On.jpg"
onImages[3].src = "http://www.phs.d211.org/images/Header/Old/Athletics-On.jpg"
onImages[4].src = "http://www.phs.d211.org/images/Header/Old/Media-Center-On.jpg"
onImages[5].src = "http://www.phs.d211.org/images/Header/Old/News-Info-On.jpg"

// imageOff() will load the OFF image.  button is the image name, for example
// document.homeButton is the name of the image for the Home button.  i is the
// position in the offImages array of the off image.
function imageOff(button, i) {
  button.src = offImages[i].src
}

// imageOn() will load the ON image.  button is the image name, for example
// document.homeButton is the name of the image for the Home button.  i is the
// position in the onImages array of the on image.
function imageOn(button, i) {
  button.src = onImages[i].src
}

// setMsg() will set the message in the status bar.
function setMsg(msg) {
  window.status = msg
  return true
}
// End hide -->