apparently accidentally pasted into the prettyphoto “functions” (it is not indented).
Might it be that some intended code was obliterated through some accident? The plug in doesn’t work at all in Firefox, works partially in Opera, Chrome and IE9 and nearly fully functions in Safari? Simply commenting out the strange code (above) had no effect.
I’ve tracked the (mis)behavior to some kind of jquery interaction in the raindrops theme I am using. I’ve tried a couple of other WP themes and there is no problem. In Firefox the expected listeners don’t get set. In the others (Chrome, IE, Opera), the listeners do get set, but something interferes with the execution of the prettyPhoto script.