Thanks to both rudy and Michiel, I had a feeling that it would probably be better to store them rather than regenerate them each time the page was requested. cheers alastair