
function Dimensions ( habitat ) {
	this.habitat = habitat;
	this.width = 750;
	this.height = 500;
	this.habitat_width = 750;
	this.habitat_height = 500;
	if (this.get()) {
	}
}


Dimensions.prototype.get = function() {
	var css = this.habitat.css;
	this.width = css.get_inner_width();
	this.height = css.get_inner_height();
	if ((this.width == 0) || (this.height == 0)) {
		return false;
	}
	this.habitat_width = 750;
	this.habitat_height = 500;
	this.padding = ((this.width > this.habitat_width) ? ((this.width - this.habitat_width) / 2) : 0 );
	return true;
};

