/* Function that swaps images. */

function di20(id, newSrc) {
    //var theImage = FWFindImage(document, id, 0);
    //if (theImage) {
        document.getElementById(id).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);
}

function helpp()  {
   nwin = window.open("http://www.2shoes.com/htmlhelp","nwin",
   "status=no,toolbar=no,scrollbars=yes,location=no,menu=no,width=580,height=450");
}

function popMpg(source){
	newView = window.open(source,"popup","width=350,height=320,resizable=0,scrollbars=0,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popPort(source){
	newView = window.open(source,"pic","width=500,height=550,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popJudge(source){
	newView = window.open(source,"pic","width=550,height=480,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popLand(source){
	newView = window.open(source,"landscp","width=530,height=400,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popLegal(source){
	newView = window.open(source,"legal","width=400,height=300,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popExt(source){
	newView = window.open(source,"out","width=780,height=425,resizable=1,scrollbars=1,toolbar=1,menubar=1,location=1")
	newView.focus();
}

function popGal(source){
	newView = window.open(source,"gallery","width=550,height=500,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

function popGal07(source){
	newView = window.open(source,"gallery","width=550,height=650,resizable=0,scrollbars=1,toolbar=0,menubar=0,location=0")
	newView.focus();
}

