// JavaScript Document
sb_listImgResize();

function sb_listImgResize(){
	var dd = $name("dd");
	for(i=0 ; dd.length > i ; i++){
		if(dd[i].className == "list_content"){
			var a = dd[i].firstChild.firstChild;
			var img = dd[i].firstChild.firstChild.firstChild;	
			if(!img){var img = a.nextSibling.firstChild;a.style.display = "none";var a = a.nextSibling;}/* アップミスの */
			if(!img){var img = a.nextSibling.firstChild;a.style.display = "none";var a = a.nextSibling;}/* 保険 */
			if(img.width>img.height){
				img.style.width= 160 + "px";
				img.style.height = 120 + "px";
				img.style.marginLeft = -20 + "px";
			}
			else if(img.width<img.height){
				img.style.height= 160 + "px";
				img.style.width = 120 + "px";
				img.style.marginTop = -20 + "px";
			}
		}
	}
}
