Originally Posted by LearningCoder
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!
if you look at the thickbox.js code you will find it uses this.href to get the value of the the image to display, and the rel attribute to determine if the image is part of a gallery ( basically a group of links with the same rel attribute)