NEED HELP Getting a DD Script To Work on a clean page with a new site

http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm