window.onload = function()
{
	var textWidth = 350;
	$('img').each(function()
	{
		if ($(this).width() > textWidth)
		{
			var img = $(this).attr('src');
			$(this).width(textWidth);
			$(this).after(
				$('<div></div>').append('Full size: ')
			.append($('<a></a>').attr('href', img).text(img)));
		}
	});
};


