/* Credit for this one goes to Oreilly Associates' DHTML 2nd Edition 
by Danny Goodman*/

if (document.images) {
    // create "on" array and populate with Image objects
    var onImgArray = new Array( );
    onImgArray["HomeI"] = new Image(59,59);
    onImgArray["TartanI"] = new Image(59,59);
    onImgArray["PracticeI"] = new Image(59,59);
    onImgArray["DrumcorpsI"] = new Image(59,59);
    onImgArray["MusicI"] = new Image(59,59);
    onImgArray["ScheduleI"] = new Image(59,59);
    onImgArray["MultimediaI"] = new Image(59,59);
    onImgArray["HireusI"] = new Image(59,59);
    onImgArray["ContactI"] = new Image(59,59);
    onImgArray["GalleryI"] = new Image(59,59);
    onImgArray["GuestbookI"] = new Image(59,59);
    onImgArray["MerchandiseI"] = new Image(59,59);
    onImgArray["LinksI"] = new Image(59,59);
    onImgArray["AwardsI"] = new Image(59,59);
    onImgArray["MembersI"] = new Image(59,59);
    onImgArray["NewbiesI"] = new Image(59,59);
    onImgArray["ConstitutionI"] = new Image(59,59);
    onImgArray["HumorI"] = new Image(59,59);
    onImgArray["Band FinancialsI"] = new Image(59,59);
    // set URLs for the "on" images
    onImgArray["HomeI"].src = "../images/button2.PNG";
    onImgArray["TartanI"].src = "../images/button2.PNG";
    onImgArray["PracticeI"].src = "../images/button2.PNG";
    onImgArray["DrumcorpsI"].src = "../images/button2.PNG";
    onImgArray["MusicI"].src = "../images/button2.PNG";
    onImgArray["ScheduleI"].src = "../images/button2.PNG";
    onImgArray["MultimediaI"].src = "../images/button2.PNG";
    onImgArray["HireusI"].src = "../images/button2.PNG";
    onImgArray["ContactI"].src = "../images/button2.PNG";
    onImgArray["GalleryI"].src = "../images/button2.PNG";
    onImgArray["GuestbookI"].src = "../images/button2.PNG";
    onImgArray["MerchandiseI"].src = "../images/button2.PNG";
    onImgArray["LinksI"].src = "../images/button2.PNG";
    onImgArray["AwardsI"].src = "../images/button2.PNG";
    onImgArray["MembersI"].src = "../images/button2.PNG";
    onImgArray["NewbiesI"].src = "../images/button2.PNG";
    onImgArray["ConstitutionI"].src = "../images/button2.PNG";
    onImgArray["HumorI"].src = "../images/button2.PNG";
    onImgArray["Band FinancialsI"].src = "../images/button2.PNG";
    
    // create "off" array and populate with Image objects
    var offImgArray = new Array( );
    offImgArray["HomeI"] = new Image(59,59);
    offImgArray["TartanI"] = new Image(59,59);
    offImgArray["PracticeI"] = new Image(59,59);
    offImgArray["DrumcorpsI"] = new Image(59,59);
    offImgArray["MusicI"] = new Image(59,59);
    offImgArray["ScheduleI"] = new Image(59,59);
    offImgArray["MultimediaI"] = new Image(59,59);
    offImgArray["HireusI"] = new Image(59,59);
    offImgArray["ContactI"] = new Image(59,59);
    offImgArray["GalleryI"] = new Image(59,59);
    offImgArray["GuestbookI"] = new Image(59,59);
    offImgArray["MerchandiseI"] = new Image(59,59);
    offImgArray["LinksI"] = new Image(59,59);
    offImgArray["AwardsI"] = new Image(59,59);
    offImgArray["MembersI"] = new Image(59,59);
    offImgArray["NewbiesI"] = new Image(59,59);
    offImgArray["ConstitutionI"] = new Image(59,59);
    offImgArray["HumorI"] = new Image(59,59);
    offImgArray["Band FinancialsI"] = new Image(59,59);
    // set URLs for the "off" images
    offImgArray["HomeI"].src = "../images/button1.PNG";
    offImgArray["TartanI"].src = "../images/button1.PNG";
    offImgArray["PracticeI"].src = "../images/button1.PNG";
    offImgArray["DrumcorpsI"].src = "../images/button1.PNG";
    offImgArray["MusicI"].src = "../images/button1.PNG";
    offImgArray["ScheduleI"].src = "../images/button1.PNG";
    offImgArray["MultimediaI"].src = "../images/button1.PNG";
    offImgArray["HireusI"].src = "../images/button1.PNG";
    offImgArray["ContactI"].src = "../images/button1.PNG";
    offImgArray["GalleryI"].src = "../images/button1.PNG";
    offImgArray["GuestbookI"].src = "../images/button1.PNG";
    offImgArray["MerchandiseI"].src = "../images/button1.PNG";
    offImgArray["LinksI"].src = "../images/button1.PNG";
    offImgArray["AwardsI"].src = "../images/button1.PNG";
    offImgArray["MembersI"].src = "../images/button1.PNG";
    offImgArray["NewbiesI"].src = "../images/button1.PNG";
    offImgArray["ConstitutionI"].src = "../images/button1.PNG";
    offImgArray["HumorI"].src = "../images/button1.PNG";
    offImgArray["Band FinancialsI"].src = "../images/button1.PNG";
}

function imageOn(imgName) {
    if (document.images) {
        document.images[imgName].src = onImgArray[imgName].src;
    }
}
function imageOff(imgName) {
    if (document.images) {
        document.images[imgName].src = offImgArray[imgName].src;
    }
}
function setMsg(msg) {
    window.status = msg;
    return true;
}
