Clicca qui:
http://www.shadowbox-js.com/usage.html

Scorri fino ad Advanced, li c'è un esempio di quello che serve a te.