Where does the code to add a lightbox effect go?

install the Simple Lightbox and all images will automatically be shown in lightbox..

or you can have a look at this jquery lightbox. Lightbox