
// This breaks the page out of frames from another site.

if (top.location != self.location) {
        top.location = self.location
}


// Define all the images and states for rollovers.

if (document.images) {

// _On_ states

  mediaOn = new Image();
  mediaOn.src = "../images/action/b_media_on.gif";

  peaceOn = new Image();
  peaceOn.src = "../images/action/b_peace_on.gif";

  choiceOn = new Image();
  choiceOn.src = "../images/action/b_choice_on.gif";

  voteOn = new Image();
  voteOn.src = "../images/action/b_vote_on.gif";

 
// _Off_ states


  mediaOff = new Image();
  mediaOff.src = "../images/action/b_media.gif";

  peaceOff = new Image();
  peaceOff.src = "../images/action/b_peace.gif";

  choiceOff = new Image();
  choiceOff.src = "../images/action/b_choice.gif";
  
  voteOff = new Image();
  voteOff.src = "../images/action/b_vote.gif"; 
 
}

// This function performs all rollovers on the page.  Pass desired image state and image name.

function rotate(state,imageName) {
        if (document.images) {
                document.images[imageName].src = eval(state + ".src");
        }
}


// Make sure it is called with an _onload_ in the body tag.

function ImagePreLoad() {

  if (document.images) {

    preLoad1 = new Image();
    preLoad1.src = "../images/action/b_media_on.gif";

	preLoad2 = new Image();
    preLoad2.src = "../images/action/b_peace_on.gif";

	preLoad3 = new Image();
    preLoad3.src = "../images/action/b_choice_on.gif";

	preLoad4 = new Image();
    preLoad4.src = "../images/action/b_vote_on.gif";

	
  }

}
