Help required with chromeless pop up windows

i really like the chromeless pop up windows detailed here(http://www.kirupa.com/developer/mx2004/chromeless.htm) however i wanted to create a flash menu where there would be a number of these pop up windows. i can get one to work but if i put script for two windows i get problems.

what happens is when i click on the first link in the flash menu it opens the window from the second link, and the window from the second link opens the correct one.

i’ve tried renaming the parameters and changing the script to read my chromeless one etc. but this doesn’t make any difference. I also tried getting the script to read from two different javascript files, however this did not work either.

any suggestions on how i could get this to work would be greatly appreciated.

colin