var big_size=2;
var small_alt="点击看大图";
var big_alt="点击还原";
var imgs_out,imgs,i,imgs_size_arr;
imgs_out=document.getElementById("content");
imgs_id_pre="content_img_";
imgs_size_arr=new Array();
if (imgs_out){
	imgs=imgs_out.getElementsByTagName("img");
	for(var i=0;i<imgs.length;i++){
		imgs[i].id=imgs_id_pre+i;
		imgs[i].style.cursor="pointer";
		imgs_size_arr[i]=new Array("small",imgs[i].width,imgs[i].height,imgs[i].alt);
		imgs[i].alt=small_alt+imgs[i].alt;
		imgs[i].onmousedown=function (){
			var id=this.id.replace(imgs_id_pre,"");
			var status=imgs_size_arr[id][0];	
			var old_w=imgs_size_arr[id][1];
			var old_h=imgs_size_arr[id][2];
			var old_alt=imgs_size_arr[id][3];
			var next_w,next_h;
			if (status=="small"){
				next_w=old_w*big_size;
				next_h=old_h*big_size;
				this.width=next_w;
				this.height=next_h;
				imgs_size_arr[id][0]="big";
				this.alt=big_alt+old_alt;
				if (this.width==old_w){
					this.runtimeStyle.width=next_w+"px";
					this.runtimeStyle.height=next_h+"px";
				}
			}
			else{
				next_w=old_w;
				next_h=old_h;
				this.width=next_w;
				this.height=next_h;
				imgs_size_arr[id][0]="small";
				this.alt=small_alt+old_alt;
				if (this.width!=old_w){
					this.runtimeStyle.width=next_w+"px";
					this.runtimeStyle.height=next_h+"px";
				}
			}
		}
	}
}