if (document.images) {welcome = new Image(150,40); welcome.src = "images/nav/welcome.gif";home_on = new Image(150,40); welcome_on.src = "images/nav/welcome_on.gif";about = new Image(150,40); about.src = "images/nav/about.gif";about_on = new Image(150,40); about_on.src = "images/nav/about_on.gif";trips = new Image(150,40); trips.src = "images/nav/trips.gif";trips_on = new Image(150,40); trips_on.src = "images/nav/trips_on.gif";guide = new Image(150,40); guide.src = "images/nav/guide.gif";guide_on = new Image(150,40); guide_on.src = "images/nav/guide_on.gif";info = new Image(150,40); info.src = "images/nav/info.gif";info_on = new Image(150,40); info_on.src = "images/nav/info_on.gif";contact = new Image(150,40); contact.src = "images/nav/contact.gif";contact_on = new Image(150,40); 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);}
