Fixed some bugs in the cross-fading slideshow code that prevented it from being used more than once on a page.