JQuery on home page first visit
<p>I have successfully added a full screen popup on my homepage using bpopup.</p>

<p>It works great but only works when a button is pressed. I want the popup to appear o the homepage and only the homepage whenever a user visits the site for the first time.</p>

<p>The code i have is:</p>

<pre><code>&lt;script&gt;
   // Semicolon (;) to ensure closing of earlier scripting
    // Encapsulation
    // $ is assigned to jQuery
    ;(function($) {

         // DOM Ready
        $(function() {

            // Binding a click event
            // From jQuery v.1.7.0 use .on() instead of .bind()
            $('button').bind('click', function(e) {

                // Prevents the default action to be triggered. 
                e.preventDefault();

                // Triggering bPopup when click event is fired
                $('#announce').bPopup();

            });

        });

    })(jQuery);
&lt;/script&gt;
</code></pre>

<p>This works great but how do i add a cookie related handler to it?</p>

<p>Thanks in advance for any help. Its really appreciated.</p>
