title: Calling a function based on jQuery Cookie
body: <p>I am a bit confused and might be missing something in front of my face. </p>
  
  <p>I am using <a href="https://github.com/carhartl/jquery-cookie" rel="nofollow">jQuery cookie</a> to create a cookie in my page. The code is:</p>
  
  <pre><code>var $j = jQuery.noConflict();
  $j(document).ready(function(){
  $j.cookie("homecookie", 1, {expires: 30, path: '/'});
  });
  </code></pre>
  
  <p>I know to read the cookie it would be <code>$j.cookie('homecookie');</code> but after that is where I get confused. I need to call this function <code>$j.colorbox({ inline:true, href:"#gallery-nav-instruct"});</code> How?</p>
  
  <p>In other words if the person has <em>not</em> visited the page then colorbox is called. If the user has visited the page then it is not called. Can someone help me set this up properly as I cannot get it. Please give examples as javascript is not my cup of tea.</p>