If (somethin==#) problem in menu

Hi and thanks for taking the time to take a look at this post.

Well…

I’m designing a new layout for my flash site, and a new this I added is fade/enlarge in menus. The problem is that i tried using my novice actionscripting to tell the "box movieclip to goto a certain frame when it zooms in based on which button was pressed on the nav bar. For right now I made a crude solution by eliminating the zooming out, but it ruins the effect’s look so i’m ask for help on it now.

On my buttons i have codes like this:

on (release) {
_root.list.gotoAndPlay(“close”);
(_global.select == 1);
}

and on the zoom in frames i have:
if (_global.select == 1) {
_root.list.box.gotoAndStop(“home”);
}
if (_global.select == 2) {
_root.list.box.gotoAndStop(“movies”);
}

What am I doing wrong?