Help needed with setinterval or get timer

Hey everyone, hi!!
Ok here’s the deal : i’m working on a slideshow that automatically goes through the jpeg list (works with xml) .
what i need is a movie clip that fades in about 5 seconds before the picture changes and fades out about 10 seconds after the picture changed. The movie clip mentioned above appears over the slide show by fading in and then fades out between every photo change.
Does anyone know how to do that?
I’ve been working on this for days and i only managed to get the fade in to work…
Please help me out!!
Thanks a lot in advance…