Number.extend({
              decimalFormat: function(decimals)
              {
                return this.round(decimals).toFixed(decimals);
              }
});

// Fix getWidth/getHeight for Opera >= 9.5
// Backport from http://dev.mootools.net/changeset/1355

window.extend({

	/*
	Property: getWidth
		Returns an integer representing the width of the browser window (without the scrollbar).
	*/

	getWidth: function(){
		if (this.webkit419) return this.innerWidth;
		if (this.opera && !document.getElementsByClassName) return document.body.clientWidth;   
    
		return document.documentElement.clientWidth;
	},

	/*
	Property: getHeight
		Returns an integer representing the height of the browser window (without the scrollbar).
	*/

	getHeight: function(){
		if (this.webkit419) return this.innerHeight;
    if (this.opera && !document.getElementsByClassName) return document.body.clientHeight;
		
		return document.documentElement.clientHeight;
	}
  
 }
);