Josh Powell Sun, 30 Aug 2009 13:04:23 -0700
Even simpler:
$('img.thumb').click(function () { $(this).toggleClass('dim'); });