function Button( name, onSource, offSource, downSource ) {
	this.name = name;

	this.onState = new Image();
	this.onState.src = onSource;

	this.offState = new Image();
	this.offState.src = offSource;

	if( !( downSource ) ) {
		downSource = onSource;
	};
	this.downState = new Image();
	this.downState.src = downSource;
};


function Buttons() {
	this.elements = {};
};

Buttons.prototype = {

getButton:function( name ) {
	return( this.elements[ name ] );
},
addButton:function( button ) {
	this.elements[ button.name ] = button;
},
removeButton:function( button ) {
	delete this.elements[ button.name ];
}

};
