Need help with a template menu button

I’m working with a TemplateMonster Flash site, and they are doing an animated page swap with this button code:

on (rollOver) {
    if (_root.link<>5) {
        this.gotoAndPlay("s1");
    }
}
on (releaseOutside, rollOut) {
    if (_root.link<>5) {
        this.gotoAndPlay("s2");
    }
}
on (release) {
    if (_root.link<>5) {
        _root.menu["item"+_root.link].gotoAndPlay("s2");
        _root.link = 5;
        _root.play();
    }
}

What I need to do is add something to that, that will go to a specific frame in a page mc after it goes to the page. Pretty basic, but I can’t get the syntax right. None of the pages have instance names that I can see.