Use this updated version of imagepanner.js:
Then give all of your thumbnails a class if they don't have it already - say
And put this script in the head of the page after the other scripts:
The browser cache may need to be cleared and/or the page refreshed to see changes.
If you want more help, please post a link to the page on your site that contains the problematic code so we can check it out.