if (document.images) {
home = new Image(90,30); home.src = "../images/nav/home.gif";
home_on = new Image(90,30); home_on.src = "../images/nav/home_on.gif";
news = new Image(72,30); news.src = "../images/nav/news.gif";
news_on = new Image(72,30); news_on.src = "../images/nav/news_on.gif";
team = new Image(103,30); team.src = "../images/nav/team.gif";
team_on = new Image(103,30); team_on.src = "../images/nav/team_on.gif";
music = new Image(124,30); music.src = "../images/nav/music.gif";
music_on = new Image(124,30); music_on.src = "../images/nav/music_on.gif";
club = new Image(185,30); club.src = "../images/nav/club.gif";
club_on = new Image(185,30); club_on.src = "../images/nav/club_on.gif";
store = new Image(75,30); store.src = "../images/navstore.gif";
store_on = new Image(75,30); store_on.src = "../images/nav/store_on.gif";
contact = new Image(112,30); contact.src = "../images/nav/contact.gif";
contact_on = new Image(112,30); contact_on.src = "../images/nav/contact_on.gif";
}
/* Function that swaps images. */
function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}
