var toggleLista = function() {
	var d = this.lista.style.display;
	if( d == 'block' ) {
		this.lista.style.display = 'none';
		this.className = 'mais';
	} else {
		$('emails').$t('h4').forEach( function( el ) { el.lista.style.display = 'none'; el.className = 'mais'; } );
		this.lista.style.display = 'block';
		this.className = 'menos';
	}
}

var parseEmails = function( el )
{
	el.$t('h4').forEach( function( el ) {
		el.lista = $( 'emails' + ( el.id.substring( 9 ) ) );
		el.lista.style.display = 'none';
		el.className = 'mais';
		Evt.add( el, 'click', toggleLista );
	});
}

onElementLoad( 'emails', parseEmails );
