Occurs in prototype.js?ver=1.6.1 (line 4619)
element.dispatchEvent is not a function
Occurs in lightbox.js?ver=1.8 (line 33)
element.style is undefined
element.style.width = w +"px";
You might want to resolve these first.
Are you actually using prototype / scriptaculous / lightbox anywhere? You could probably replace those 3 with 1 jQuery plugin to do the lightbox (or if you're using NextGen to manage all your image galleries, just using the one included with that...)