OnClip event button script

Greetings,

I have a set of 5 text buttons that I want to alter slightly with actionscript.

An OnClip event moves the 5 text buttons onto the screen, then each button has a stop action as well as an OnPress/OnRelease that rotates it from black text to blue text and rolls back to black text again. I just need it to be black text to blue and stop when the viewer clicks the link to go to an HTML page.

How would you code it so that the text button rolls from black to blue and stays BLUE for the selected HTML page as long as the user is on it, letting them know where they are in the site’s navigation.

The sample code from button 1 is below:
onClipEvent (load) {
num = 1;
}
on (rollOver) {
if (_root.link<>num) {
this.gotoAndPlay(“s1”);
}
}
on (releaseOutside, rollOut) {
if (_root.link<>num) {
this.gotoAndPlay(“s2”);
}
}
on (release) {
if (_root.link<>num) {
_parent[“but”+_root.link].gotoAndPlay(“s2”);
_root.link = num;
}
getURL(“http://www.websitechunk.com/whatever.html”);
_root.button = 1;

Thanks!