setInterval Problem

Hi friends,
This code works fine when i publish the swf in the macromedia flash 8, but when insert the following swf in the html page it doesnt work! please could u guys can tell me where am i going wrong??

I have attached the source file also.

CODE:

stop();

//define the function for the interval to call
function playSlideshow() {
    play();

}




//start your slideshow when the swf loads 
_root.onLoad = function(){

 myInt = setInterval(playSlideshow, 5000);
}



if(done == true){
    clearInterval(myInt);
    myInt = setInterval(playSlideshow(), 5000);
}