JQuery - Hide id if Class is Visible
In order to hide a class is a class is visable the following is used. Below will hide the div id #bannerad is the class .back is visible.
if ($('.back').is(":visible") == true)
$( "#bannerad" ).hide();