I am trying to create a simple image slideshow type thing with the Javascript code below, but it is not displaying in my page.
The JavaScript:

var waiPics = [];
waiPics[0] = 'images/path.jpg';...