What you want to do is look into JQuery, mootools and others like it. They are javascript libraries that do some amazing things, it's also being referred to as HTML5. The gallery app that I use is lightbox2 check it out here http://www.huddletogether.com/projects/lightbox2/ . It's super easy to integrate into any existing html site and runs on the iPad.

D.