Looks absolutely perfect! I'll try to get it working in my project tonight. Not entirely sure how you did it, so hopefully copying it word for word will work.
Thanks so much!
EDIT: Worked like a charm! Thanks again for your help (and everyone else, too!). Now I can finally move on to the rest of my project.