title: jQuery like image swap in YUI
body: <p>Im trying to replicate a simple hover effect in YUI just like you would with jQuery however its a little confusing.
  As in jquery it would go:</p>
  
  <pre><code>$('.hoverclass').hover(function() {
    $(this).addClass('up');
  }, function() {
    $(this).removeClass('up');
  });
  </code></pre>
  
  <p>Any pointers how to do it in YUI?</p>
  
  <p>Thanks.</p>