$(function() {

  // Show yfrog thumbs
  $("a[href^=http://yfrog]").each(function() {
    var href = $(this).attr('href');
    $(this).html('<img src="'+href+'.th.jpg" alt="" /><br /><a href="'+href+'">'+href+'</a>').css({display: 'block', margin: '15px 0'});
  });

});