Adjustments to slideshow tutorial

Hi, I’m trying to create a slideshow that allows the user and click left and right like on the tutorial on this site, but also to change the images periodically without user interaction. What code could I add to the actionscript for this http://www.kirupa.com/developer/mx/photogallery.htm to accomplish what I want?

Some kind of setinterval that calls one of the functions?

setinterval should work, of course this means that a user could click and then the setinterval could change the picture immedietly afterwards so you’ll need to add some code to prevent that but you’re on the right track!