Well, I figured out my own inelegant solution. When the page opens, I have jQuery set the REL attribute of all the thumbs to "todos." I put the code on all of the buttons as well. The "Assemblages" button finds all of the elements with the class "assemblage" and sets the REL attribute to "assemblage." I'm sure there's a better way, but this gets the job done.
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx