Photo gallery thumbnails

I’m working on a photo gallery and I’m using thumbnails.

When the photo is clicked, I want it to appear on the right side of the page instead of a pop up window. How can I do this?

Also, you see at the bottom of the page there’s a place for total visitors and fans online. How do I insert the scripts for them to work into flash?