I think the jQuery way of doing this (a bit cleaner) is:
.is(":visible")
http://stackoverflow.com/questions/178325/testing-if-something-is-hidden-with-jquery