function image_crop(id)
{
	width_old = $("#item_"+id).attr("width");
	height_old = $("#item_"+id).attr("height");
	var width = 128;
	var scale = width_old/width;
	$("#item_"+id).attr({ height: height_old/scale, width: width });
}

$(function() {
/*	width_old = $("img").attr("width");
	height_old = $("img").attr("height");
	/*var height = 85;			
	var scale = height_old/height;			
	$("img").attr({ width: width_old/scale, height: height });
	var width = 128;
	var scale = width_old/width;
	$("img").attr({ height: height_old/scale, width: width });*/
});