Both JQuery and YUI have libraries already built to do these slide shows. spend a few min on google and you'll find something.