$(function () {
	$('img,input[type=image]').each(function () {
		var ofSrc = $(this).attr('src');
		var ovSrc = ofSrc.replace('_n.', '_r.');
		$(this).hover(function () {
			$(this).attr('src', ovSrc);
		}, function () {
			$(this).attr('src', ofSrc);
		});
		$(window).unload(function () {
			$(this).attr('src', ofSrc);
		});
	});
});

