lumebox use for displaying galleries

HI

How do I apply the lumebox light box to galleries as well as the main product image. I am using a lightbox plugin at the mo and it is currently opening the entire product page as an image, I would rather get rid of the plugin and code it in .

Thanks

Mark