Slideshow help - automatic + next + last for this?

Hello,

I’m trying to get this slideshow to have a ‘automatic’ feature that would run through all the slides when you clicked a button that said, say ‘slideshow’, but you could hit next and last also to go through one at a time.

Basically, if I could add a slideshow functionality to this, that would be perfect:

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

thanks for any help!

md