XML Photogallery - Loop list?!

Heya!
I am new here - be gentle.

OK -
Done the tutorial, got the thing working.

How do we get the XML list looping so when we get to the end of the list the next_btn takes us back to the first photo in the list again? (And Visa Versa)