OK, now we're on the same page, so to speak.
The problem now is that I need it to behave slightly differently. I see how this would be very useful in a site where the menu showed up on every page, but I'm using it in a frame, so the current page isn't one of the links in the menu at all.
I understand if helping make it behave like that is outside the scope of this forum, but if you can point me in the right direction, please do.
I either have to change the menu behavior or rearchitect the site. The former has to be easier.
Love the Pratchett, by the way.