function fliper(unclicked, clicked){
	TempObject = new Object;
	TempObject = {

		lastClicked : null,

		button_unclicked : null,

		button_clicked : null,

		ao_associated_bodies : new Array(),
		ao_alt_associated_bodies : new Array(),

		add_new_node : function (s_id) {
			this.ao_associated_bodies.push(document.getElementById(s_id));
		},

		add_new_alt_node : function (s_id) {
			this.ao_alt_associated_bodies.push(document.getElementById(s_id));
		},

		focus_on : function (s_id, button) {
			if(this.lastClicked != null) this.lastClicked.className = this.button_unclicked;
			this.lastClicked = button;
			this.lastClicked.className = this.button_clicked;

			o_node = document.getElementById(s_id);
			for(i=0; i < this.ao_associated_bodies.length; i++){
				if(this.ao_associated_bodies[i].style)this.ao_associated_bodies[i].style.display = "none";
				if(typeof this.ao_alt_associated_bodies[i] != "undefined")this.ao_alt_associated_bodies[i].style.display = "none";
				
				if(this.ao_associated_bodies[i] == o_node && typeof this.ao_alt_associated_bodies[i] != "undefined") this.ao_alt_associated_bodies[i].style.display = "";
			}
			if(o_node.style)o_node.style.display = "";
		}

	}
	TempObject.button_unclicked = unclicked;
	TempObject.button_clicked = clicked;

	return TempObject;
}

