

function imgOn(fname) 
{
    if (fname != top.theSection) {
        var theImage =  'images/' + fname + '_on.gif'
        top.menu.document.images[fname].src = theImage
    }
}

function imgOff(fname) 
{
    if (fname != top.theSection) {
        var theImage =  'images/' + fname + '_off.gif'
        top.menu.document.images[fname].src = theImage
    }
}

// change to sel to add a third color for selection
function init(name)
{
    var theImage = 'images/' + name + '_on.gif'
    var oldSection = top.theSection
    top.theSection = name
    
    imgOff(oldSection);   
    top.menu.document.images[name].src = theImage
}

function whichMenu() 
{
alert("in whichMenu");
    //top.menu.location.pathname = "/D:\users\mike\webfoot\reMenu.html"
}


function loadProperFiles(name)
{
    //if (url has mikesokolsky.com in it), then go with reMenu and reOther stuff
    //alert("load proper files: " + name + " and change is: " + top.menu.location.href);
    
    //alert("top.location is:" + top.location.href.substr(0, 18));
    if (top.location.href.substr(0, 18) != "http://www.webfoot") {
        //top.menu.location.href = "file:///D:/users/mike/webfoot/reMenu.html"
        //top.content.location.href = "file:///D:/users/mike/webfoot/reHome.html"
        //top.header.location.href = "file:///D:/users/mike/webfoot/reHeader.html"
    
        top.menu.location.href = "http://www.webfootc.com/reMenu.html"
        top.content.location.href = "http://www.webfootc.com/reHome.html"
        top.header.location.href = "http://www.webfootc.com/reHeader.html"
    }
}

