[f8] button actionscript help

Hi,

The ‘HOME’ page will be the FIRST thing the viewer will see when they come to my site.
I want the ‘HOME’ button already highlighted; that is until the viewer clicks on a different button. What am I missing in my code?

b1.onRollOver = over;
b1.onRollOut = out;
b1.useHandCursor = false;
b1.buttText.buttonText.text = “HOME”;
b1.onRelease = function() {
this.selected = true;
resetState(this);
};
b2.onRollOver = over;
b2.onRollOut = out;
b2.useHandCursor = false;
b2.buttText.buttonText.text = “PORTFOLIO”;
b2.onRelease = function() {
this.selected = true;
resetState(this);
};
function over() {
if (!this.selected) {
this.gotoAndPlay(‘over’);
}
}
function out() {
if (!this.selected) {
this.gotoAndPlay(‘active’);
}
}
function resetState(mc) {
for (var i = 0; i<10; i++) {
if (mc._name != “b”+i) {
var tmp = this[“b”+i];
if (tmp.selected) {
tmp.selected = false;
tmp.gotoAndPlay(‘active’);
}
}
}
}