if (document.images) {
home = new Image(150,44); home.src = "http://www.writehands.com/images/nav/home.gif";
home_on = new Image(150,44); home_on.src = "http://www.writehands.com/images/nav/home_on.gif";
web = new Image(150,44); web.src = "http://www.writehands.com/images/nav/web.gif";
web_on = new Image(150,44); web_on.src = "http://www.writehands.com/images/nav/web_on.gif";
writing = new Image(150,44); writing.src = "http://www.writehands.com/images/nav/writing.gif";
writing_on = new Image(150,44); writing_on.src = "http://www.writehands.com/images/nav/writing_on.gif";
brand = new Image(150,44); brand.src = "http://www.writehands.com/images/nav/brand.gif";
brand_on = new Image(150,44); brand_on.src = "http://www.writehands.com/images/nav/brand_on.gif";
portfolio = new Image(150,44); portfolio.src = "http://www.writehands.com/images/nav/portfolio.gif";
portfolio_on = new Image(150,44); portfolio_on.src = "http://www.writehands.com/images/nav/portfolio_on.gif";
contact = new Image(150,44); contact.src = "http://www.writehands.com/images/nav/contact.gif";
contact_on = new Image(150,44); contact_on.src = "http://www.writehands.com/images/nav/contact_on.gif";
web_icon = new Image(150,44); web_icon.src = "http://www.writehands.com/images/nav/web_icon.gif";
web_icon_on = new Image(150,44); web_icon_on.src = "http://www.writehands.com/images/nav/web_icon_on.gif";
writing_icon = new Image(150,44); writing_icon.src = "http://www.writehands.com/images/nav/writing_icon.gif";
writing_icon_on = new Image(150,44); writing_icon_on.src = "http://www.writehands.com/images/nav/writing_icon_on.gif";
brand_icon = new Image(150,44); brand_icon.src = "http://www.writehands.com/images/nav/brand_icon.gif";
brand_icon_on = new Image(150,44); brand_icon_on.src = "http://www.writehands.com/images/nav/brand_icon_on.gif";
logo_icon = new Image(150,44); logo_icon.src = "http://www.writehands.com/images/nav/logo_icon.gif";
logo_icon_on = new Image(150,44); logo_icon_on.src = "http://www.writehands.com/images/nav/logo_icon_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);
}
