Just a thought but this line triggered my memory of prettyPhoto.
The array [rel=blabla] is used in the CSS of the prettyPhoto to determine the image to show. (or something similar, it's been a year or so since I last used prettyPhoto).
I'm clutching at straws but the error that Dan has found could well be the issue.
Good luck with it dude!