// javascript image roll overs -- arcww.
// for Practical Money Skills - Main Navigation.


//for consumers
if (document.images) {

  imageAon = new Image();
  imageAon.src = "images/header/button-consumer-on.gif";

  imageAoff = new Image();
  imageAoff.src = "images/header/button-consumer.gif";

}

//for teachers
if (document.images) {

  imageBon = new Image();
  imageBon.src = "images/header/button-teachers-on.gif";

  imageBoff = new Image();
  imageBoff.src = "images/header/button-teachers.gif";

}

//for students

if (document.images) {

  imageCon = new Image();
  imageCon.src = "images/header/button-students-on.gif";

  imageCoff = new Image();
  imageCoff.src = "images/header/button-students.gif";

}



function turnOn(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}
