I apologize, I had some unneccessary rubbish there. I think I cleaned it up as far as errors go.
Still can't figure out why the image gallery is not acting right.
On this webpage http://leandrovieira.com/projects/jquery/lightbox/
under 'Example.' you can see how the lightbox should work. But all I get is images opening in new window http://tihemetsamoto.ee/uus2013/#projects