That didn't seem to fix the problem. If I refresh the page, the thumbnail numbering skips #1 and starts with #2. But then as soon as I click one of the thumbnails, they all renumber themselves starting w/ #1 and the right column # is incorrect.
Just a side note, this was the site we had trouble getting to work on a Windows server last week, so we dumped the database and ported the whole thing to a Linux server. Do you think the key #s in the dbase may have gotten screwed up causing this issue?