

buttonNameArray = new Array(); buttonNameArray = buttonList.split(","); 
buttonArray = new Array(); buttonRollArray = new Array();

for (var i=0; i < buttonNameArray.length; i++) {
        buttonArray[buttonNameArray[i]] =  new Image();
        buttonArray[buttonNameArray[i]].src = "img/m_" + buttonNameArray[i] + ".gif";
        buttonRollArray[buttonNameArray[i]] = new Image();
        buttonRollArray[buttonNameArray[i]].src = "img/m_" + buttonNameArray[i] + "_on.gif";
}

// Interactive Functions
function rollIn(theRoll) {
        var imgObjStr = "document." + theRoll; imgObj = eval(imgObjStr); 
        imgObj.src = buttonRollArray[theRoll].src;
}
function rollOut(theRoll) {
        var imgObjStr = "document." + theRoll; imgObj = eval(imgObjStr); imgObj.src = buttonArray[theRoll].src;
}
function buttonClick(theClick) {
        buttonObjString = "document." + theClick; buttonObj = eval(buttonObjString); buttonObj.src = buttonRollArray[theClick].src;
}  

