title: jQuery Cycle Plugin callback error
body: <p>I can't get before &amp; after callbacks to work with the cycle plugin for jQuery!</p>
  
  <p>I'm not sure what's going wrong, i even tried using the sample code from the documentation.</p>
  
  <p>Here's the code: </p>
  
  <pre><code>$(document).ready(function(){
  
      function onBefore() { alert('before'); }
  
      $('.slideshow').cycle({
          before: 'onBefore'
      });
  });
  </code></pre>
  
  <p>and it throws an error: "Error: opts.before[0].apply is not a function"</p>
  
  <p>and in chrome: "Uncaught TypeError: Object onBefore has no method 'apply'"</p>
  
  <p>what is happening!?</p>