///////////////////////////////////////////////////////////////////////////////
// These are for rollovers											         //
///////////////////////////////////////////////////////////////////////////////


if (document.images) {
 // These are for the main navigation rollovers.
  homeOn = new Image();
  homeOn.src = "../images/nav/nav_home_over.gif";
  homeOff = new Image();
  homeOff.src = "../images/nav/nav_home.gif";
  aboutOn = new Image();
  aboutOn.src = "../images/nav/nav_about_over.gif";
  aboutOff = new Image();
  aboutOff.src = "../images/nav/nav_about.gif";
  projectsOn = new Image();
  projectsOn.src = "../images/nav/nav_projects_over.gif";
  projectsOff = new Image();
  projectsOff.src = "../images/nav/nav_projects.gif";
  howhelpOn = new Image();
  howhelpOn.src = "../images/nav/nav_how_help_over.gif";
  howhelpOff = new Image();
  howhelpOff.src = "../images/nav/nav_how_help.gif";
  donorsOn = new Image();
  donorsOn.src = "../images/nav/nav_donors_over.gif";
  donorsOff = new Image();
  donorsOff.src = "../images/nav/nav_donors.gif";
  linksOn = new Image();
  linksOn.src = "../images/nav/nav_links_over.gif";
  linksOff = new Image();
  linksOff.src = "../images/nav/nav_links.gif";
  eventsOn = new Image();
  eventsOn.src = "../images/nav/nav_events_over.gif";
  eventsOff = new Image();
  eventsOff.src = "../images/nav/nav_events.gif";
  contactOn = new Image();
  contactOn.src = "../images/nav/nav_contact_over.gif";
  contactOff = new Image();
  contactOff.src = "../images/nav/nav_contact.gif";

// This is for the MP3 Audio button rollovers.
  audioOn = new Image();
  audioOn.src = "../images/buttons/but_mp3audioover.gif";
  audioOff = new Image();
  audioOff.src = "../images/buttons/but_mp3audio.gif";

// These are for the E-Newsletter buttons on the Contact Us page.
  newsletterSignupOn = new Image();
  newsletterSignupOn.src = "../images/buttons/but_newsletter_over.gif";
  newsletterSignupOff = new Image();
  newsletterSignupOff.src = "../images/buttons/but_newsletter.gif";
  newsletterArchiveOn = new Image();
  newsletterArchiveOn.src = "../images/buttons/but_newsletter_archive_over.gif";
  newsletterArchiveOff = new Image();
  newsletterArchiveOff.src = "../images/buttons/but_newsletter_archive.gif";
}

function imgOn(imageName) {
  if (document.images) {
    document [imageName].src = eval(imageName + "On.src")
  }
}

function imgOff(imageName) {
  if (document.images) {
    document [imageName].src = eval(imageName + "Off.src")
  }
}

///////////////////////////////////////////////////////////////////////////////
// Window pop-up functions                                                   //
///////////////////////////////////////////////////////////////////////////////

// This is the popup window for the Custom Audio page from links on the home page only.
function setup()
{
  window.open('pages/setup.html','popup','width=588,height=400,menubar=yes,toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,directories=no');
}


