BareGallery is a project mainly written in JavaScript, it's free.
BareGallery
BareGallery a jQuery gallery plugin. It is a work in progress. Right now it does slides and fades with pager and captions. It generates basic HTMl allowing you to style it anyway you want.
http://www.ianhoar.com