Hi Nancy,
If it helps at all, I too am in a foreign country here and speaking a language I don't know.
A short while ago my brain frazzled and something popped at the exact moment I was realising that ignorance isn't bliss, but actually just a handy saying to have at your disposal if you happen to be ignorant as I am, and have a pack of Diazepam to hand.
Having the javascript in the page header is a big problem (as it will limit you to one slideshow), but I have one or two things to try in that area, a little later.
What has been driving me nuts for an hour is that you should still get popups when you click the slideshow, and you get the first popup, but the rest don't follow. Although you can go full-screen from the slideshow, as-is. One could also disable the pop-ups and settle for the full-screen.
Your (excellent) solution might be the one to go with, but I will in my terrier fashion (mindless but annoyingly persistent) keep chasing this particular stick.
If I don't post back at all, you can send flowers or a get well card to Bath Royal United Hospital.
Cheers