Javascript Question

http://www.swancircle.co.za/slider/slider.html

I have a slider that is working perfectly, only thing I am trying to now call a javascript function when I click on the thumbnail. I cant seem to get the array to work with the xml file…

HELP!

I am using classes.