Two questions on Kirupa's XML Gallery tutorial!

Hi,

  1. How do I make all images preload in one load instead of individual ones?

  2. How do I make prev/next buttons disappear on first/last image respectively? Or failing that, how to make images loop?

thanks,

M