Get url

I have an array which stores a list of image links from an xml file.

the xml file is as follows:

<gallery name=“beachbug05”>
<image source=“pics/beachbug05/pic1.jpg” thumb=“pics/beachbug05/th1.jpg” title=“Rear” desc=“Description…” link=“pics/beachbug05/pic1.jpg”/>
<image source=“pics/beachbug05/pic2.jpg” thumb=“pics/beachbug05/th2.jpg” title=“Unpainted” desc=“Description…” link=“pics/beachbug05/pic2.jpg”/>
</gallery>

what i’m trying to do is get the value of the current image shown and load it in a new window. (trying to get it to load the link)

I’ve created an array and called it using:

lArray.push(gallery.childNodes*.attributes.link);

now on the button i’m using:

up_Btn.onRelease = function() {

getURL(lArray[this.id], “_blank”);
};

any ideas?

Many Thanks

Sean

if i put the following then it opens up the picture in that postion, but is there a way to get it to open using this.id?

up_Btn.onRelease = function() {

getURL(lArray[0], “_blank”);
};

any ideas?

Many Thanks