/* ---------------------------------------------------------------------------------------------------- */
/* =outbox.team.js */
/* ---------------------------------------------------------------------------------------------------- */

/* constructor */
function team () {};
outboxframework.prototype.team = new team();

/* init */
team.prototype.init = function () {
	this.index_active = 0;
	this.thumbs_container = mxm.dom.getElement("team-thumbs-container");
	this.detail_container = mxm.dom.getElement("team-detail-container");
	this.thumbs = this.thumbs_container.getElementsByTagName("a");
	this.details = this.detail_container.getElementsByTagName("div");
	for (var i=0; i < this.thumbs.length; i++) {
		this.details[i].id = "team-detail-" + i;
		this.thumbs[i].onclick = this.show.bind(this,i);
	}
	this.thumbs[this.index_active].onclick();
}

/* show */
team.prototype.show = function (index) {
	this.details[this.index_active].style.display = "none";
	this.index_active = index;
	this.details[this.index_active].style.display = "block";
	return false;
}

