XML menu

i used the XML picture gallery found in this website. Now what I want to do is instead of the thumbnails I want to create a menu on the side that gives me a description of what the picture is. When the user clicks on the text it will load the image like it would normally. Here is what I have

function amelist() {
    this._parent.contents.txt.htmlText = "";
    trace(description[(j-1)].substr(0, 15));
    for (var j = 1; j<=total; j++) {
        this._parent.contents.txt.htmlText += "<a href='asfunction:picgetter'>"+j+". "+description[(j-1)].substr(0, 15)+"</a><br>";
    }
}
//
_global.picgetter = function() {
    if (p<=0) {
        picture["pic"+p]._alpha = 0;
        picture["pic"+p].loadMovie(image[p], picture["pic"+p].swapDepths(picture.getNextHighestDepth()));
    }
};

Thanks and I hope I was clear enough.