title: function callback to reload a jquery plugin
body: <p>im new to jquery/javascript and im trying to make a function callback to reload a jquery plugin. what would be the appropriate way to do that?</p>
  
  <pre><code>$(function() {
  
      var newHash      = "",
      $mainContent = $("#main-content"),
      $el;
  
      $("nav").delegate("a", "click", function() {
          window.location.hash = $(this).attr("href");
          return false;
      });
  
      $(window).bind('hashchange', function(){
          newHash = window.location.hash.substring(1); 
          if (newHash) {
              $mainContent
              .find("#guts")
              .fadeOut(200, function() {
                  $mainContent.hide().load(newHash + " #guts", function() {
                      $mainContent.fadeIn(200, function() {
                          /*rebind plugin*/
                      });
                      $("nav a").removeClass("current");
                      $("nav a[href="+newHash+"]").addClass("current");
                  });
              });
          };
      });    
  
      $(window).trigger('hashchange');
  });
  </code></pre>