I'd like to add simple pagination to this existing script: http://sixrevisions.com/demo/slideshow/final.html & wonder if someone could help me with it.

So basically it would count the number of <div class="slide"> instances and then generate a list (e.g. 1 - 2 - 3 - 4) and each has a hyperlink to that specific slide.

I'm not so hot with Javascript so would love some help with this.

Many thanks for any pointers :-)