"centered popup" problem

hey. I used this Kirupa’s great centered popup tutorial and it is fantastic.
Anyway, i have one problem using it and i don’t know what would fix it.

I noticed that when i load my gallery (for example) swf file where all thumbnails are on the other level, this popup script doesn’t work anymore.
U can also take a look my site so u may better understand:
Scemeart.tk

My levels looks something like on the next:

Main.swf (basic swf file loaded on the HTML page at the start)

Portfolio.swf

When clicked portfolio button on Main.swf
on (release) {
unloadMovieNum(1);
loadMovieNum(“portfolio.swf”, 1);
}

Portfolio_3d.swf

When clicked 3d gallery button on portfolio.swf
on (release) {
unloadMovieNum(1);
loadMovieNum(“portfolio_3d.swf”, 1);
}