function imageInit(img){
	var width=86;//图片框的宽
	var height=88;//图片框的高
	var ref;//以高或宽为基准缩放图片
	var base;
	var step = 1;
	var scale;//图片的高宽比例	
	var imgWidth = img.width;
	var imgHeight = img.height;
	
	if(imgWidth >= imgHeight){
		scale = imgWidth/imgHeight;
		while(imgWidth > width){
			imgWidth = imgWidth - step;
		}
		img.width = imgWidth;
		img.height = imgWidth/scale;
		
	}else{
		scale = imgHeight/imgWidth;
		while(imgHeight > height){
			imgHeight = imgHeight - step;
		}
		img.width = imgHeight/scale;
		img.height = imgHeight;
		
	}
	
	
}
