Slideshow with a Masked Photo Gallery

I was looking at the slideshow at this link:

http://www.flashkit.com/movies/Effects/Masking/Side_Cur-David_Wa-8638/index.php

How would you make it a slideshow using the setInterval() function while still using the masking?