JQuery Flags not working
<p>I'm sure it's a simple problem, and has an obvious answer, but the fact of the matter is I can't work it out. Basically, if the div is clicked, and the variable exists, do this, if not, do that. But none of it works.</p>

<p>Ideas?</p>

<pre><code>$("#lisea").click(
            var set = false;
            if(set) {
                function() {
                    $("body").animate({
                    opacity: 1
                    }, 500);
                    var set = false;
                }
            }
            if(!set) {
                function() {
                    $("body").animate({
                    opacity: 0.25
                    }, 500);
                    var set = true;
                }
            }
        );
</code></pre>
