How to use setTimeout to toggle a class in jquery?
<p>This code uses a mouse click to toggle a class on an image. 
I'd like this transition to happen automatically using <code>setTimeout</code>.</p>

<pre><code>$(document).ready(function() {
  $("#cf_onclick").click(function() {
    $("#cf2 img.top").toggleClass("transparent");
  });
});
</code></pre>