Preloader thumbnail gallery

Is there anyone who can provide code (help out) to add a preloader for the thumbs on this great kirupa gallery found here:

http://www.kirupa.com/developer/mx2004/thumbnails.htm

A preloadbar and percentage loader if possible. Big thx in advance. Grtz