   var imagesNormal = new Object();
   var imagesHilite = new Object();
   
function setImage(imgName, type) {
    if (document.images) {
        if (type == "hilite") {
            document.getElementById(imgName).src = imagesHilite[imgName].src;
            return true;
        } else if (type == "normal") {
            document.getElementById(imgName).src = imagesNormal[imgName].src;
            return true;
        }
    }
    return false;
}

// pre-cache menu image pairs
if (document.images) {

    imagesNormal["district"] = new Image(25, 58);
    imagesNormal["district"].src = "/images/district.jpg";
    imagesNormal["schools"] = new Image(25, 66);
    imagesNormal["schools"].src = "/images/schools.jpg";
    imagesNormal["curr"] = new Image(25, 88);
    imagesNormal["curr"].src = "/images/curriculum.jpg";
    imagesNormal["empl"] = new Image(25, 105);
    imagesNormal["empl"].src = "/images/employment.jpg";
    imagesNormal["comm"] = new Image(25, 95);
    imagesNormal["comm"].src = "/images/community.jpg";
    imagesNormal["about"] = new Image(25, 75);
    imagesNormal["about"].src = "/images/about.jpg";

    imagesHilite["district"] = new Image(25, 58);
    imagesHilite["district"].src = "/images/district-over.jpg";
    imagesHilite["schools"] = new Image(25, 66);
    imagesHilite["schools"].src = "/images/schools-over.jpg";
    imagesHilite["curr"] = new Image(25, 88);
    imagesHilite["curr"].src = "/images/curriculum-over.jpg";
    imagesHilite["empl"] = new Image(25, 105);
    imagesHilite["empl"].src = "/images/employment-over.jpg";
    imagesHilite["comm"] = new Image(25, 95);
    imagesHilite["comm"].src = "/images/community-over.jpg";
    imagesHilite["about"] = new Image(25, 75);
    imagesHilite["about"].src = "/images/about-over.jpg";
}

// CSS Top Menu - By JavaScriptKit.com (http://www.javascriptkit.com)
// Please keep this credit intact

startMenu = function() {
    if (document.all&&document.getElementById) {
        cssmenu = document.getElementById("csstopmenu");
        for (i=0; i<cssmenu.childNodes.length; i++) {
            node = cssmenu.childNodes[i];
            if (node.nodeName=="LI") {
                node.onmouseover=function() {
                    this.className+=" over";
                    //if (this.id=="district") {
                    //    return setImage('this.id', 'hilite')
                    // }
                };
                node.onmouseout=function(){                  
                    this.className=this.className.replace(" over", "");
                };
            }
        }
    }
};

if (window.attachEvent) {window.attachEvent("onload", startMenu);}
else
    {window.onload=startMenu;
}

