XML Gallery, Recycle images back to 1?

Hello,

I’m using the Kirupa XML Gallery and I want to be able to loop the images, currently, the way it’s set up is when you get to the end of your image list (xml) it just stops, then you have to click ‘previous’ to get back to the strart.

Is there something I can say in XML that will send it back to the first image after it gets to the last?

thanks!!