window.addEvent('domready', function() {
	var maxImgWidth = 290;
	$$('#home_left #news_items img').each(function(img) {
		if (img.width > maxImgWidth && img.height > 0) {
			var aspectRatio = img.width / img.height;
			img.setStyle('width', maxImgWidth + 'px');
			img.setStyle('height', Math.round(maxImgWidth / aspectRatio) + 'px');
		}
	});
});
