var MooToolsFixByLoa = {
version: '1.11'
,date: '2007-11-05'
};
Element.extend({
setStyle:function(property, value){
	switch(property){
		case 'opacity': return this.setOpacity(parseFloat(value));
		case 'float': property = (window.ie) ? 'styleFloat' : 'cssFloat';
/*fix on ie Add by loa(locke_ad@yahoo.com.tw) 2007-11-05*/
case 'width':
case 'height':if (window.ie)if (value.toInt()<1)value=1;break;
/*fix end*/
	}
	property = property.camelCase();
	switch($type(value)){
		case 'number': if (!['zIndex', 'zoom'].contains(property)) value += 'px'; break;
		case 'array': value = 'rgb(' + value.join(',') + ')';
	}
	this.style[property] = value;
	return this;
}
});
