

if (document.images) {
htmlButtons_r1_c1_F1 = new Image(109,55); htmlButtons_r1_c1_F1.src = "htmlButtons_r1_c1.gif";
htmlButtons_r1_c1_F2 = new Image(109,55); htmlButtons_r1_c1_F2.src = "htmlButtons_r1_c1_F2.gif";
htmlButtons_r1_c5_F1 = new Image(109,55); htmlButtons_r1_c5_F1.src = "htmlButtons_r1_c5.gif";
htmlButtons_r1_c5_F3 = new Image(109,55); htmlButtons_r1_c5_F3.src = "htmlButtons_r1_c5_F3.gif";
htmlButtons_r1_c6_F1 = new Image(108,55); htmlButtons_r1_c6_F1.src = "htmlButtons_r1_c6.gif";
htmlButtons_r1_c6_F4 = new Image(108,55); htmlButtons_r1_c6_F4.src = "htmlButtons_r1_c6_F4.gif";
htmlButtons_r1_c7_F1 = new Image(108,55); htmlButtons_r1_c7_F1.src = "htmlButtons_r1_c7.gif";
htmlButtons_r1_c7_F5 = new Image(108,55); htmlButtons_r1_c7_F5.src = "htmlButtons_r1_c7_F5.gif";
htmlButtons_r4_c1_F1 = new Image(540,45); htmlButtons_r4_c1_F1.src = "htmlButtons_r4_c1.gif";
htmlButtons_r4_c1_F2 = new Image(540,45); htmlButtons_r4_c1_F2.src = "htmlButtons_r4_c1_F2.gif";
htmlButtons_r4_c1_F3 = new Image(540,45); htmlButtons_r4_c1_F3.src = "htmlButtons_r4_c1_F3.gif";
htmlButtons_r4_c1_F4 = new Image(540,45); htmlButtons_r4_c1_F4.src = "htmlButtons_r4_c1_F4.gif";
htmlButtons_r4_c1_F5 = new Image(540,45); htmlButtons_r4_c1_F5.src = "htmlButtons_r4_c1_F5.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);
}

