javascript: completing action only if a div is visible
<pre><code>$.swapImage.swapOut = function() {
        if ($(this).find('.popup').is(':visible') !== true) 
{
    alert(ASDASD)
     $.swapImage.swap(this, "sout");
}
</code></pre>

<p>I am trying to find if the div "popup+this" (example popup1) is visible before completing the action. Any i ideas?</p>
