Rollover and timelines

hi,

Ive got 6 button movieclips on the stage, and a gallery style movie clip holding pics.

Simply I want to be able to rollover any of the 6 button movieclips and have the gallery clip navigate to different points on its timeline, not the global timeline.

I belive i need to use code something along the lines of the following:

1mc.onRollOver = function () {
homegal_mc.gotoAndPlay(“1”);
}
2mc.onRollOver = function () {
homegal_mc.gotoAndPlay(“2”);
}

but i seem to be getting a syntax error and nothing happening.

Thanks!!