I am fairly a beginner with javascript. What I want to do is when I click on a button:

I want it to popup a window. The content of this window is HTML (actually it's a .php) code. As follows:

Then when you click next it scrolls to the next list of movies. What is the easiest javascript/jQuery library to do this?
This snippet of pitcure is taken from the website getglue. I tried to firebug the site, but can't seem to find the js code to do it.
IMPORTANT: The movie title and image is taken from a database, and therefore content is not static html. This is where I actually got confused on how to do a dynamic content generated window popup box