Photo SlideShow help with fadeout

Hey I need some help.
I coded a xml slideshow with the pictures fading in but I cant seem to find the right technique to hold a picture and fade in the next. I read up on swap depth but cant seem to implement it through the use of a xml file but I have seen exaples using an array.

heres the code:

here is example page

any help would be appreciated