// Define the status line messages which we will be using
// NOTE: ie, displayStatus - the prefix display
// is the same prefix as some of the Image Objects name created below
// and also as an Image prefix name
var menuoneStatus = "Click here for more information about our Fine Displays";
var menutwoStatus = "Click here for more information about our Birdcage Accessories";
var menuthreeStatus = "Click here for more information about Custom Plastic Fabrication";

// Define & Preload our Images
// we are also making sure that there will be no browser compatibility issues

if (document.images) {
     var menuoneOn = new Image();
     menuoneOn.src = "/images/NGO%20030/hoverone.png";

     var menuoneOff = new Image();
     menuoneOff.src = "/images/NGO%20030/menuone.png";

     var menutwoOn = new Image();
     menutwoOn.src = "/images/NGO%20030/hovertwo.png";

     var menutwoOff = new Image();
     menutwoOff.src = "/images/NGO%20030/menutwo.png";

     var menuthreeOn = new Image();
    menuthreeOn.src = "/images/NGO%20030/hoverthree.png";

     var menuthreeOff = new Image();
     menuthreeOff.src = "/images/NGO%20030/menuthree.png";
}

// this function will make sure that there will be no browser compatibility issues
// swap out the "Off" image with an "On" image
// return status => which then gets displayed through the "return true;"
// from where the function was called
function imgOn(imgName) {
     if (document.images) {
          // eval() takes a string & converts it to an Image Object that was defined above
          // without eval(), the result would be a string that not be an "Image Object"
          document[imgName].src = eval(imgName + "On").src;
          // OR document[imgName].src = "images/" + imgName + "On.gif";
     }
     // eval() takes a string & converts it to a Variable that was defined above
     // without eval(), the result would be a string, ie.- just displayStatus,
     // and not the string variable displayStatus that we want -
     window.status = eval(imgName + "Status");
}

// this function will make sure that there will be no browser compatibility issues
// swap out the "On" image with an "Off" image
// status "clears out" the Status Line
function imgOff(imgName) {
     if (document.images) {
          document[imgName].src = eval(imgName + "Off").src;
          // OR document[imgName].src = "images/" + imgName + "Off.gif";
     }
     window.status = "";
}
