var qqx1=530
var TID
var width_yuan=new Array()
var height_yuan=new Array()
function suitPic_no() {
	window.clearTimeout(TID)
	suitPic_again();
//	window.setTimeout("suitPic()", 1000)
}

function suitPic_again() {
	try {
		for (i = 0; i < document.images.length; i++) {
			if (width_yuan[i] > qqx1) {
				document.images[i].width = width_yuan[i]
				document.images[i].height = height_yuan[i]
			}
		}
//		window.setTimeout("suitPic_again()", 1000)
	}
	catch(e) {
//		window.setTimeout("suitPic_again()", 1000)
	}
}

function suitPic() {
	try {
		for (i = 0; i < document.images.length; i++) {
			if (document.images[i].width > qqx1 && document.images[i].name != "qqx_01") {
				width = document.images[i].width
				width_yuan[i] = width
				height = document.images[i].height
				height_yuan[i] = height
				n = document.images[i].width / qqx1
				document.images[i].width = qqx1
				document.images[i].height = height / n
				//document.images[i].insertAdjacentHTML("AfterEnd", "<table border=0 width=100% cellspacing=0 cellpadding=0><tr><td style='padding-top:10; color:#000000;'><a href='" + document.images[i].src + "'   class=dispic>" + document.images[i].src + "</a>©¦" + width + "¡Á" + height + " [<a href='javascript:suitPic_no()'>Í¼Æ¬»Ö¸´</a>]</td></tr></table>")
				document.images[i].insertAdjacentHTML("AfterEnd", "<table border=0 width=100% cellspacing=0 cellpadding=0><tr><td style='padding-top:10; color:#000000;'><a href='" + document.images[i].src + "'   class=dispic></a>[ Picture size: " + width + "¡Á" + height + "&nbsp;&nbsp;<a href='javascript:suitPic_no()' style='color:#000000;'><u>Renew</u></a> ]</td></tr></table>")
			}
		}
		TID=window.setTimeout("suitPic()", 1000)
	}
	catch(e) {
		TID=window.setTimeout("suitPic()", 1000)
	}
}