Loading image from a loop problem

Hey guys,

I have problem with loading an image from a loop.
The method I used is I created an array, then load the xml file with the images. And in the loop, where also the menu is created, I called through the array the wanted image from the xml.

I tried to find the problem, but I don’t get it to work as I want.
The output says that the url is undefined, but sometimes when I try a different aproach, it loads constantly the same picture.

Hopefully can someone help me with this one=)

Cheers,

Baeshin.

http://student.cmd.hro.nl/0781034/menu/menu.zip