$('.sea_content img').replaceWith(function(){
var $that = $(this),
thumb = $that.attr("src"),
fullImage = $that.attr("src").replace(/\/thumbs/, "");
return '<a class="fancybox" href="' + fullImage + '" data-fancybox-group="gallery" title="">' +
'<img class="fancybox_img" src="' + thumb + '" width="200" alt="poseidon">' +
'</a>';
});
А
рони прав. Иногда нужно читать доки.