MX 2004 slideshow troubles

i need to make a slideshow for a photo gallery…
when the user clicks a button the first photo is loaded and shown… 10 seconds after this the next photo needs to be loaded…

this is my function and it is not working properly… can anyone help?

cucu = function(k){
      num=k;
      apasat._x=this._x;
  nume.titlul=this.id;
  nume._visible=true;
  pic2._alpha=0;
  _level0.noir.loader.tween("_alpha", 45, 0.5, "easeoutquad");
  pic2.loadMovie("noir/noir"+k+".jpg"); 
  
          this.onEnterFrame = function() {
 _level0.noir.loading.loader._visible=true; 
          if (pic2.getBytesTotal!=0){
 _level0.noir.loader._width=(pic2.getBytesLoaded()/pic2.getBytesTotal()*300); 
             _level0.noir.loading._alpha=100-pic2.getBytesLoaded()/pic2.getBytesTotal()*85}
                  if (pic2._height>=300) {
                      _level0.noir.loader._alpha+=(0-_level0.noir.loader._alpha)/10;
                      pic2._x=40-pic2._width/2;
                      removeMovieClip(pic3);
                      pic2._alpha+=(100-pic2._alpha)/25
                      pic2.duplicateMovieClip(pic3, 100);
                      var pict = pic2.duplicateMovieClip(copy, 4)
                      pict._visible=true;
                      pict._alpha=100;
                      reset=getTimer();
                      this.onEnterFrame= function(){
                      if (getTimer()-reset>10000) {
                      cucu(num-1);
                      reset = getTimer();}}
                      }}}