I am using AJAX to load pages content on the website, however, I am also using lightbox (Lightbox) to display images.

The problem is you need to have rel="lightbox" for it to work, but AJAX doesn't like it and actually loads the coding of the image that you'd get if you open it in notepad.

Any ideas on how to make it work correctly?

See whats happening here here (click on the "Need a Youtube Background" note on the desk thing).