Kwicks library is an oldie but a goodie. Here is some javascript that may help you if you are looking to calculate the different events it generates and produce a slideshow. It took me a while so may save you some time :)
http://www.autac.co.uk/ to see it in action Test Test2 Test3