Lighbox for product thumbnail

I recently bought a cart and I was trying to change the code so that when you click the thumbnail of a product it links to its Large image and opens the lightbox instead of link to the product details.

Please help me out.

-Miro