function getBodyScrollTop() {
	return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}

function getClientWidth() {
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight() {
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

function re_pic() {
	if (getClientWidth()<=1027) changePicClass("pic_sm");
	else changePicClass("pic");
}

function changePicClass(class_name) {
	var myDiv = document.getElementById('pics');
		if (!myDiv) return;
	var aList= myDiv.getElementsByTagName('img');
	for (i=0; i<aList.length; ++i) {
		if (aList[i].className!=class_name) aList[i].className=class_name;
		else return;
	}
}
