// This breaks the page out of frames from another site.

if (top.location != self.location) {
        top.location = self.location
}


// ON STATES //
if (document.images) {

  bioon = new Image();
  bioon.src = "../images/nav/b_bio_on.gif";

  fromwaterson = new Image();
  fromwaterson.src = "../images/nav/b_fromwaters_on.gif";

  allegoryon = new Image();
  allegoryon.src = "../images/nav/b_allegory_on.gif";

  installationson = new Image();
  installationson.src = "../images/nav/b_installations_on.gif";

  orderingon = new Image();
  orderingon.src = "../images/nav/b_ordering_on.gif";

 
// ON STATES //

  biooff = new Image();
  biooff.src = "../images/nav/b_bio.gif";

  fromwatersoff = new Image();
  fromwatersoff.src = "../images/nav/b_fromwaters.gif";

  allegoryoff = new Image();
  allegoryoff.src = "../images/nav/b_allegory.gif";

  installationsoff = new Image();
  installationsoff.src = "../images/nav/b_installations.gif";

  orderingoff = new Image();
  orderingoff.src = "../images/nav/b_ordering.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");
  }
}

// PRE-LOAD IMAGES //
function ImagePreLoad() {
  if (document.images) {

    preLoad1 = new Image();
    preLoad1.src = "../images/nav/b_bio_on.gif";

    preLoad2 = new Image();
    preLoad2.src = "../images/nav/b_fromwaters_on.gif";

    preLoad3 = new Image();
    preLoad3.src = "../images/nav/b_allegory_on.gif";

    preLoad4 = new Image();
    preLoad4.src = "../images/nav/b_installations_on.gif";

    preLoad5 = new Image();
    preLoad5.src = "../images/nav/b_ordering_on.gif";

   }
}
