function resizeImg_sina(_oObj, _iWidth){
	var tMark = true;var iWidth = 0;var sOuterHtml;var aNode = _oObj.attributes;
	for(var i = 0; i < aNode.length; i++){if(aNode[i].specified){if(aNode[i].name == "width" || aNode[i].name == "height"){tMark = false;}}}
	if(tMark){if(_iWidth){setTimeout("resize()",500);}}
	this.resize = function(){if(_oObj.width > _iWidth){_oObj.width = _iWidth;}}
}
function resizeImg(obj,width)
{
	var w = obj.width;
	var h = obj.height;
	if(w > width)
	{
		obj.resized=true;
		obj.width = width;
		obj.height = h * width / w;		
	}
}
function resizefaceImg(obj,width)
{
	var w = obj.width;
	var h = obj.height;
	if(w > width)
	{
		obj.resized=true;
		obj.width = width;		
		obj.height = h * width / w;		
	}
}
function imageControl(width,imgid)
{ 
	var px; 
	var image=new Image(); 
	image.src=document.getElementById(imgid).src; 
	if(image.width>width)
	{
		 image.resized=true;
		 px=width/image.width; 
		 document.getElementById(imgid).width=width; 
		 document.getElementById(imgid).height=image.height*px; 
	} 
}
//----------------120_80-----------------
function resizeM_120_80(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_120_80;
 tempM.doload = resizeMonLoad_120_80;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}

function resizeMonLoad_120_80()
{
     var el = this.el;
	 var maxW = 120;
	 var maxH = 80;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}

//----------------160_120-----------------
function resizeM_160_120(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_160_120;
 tempM.doload = resizeMonLoad_160_120;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}

function resizeMonLoad_160_120()
{
     var el = this.el;
	 var maxW = 160;
	 var maxH = 120;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}
//----------------45_40-----------------
function resizeM_45_40(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_45_40;
 tempM.doload = resizeMonLoad_45_40;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}

function resizeMonLoad_45_40()
{
     var el = this.el;
	 var maxW = 45;
	 var maxH = 40;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}

//----------------120_80-----------------
function resizeM_123_93(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_123_93;
 tempM.doload = resizeMonLoad_123_93;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}

function resizeMonLoad_123_93()
{
     var el = this.el;
	 var maxW = 123;
	 var maxH = 93;
	 el.style.visibility="visible";	
	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}

//----------------120_80-----------------
function resizeM_450_330(el)
{
 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_450_330;
 tempM.doload = resizeMonLoad_450_330;
 if(el.fileSize && (el.fileSize>0)){tempM.doload();};
}

function resizeMonLoad_450_330()
{
     var el = this.el;
	 var maxW = 450;
	 var maxH = 330;
	 el.style.visibility="visible";
	 if(this.width < maxW)
	 {		
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  { 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}
//----------------75_75-----------------
function resizeM_75_75(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_75_75;
 tempM.doload = resizeMonLoad_75_75;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}

function resizeMonLoad_75_75()
{
     var el = this.el;
	 var maxW = 75;
	 var maxH = 75;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}
//----------------55_55-----------------
function resizeM_55_55(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_55_55;
 tempM.doload = resizeMonLoad_55_55;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}
function resizeMonLoad_55_55()
{
     var el = this.el;
	 var maxW = 55;
	 var maxH = 55;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}
//----------------120_80-----------------
function resizeM_120_80(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_120_80;
 tempM.doload = resizeMonLoad_120_80;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}
function resizeMonLoad_120_80()
{
     var el = this.el;
	 var maxW = 120;
	 var maxH = 80;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}
//----------------116_86-----------------
function resizeM_116_86(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_116_86;
 tempM.doload = resizeMonLoad_116_86;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}
function resizeMonLoad_116_86()
{
     var el = this.el;
	 var maxW = 116;
	 var maxH = 86;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}
//----------------120_80-----------------
function resizeM_142_112(el)
{

 if(el.runtimeStyle)
 {
	el.runtimeStyle.behavior="none";
 }

 var tempM = new Image();
 tempM.src = el.src ;
 tempM.el = el;
 tempM.onload = resizeMonLoad_142_112;
 tempM.doload = resizeMonLoad_142_112;
 if(el.fileSize && (el.fileSize>0)){; tempM.doload();};
}

function resizeMonLoad_142_112()
{
     var el = this.el;
	 var maxW = 142;
	 var maxH = 112;
	 el.style.visibility="visible";

	 if(this.width < maxW)
	 {
		el.style.width = this.width + "px";
	 }

	 if(this.height < maxH)
	 {
		el.style.height = this.height + "px";
	 }
	 
	 if(this.width>this.height)
	 {
		  if(this.width >= maxW)
		  {; 
			  var r = maxW / this.width;
			  el.style.height = (this.height * r ) + "px";
			  el.style.width = maxW + "px";
		  }
	 }
	 else
	 {
		if(this.height >= maxH)
		{
			var r = maxH / this.height;
			el.style.width = (this.width * r )+ "px";
			el.style.height = maxH + "px";
		}
	 }
}