title: cannot access function within function in javascript
body: <p>I need to know what I am doing wrong because I cannot call the internal functions show or hide?</p>
  
  <pre><code>(function()
  {
      var Fresh = {
          notify:function()
          {
              var timeout = 20000;
              $("#notify-container div").get(0).id.substr(7,1) == "1" &amp;&amp; (show(),setTimeout(hide(),timeout));
              var show = function ()
              {
                  $("body").animate({marginTop: "2.5em"}, "fast", "linear");
                  $("#notify-container div:eq(0)").fadeIn("slow");
              },
              hide = function()
              {
                 $("#notify-container div").hide();
              }
          }//END notify
      }
      window.Fresh = Fresh;
  })();
  Fresh.notify();
  </code></pre>
  
  <p>thanks, Richard</p>