Props to @krames on this one - I think we have a winner. I like the fact that we were able to accomplish this with a minimal amount of code *in the right place*, and it's very clear what's going on.