var artButtonGroupManager = new ArtButtonGroupManager();




function ArtButtonGroupManager() {
	this.groups = new Array();

	this.isSwitchedOn = _isSwitchedOn;
	this.switchButton = _switchButton;
	this.resetButtons = _resetButtons;
}
	function _switchButton(button,group,normalImage){
		if(typeof this.groups[group] == 'undefined'){this.groups[group] = new Array();}
		for(var i in this.groups[group]){
			if(i!=button.id){
				if(this.groups[group][i]!=false){
					document.getElementById(i).src = this.groups[group][i];
					this.groups[group][i] = false;
				}
			}
		}
		this.groups[group][button.id] = normalImage;
	}

	function _isSwitchedOn(id,group){
		for(var i in this.groups[group]){
			if(i==id){
				if(this.groups[group][i]!=false){
					return true;
				}
			}
		}
		return false;
	}

	function _getOnMouseOver(id){

	}

	function _resetButtons(group){
		for(var i in this.groups[group]){
			if(this.groups[group][i]!=false){
				document.getElementById(i).src = this.groups[group][i];
				this.groups[group][i] = false;
			}
		}
	}










function ArtImageButton(id){
	this.status = false;
	this.id = id;
	this.normalImage = false;
}