Can someone customize this script so that the "folder" images doesn't have to be used?

http://www.javascriptkit.com/script/cut51.shtml

Apparently, the script doesn't work when I take out the images. I just need a simpler script that allows a headline to be clicked and the article displayed below it.

Thanks in adv.!!