Is it possible to use an array for times using setInterval?

moveSlide();
myShowInt = setInterval(moveSlide, PLACE A TIME INSERTED FROM AN ARRAY HERE???);

I am trying to make a slideshow from an xml document. Each image has a time attribute, which I have in an array. What I want to do is advance to the next image based on the time associated with it. Any suggestions would be appreciated, Iā€™m pretty new to this :slight_smile: