Hmm the other approach is to change the two attributes used, "data-openimage" and "data-closedimage", to something that will validate in your current doctype. The problem is there aren't that many HTML attributes at your disposal, considering "rel" is also taken by the script as well. But just as an example, lets say you decide to use "title" and "rev" respectively instead:
Code:
<a href="#" rel="toggle[jason]" title="expand.jpg" rev="collapse.jpg"><img src="collapse.jpg" style="border-width:0" /></a>
To enable the above, inside the .js file, do a search and replace, replacing all "data-openimage" with "title", and all "data-closedimage" with "rev". That should do it.
Bookmarks