title: Variable working for if statement, but not click functions
body: <p>I am new here and was looking to see if I could get something answered. </p>
  
  <p>How come the variable works for the first if statement, but not the click functions?</p>
  
  <pre><code>var Page = $.cookie('Page')
  
  $(function () {
  
      if (Page == '0') $('.mainmenu #active').addClass('disable');
  
      $('.pageback').click(function () {
          if (Page == '1') $('.mainmenu #active').addClass('disable');
      }); // disable menu navigation  
  
      $('.pagenext').click(function () {
          if (Page == '0') $('.mainmenu #active').removeClass('disable');
      }); // disable menu navigation
  });
  </code></pre>