I have tabs like this.
//content
Trying to check it like
You can use .css() to get the value of "visibility":
if( ! ( $("#singlechatpanel-1").css('visibility') === "hidden")){ }
http://api.jquery.com/css/