Wont loop (thumbnail slideshow with transitions)

Hey everyone
Well, I went threw he tutorial for thumbnails, and then added in the code to make it a slideshow. But then I wanted to add in transitions. So I found some code on here by scotty to do that, and tried to mix it in with the code from the thumbnails and slideshow, and now it doesn’t seem to work right. What happens is the slideshow wont start on its own. You have to press next for it to start. The first slide also has another problem. Once the slideshow starts, the description says “Test” and so does the slide number. And once the slideshow gets to 10/10, and starts over, the picture doesn’t change with the description and slide number.
Here is my Actionscript. Hopefully someone knows what I did wrong.


delay = 3000;
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        description = [];
        link = [];
        blank = [];
        thumbnails = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
            description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
            link* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
            blank* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
            thumbnails* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
            thumbnails_fn(i);
        }
        id = setInterval(preloadPic, 100);
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
var p = 0;
var current;
var k = 0;
function preloadPic() {
    clearInterval(id);
    var con = picture.duplicateMovieClip("con"+k, 9984+k);
    con.loadMovie(image[p]);
    preloader._visible = 1;
    preloader.swapDepths(con.getDepth()+3);
    con._alpha = 0;
    var temp = _root.createEmptyMovieClip("temp"+k, 99+k);
    k++;
    temp.onEnterFrame = function() {
        var total = con.getBytesTotal();
        var loaded = con.getBytesLoaded();
        percent = Math.round(loaded/total*100);
        preloader.preload_bar._xscale = percent;
        if (con._width) {
            preloader._visible = 0;
            con.onEnterFrame = fadeIn;
            delete this.onEnterFrame;
        }
    };
}

///////////////////////////////////// 
MovieClip.prototype.fadeIn = function() {
    if (this._alpha<100) {
        current._alpha -= 10;
        this._alpha += 10;
    } else {
        current._visible = 0;
        current = this;
        delete this.onEnterFrame;
    }
};
function nextImage() {
    p<total-1 ? (p++, preloadPic()) : null;
    desc_txt.text = description[p];
    picture_num();
            slideshow();
        }
function prevImage() {
    p>0 ? (p--, preloadPic()) : null;
    desc_txt.text = description[p];
    picture_num();
    slideshow();
    }
function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
}
previous_btn.onRelease = function() {
    prevImage();
};
next_btn.onRelease = function() {
    nextImage();
};
function firstImage() {
    if (loaded == filesize) {
        picture._alpha = 0;
        picture.loadMovie(image[0], 1);
        desc_txt.text = description[0];
        picture_num();
        slideshow();
    }
}
function thumbNailScroller() {
    // thumbnail code! 
    this.createEmptyMovieClip("tscroller", 1000);
    scroll_speed = 10;
    tscroller.onEnterFrame = function() {
        if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
            if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
                thumbnail_mc._x -= scroll_speed;
            } else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {
                thumbnail_mc._x += scroll_speed;
            }
        } else {
            delete tscroller.onEnterFrame;
        }
    };
}
function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
        target_mc._x = hit_left._x+(target_mc._width+5)*k;
        target_mc.pictureValue = k;
        target_mc.onRelease = function() {
            p = this.pictureValue-1;
            nextImage();
        };
        target_mc.onRollOver = function() {
            this._alpha = 50;
            thumbNailScroller();
        };
        target_mc.onRollOut = function() {
            this._alpha = 100;
        };
    };
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
function slideshow() {
    
    myInterval = setInterval(pause_slideshow, delay); 
    function pause_slideshow() { 

            // my changes start //////////////////////////
        trace("myInterval="+myInterval);
                // here's your code (stringy)
        for (var i = 1; i<100; i++) {
                    clearInterval(i);
        }
        //clearInterval(myInterval);
        delete myInterval;
            // my changes end //////////////////////////

        if (p == (total-1)) { 
            p = 0; 
            firstImage();
        } else { 
            nextImage();
        }
    }
}

Thanks for any help:)