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

Se scrolli fino ad Advance è spiegato come fare.