///////////////////////////////////////////////////////////////////////////////
// These are for rollovers											         //
///////////////////////////////////////////////////////////////////////////////


if (document.images) {
 // These are for the home page navigation rollovers.
  psdtohtmlOn = new Image();
  psdtohtmlOn.src = "assets/images/home/but_home_psdtohtml_over.gif";
  psdtohtmlOff = new Image();
  psdtohtmlOff.src = "assets/images/home/but_home_psdtohtml.gif";
  maintenanceOn = new Image();
  maintenanceOn.src = "assets/images/home/but_home_maintenance_over.gif";
  maintenanceOff = new Image();
  maintenanceOff.src = "assets/images/home/but_home_maintenance.gif";
  flashOn = new Image();
  flashOn.src = "assets/images/home/but_home_flash_over.gif";
  flashOff = new Image();
  flashOff.src = "assets/images/home/but_home_flash.gif";
  photoshopOn = new Image();
  photoshopOn.src = "assets/images/home/but_home_photoshop_over.gif";
  photoshopOff = new Image();
  photoshopOff.src = "assets/images/home/but_home_photoshop.gif";
  audioOn = new Image();
  audioOn.src = "assets/images/home/but_home_audio_over.gif";
  audioOff = new Image();
  audioOff.src = "assets/images/home/but_home_audio.gif";
  aboutOn = new Image();
  aboutOn.src = "assets/images/home/but_home_about_over.gif";
  aboutOff = new Image();
  aboutOff.src = "assets/images/home/but_home_about.gif";
  
 // These are for other home page navigation rollovers.
  learnOn = new Image();
  learnOn.src = "assets/images/buttons/but_learn_moreover.gif";
  learnOff = new Image();
  learnOff.src = "assets/images/buttons/but_learn_more.gif";
  learn2On = new Image();
  learn2On.src = "assets/images/buttons/but_learn_moreover.gif";
  learn2Off = new Image();
  learn2Off.src = "assets/images/buttons/but_learn_more.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 windowcustomaudio()
{
  window.open('pages/customaudio.html','popup','width=588,height=400,menubar=yes,toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,directories=no');
}



