
function resizeProductImages()
{
	jQuery('.product img.180').each(function(){
		var height = jQuery(this).height();
		var width  = jQuery(this).width();
		
		jQuery(this).width(180);
		if (jQuery(this).height() > 120)
		{
			var marginTop = ( jQuery(this).height() - 120 ) / 2;
			jQuery(this).css('margin-top', -marginTop);
			
			jQuery(this).parent().css({
				'display'	: 'block',
				'overflow'	: 'hidden',
				'height'	: 120
			});
		}
	});
}


jQuery(document).ready(function(){
	resizeProductImages();
});

