Dynamic menu

I have this function that builds a menu and attaches content to the menu items to be displayed in a text field. I want to add on rollover change the background colour, on roll out from being over change it back again, and on release change it to a different colour to highlight the current selection.

My function is as follows…

text_txt is a text field on the stage.

function makeTableOfContents(bk) {
text_txt.text = bk.pmntasection[0].pmntasectionText;
_root.createEmptyMovieClip(“tc”, 1);
for(var i = 0; i < bk.pmntasection.length; i++) {
var c = tc.createEmptyMovieClip(“chap” + i, i);
c._y = 40 * i;
c.createTextField(“chap” + i, i, 10, 100, 150, 35);
var tf = c[“chap” + i];
tf.autoSize = true;
tf.text = bk.pmntasection*.pmntasectionName;
tf.backgroundColor = 0xCCCCCC;
tf.background = true;
tf.wordWrap = true;
tf.multiline = true;
tf.border = true;
c.chapNumber = i;
c.onRelease = function() {
text_txt.text = bk.pmntasection[this.chapNumber].pmntasectionText;
}
}
}