From http://snook.ca/archives/javascript/simplest-jquery-slideshow