Cheers for the welcome!
Atm I *think* it's the image path that's stored, but either way it's moot cos I won't be using either the image or the image-path on this page, just the code with the text and image-paths for the thumbnail and the pop-up. Does that make sense? (there is an option written in to not *have* to store an image, but I will do cos it's called on somewhere else.)
I think what I'm asking is if javascript is called by the php ECHO command will it work with a function that's written into the head of the page? Or does the function definition need to be in the script that's called?