if (document.images) {
	account_off = new Image; account_off.src = "../images/account_off.gif";
	account_on = new Image; account_on.src = "../images/account_on.gif";
	orders_off = new Image; orders_off.src = "../images/orders_off.gif";
	orders_on = new Image; orders_on.src = "../images/orders_on.gif";
	info_off = new Image; info_off.src = "../images/info_off.gif";
	info_on = new Image; info_on.src = "../images/info_on.gif";
	faq_off = new Image; faq_off.src = "../images/faq_off.gif";
	faq_on = new Image; faq_on.src = "../images/faq_on.gif";
	contact_off = new Image; contact_off.src = "../images/contact_off.gif";
	contact_on = new Image; contact_on.src = "../images/contact_on.gif";
	signoff_off = new Image; signoff_off.src = "../images/signoff_off.gif";
	signoff_on = new Image; signoff_on.src = "../images/signoff_on.gif";
	logon_off = new Image; logon_off.src = "../images/logon_off.gif";
	logon_on = new Image; logon_on.src = "../images/logon_on.gif";
}

/* Function that swaps images. */
function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    var theSource = eval(newSrc + '.src');

    if (theImage) {
        theImage.src = theSource;
    }
}

/* 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);
}

function signoff() {
	if (confirm("Continuing will log you off of the site - only continue if you wish to log on using a different profile. Click OK to continue or Cancel")) {
		window.document.location.href = "../signin.asp?Task=signoff";	
	}
}	