php photogallery with lightbox that pulls large and small photos from directories. Directories are ordered in the way the page is ordened