Popup help

Hey I built a gallery of thumbnails. When the user clicks the thumbnail, I want the actual picture to pop up in another window. When the user clicks that pop-up, I want it to close.

Does anyone know of any easy way to do this in Actionscript?

Thanks!