/***
* MooTools Copyright:copyright (c) 2007 Valerio Proietti, <http://mad4milk.net>
* This script is used to fix for mootools v1.11 , Free for use
* Use :
<script type="text/JavaScript" src="/path/to/mootools.v1.11.js"></script>
<script type="text/JavaScript" src=""/path/to/mootools.v1.11-fix_by_loa.js"></script>
<!-- this js must put at the line after the mootols.js , and please don't set any code between them -->

*/
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;
}
});
if( !Event.KEY_DOWN )Event = $extend(Event, {
KEY_BACKSPACE: 8,KEY_TAB:       9,
KEY_RETURN:   13,KEY_ESC:      27,
KEY_LEFT:     37,KEY_UP:       38,
KEY_RIGHT:    39,KEY_DOWN:     40,
KEY_DELETE:   46,KEY_HOME:     36,
KEY_END:      35,KEY_PAGEUP:   33,
KEY_PAGEDOWN: 34});
