
if (document.images) 
{
home1 = new Image(114,27); home1.src = "home1.gif";
home2 = new Image(114,27); home2.src = "home2.gif";
audiokurs1 = new Image(114,27); audiokurs1.src = "audiokurs1.gif";
audiokurs2 = new Image(114,27); audiokurs2.src = "audiokurs2.gif";
lehrmaterial1 = new Image(114,27); lehrmaterial1.src = "lehrmaterial1.gif";
lehrmaterial2 = new Image(114,27); lehrmaterial2.src = "lehrmaterial2.gif";
bestellen1 = new Image(114,27); bestellen1.src = "bestellen1.gif";
bestellen2 = new Image(114,27); bestellen2.src = "bestellen2.gif";
uebersetzungen1 = new Image(114,27); uebersetzungen1.src = "uebersetzungen1.gif";
uebersetzungen2 = new Image(114,27); uebersetzungen2.src = "uebersetzungen2.gif";
kontakt1 = new Image(114,27); kontakt1.src = "kontakt1.gif";
kontakt2 = new Image(114,27); kontakt2.src = "kontakt2.gif";
agb1 = new Image(114,27); agb1.src = "agb1.gif";
agb2 = new Image(114,27); agb2.src = "agb2.gif";
impressum1 = new Image(114,27); impressum1.src = "impressum1.gif";
impressum2 = new Image(114,27); impressum2.src = "impressum2.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);
}

