function imgResize(obj){
     obj.width = obj.parentElement.width;
     obj.height = obj.parentElement.height;
}




//»ÃµÆÍ¼Æ¬¿ªÊ¼

<!--
function adRotator() {};
adRotator.initialize=function(o,w1,h1,s1,x1)
{
	// script by blueDestiny

	this._t = new Array();
	this._l = new Array();
	this._p = new Array();
	this._i = new Image();
	this._c = 0;
	this._f = false;
	this._o = o;

	this._timeout = null;
	this._html = "";

	// configration.
	// @ image width
	// @ image height
	// @ rotator speed
	// @ filter type

	this._w = w1;
	this._h = h1;
	this._s = s1;
	this._x = x1;

	return this;
};
adRotator.add=function(p,t,l) { with (this)
{
	_p.push(p);
	_t.push(t);
	_l.push(l);
}};

adRotator.load=function() { with (adRotator)
{
	if( _i.readyState=='complete' )
	{
		if(_p.length-1==_c)
		{
			_f = true;
			_c = 0;
			window.clearTimeout(_timeout);
			//getRef("AdRotator").innerHTML="complete";
			adRotator.play();
		}
		else
		{
			_c++;
			//getRef(_o).innerHTML="total images " + _p.length + ", loading picture " + _c + ' ' + _i.readyState + "...";
			_timeout=window.setTimeout(adRotator.load,10)
		}
	}
	else
	{
		//getRef(_o).innerHTML="total images " + _p.length + ", loading picture " + _c + ' ' + _i.readyState + "...";
		_timeout=window.setTimeout(adRotator.load,10)
	}
}};

adRotator.play=function() { with (adRotator)
{
	if( _f )
	{
	_html = "";
	_html += '<table style="border:0px solid #fff;"><tr><td style="font-size:9pt;font-family:tahoma;">'
	_html += '<div id="rotatorPlayer"'
			+ ' style="width:' + _w + ''
			+ ';height:"' + _h + '"'
			+ '>'
	_html += '<a href="' + ( _l[_c] ? _l[_c] : "javascript:void(0);" ) + '">';
	_html += '<img id="rotatorPic" src="' + _p[_c] + '"'
			+ ' width="' + _w + '"'
			+ ' height="' + _h + '"'
			+ (_t[_c]?' title="' + _t[_c] + '"':'')
			+ ' style="border:0px solid #369;FILTER:revealTrans(transition=' + _x + ',duration=1);"'
			+ ' >';
	_html += '</a>';
	_html += '<div align="center" style="filter:alpha(style=1,opacity=10,finishOpacity=90);background: #666;width:100%-2px;text-align:right;top:-12px;position:relative;height:12px;line-height:12px;font:9px sans-serif;padding:0px;margin:0px;border:0px;">';
	for(var i=0; i<_p.length; i++)
		_html += '<a'
					+ ' class=axx style="border:0px;padding:0px;text-align:center;width:16px;line-height:12px;font:9px sans-serif;cursor:'
					+ (_c==i ? ('default;background-color:#FF4400;"') : 'hand;" onclick="adRotator.select(' + i + ')"')
					+ '><font style="line-height:12px;font:9px sans-serif;color:#fff">&nbsp;  '
					+ (i>8?(i+1):(''+(i+1)))+' &nbsp;</font></a> ';
	
	_html += "</div>";
	_html += (_t[_c]?('<div align="center" style="height:22px;margin-top:-10px;"><font color=#000000> ' + _t[_c] + '</font></div>'):'<p></p>');//' + (_c+1) + '.±àºÅ
	
	_html += "</div>";
	
	_html += "</td></tr></table>";
	getRef(_o).innerHTML = _html;

	getRef("rotatorPic").filters[0].Apply();
	getRef("rotatorPic").filters[0].Play();

	next();
	}
	else
	{
		_i.src = _p[_c];
		adRotator.load();
	}
}};
adRotator.next=function() { with (this)
{
	(_p.length-1==_c) ? _c=0 : _c++;
	_timeout=window.setTimeout(adRotator.play,_s*1000);
}};
adRotator.select=function(i) { with (this)
{
	window.clearTimeout(_timeout);
	_c=i;
	adRotator.play();
}};
adRotator.set=function(second) { with (this)
{
	window.clearTimeout(_timeout);
	if((/\d+/).test(second)==true)
	{
		_s=second;
		adRotator.play();
	}
	else
	{
		alert("must be digit!")
		adRotator.play();
	}
}};
function getRef(id)
{
	return (document.all?document.all(id):document.getElementById(id));
}

//»ÃµÆÍ¼Æ¬½áÊø
//-->