how to check if panel is hidden code example
Example: jquery is element hidden
// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");
// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");