Combining Kirupa Sliding Menu with Flash XML thumbnailer

I want to make a gallery with a sliding effect of “Kirupa Sliding Menu", but with an infinite menu which activated by buttons like in goto()'s "[URL=“http://www.kirupa.com/forum/showthread.php?t=266583”]Flash XML thumbnailer”.
So I combined these two, and tweaked it a little so the action of the “thumbnailer” button will trigger the change of pictures instead of opening links.

The problem is - the link variable is loaded from XML, and somehow I can’t transfer this variable to the “Sliding Menu” function.

When I hardcode the parameter of the “Sliding Menu” function, the sliding works fine:

newThumb.desc=root.childNodes*.childNodes[1].firstChild.nodeValue;
newThumb.link=root.childNodes*.childNodes[2].firstChild.nodeValue;
newThumb.cont.loadMovie(image);
newThumb.onRelease=function() {
    _global.btnLink = this.link;
    _root.menuSlide(_parent.contentHold.[COLOR=Red]**content2**[/COLOR]);
    //_root.menuSlide(_parent.contentHold.btnLink);
}

But when I define the function parameter to XML variable, the sliding doesn’t work:

newThumb.desc=root.childNodes*.childNodes[1].firstChild.nodeValue;
 newThumb.link=root.childNodes*.childNodes[2].firstChild.nodeValue;
 newThumb.cont.loadMovie(image);
 newThumb.onRelease=function() {
     _global.btnLink = this.link;
     _root.menuSlide(_parent.contentHold.[COLOR=Red]**btnLink**[/COLOR]);
     //_root.menuSlide(_parent.contentHold.content2);
 }

So, how can I set the path to my sliding content dynamically?
Attached all related files.
Any help will be greatly appreciated!
Thanks in advance.