window.addEvent('load', function(){
	var maxWidth = window.getSize().x-350;
	var imageIds = 0;
	$$('.postbody img').each(function(item, index) {
		if (item.getSize().x > maxWidth) {
			item.setStyle('width', maxWidth);
			item.set('id', 'forumImage'+imageIds);
			item.set('class', 'resizedImages');
			imageIds++;
			item.addEvent('mouseenter', function() {
				imgZoomer = new Zoomer(item.get('id'),
					{
						smooth: 3,
						big: item.get('src')
					}
				);
			});
		}
	});
});
