jQuery, если CSS Property
if( $("#selector").css('display') == 'block') {
//Your code
}
Selfish Seahorse
if( $("#selector").css('display') == 'block') {
//Your code
}