Thanks for your help up to this point. The guy from JustAnswer.com was able to get both scripts working on the one page for me.
In case anyone wants to see the code, here
is the working page.
Now I can concentrate on putting the rest of the images into the gallery and be on my merry way.