/* ===================================================================== */
/* TEAM */

function preparePersons(label){

	$("span.person").each(function(i){
		openHtml = '<div class="openControl" id="show_'+this.id+'" onclick="openInfo(this)">' + label + '</div>';
		$("#_" + this.id).before(openHtml);
	});
	
	$("span.person").toggle(function() {
		$("#_" + this.id).show('slow');
		$("#show_" + this.id).hide();
	}, function() {
		$("#_" + this.id).hide('fast');
		$("#show_" + this.id).show();
	});
}


function closeInfo(el){
	$('#' + el.parentNode.id.substring(1)).click();
}

function openInfo(el){
	$('#' + el.id.substring(5)).click();
	$("#" + el.id).hide();
}