// Image rollover script

var imageList = new Array();
var imageCount = 0;

function loadImage(name, imageOut, imageOn) {
    if (document.images) {
        imageList[imageCount] = new Array(3);
        imageList[imageCount][0] = name;
        imageList[imageCount][1] = new Image();
        imageList[imageCount][1].src = imageOut;
        imageList[imageCount][2] = new Image();
        imageList[imageCount][2].src = imageOn;
        imageCount++;
    }
}

function imgOn(name) {
    if (document.images) {
        for (var i=0; i < imageList.length; i++) {
            if (imageList[i][0] == name) {
                document.images[name].src = imageList[i][2].src;
                break;
            }
        }
    }
}

function imgOff(name) {
    if (document.images) {
        for (var i=0; i < imageList.length; i++) {
            if (imageList[i][0] == name) {
                document.images[name].src = imageList[i][1].src;
                break;
            }
        }
    }
}

//
