jQuery Slideshow Plugin (example)

Related article: Tutorial: Creating a jQuery plugin by DevHeart.