JavaScript Help

Hello guys. I found a gallery script from a tutorial here http://www.alistapart.com/articles/imagegallery

I am able to get the script to work. But my problem is trying to modify it.
I would like to use the script so that I can add another title and a description to the targeted image link. From what I am understanding this script uses the “title attribute” to add a brief description to the correct image. I need to add more details but I am unsure how to do so.

Any help would be greatly appreciated.