and, if I put the same gallery on a page that is not generated by the cart (in the cart you add pages by clicking a documents link and can either use a wsyiwyg editor or the source code and I enter just the content source code, then it generates a page and creates the link to it) it works. See test.php
So there's gotta be something that the cart is generating that is conflicting, but I can't se what it might be. Can ou take a look at the source code again one more time and see if you see anything that could be conflicting with it?
I appreciate it.