var opts = {duration:0.5};

function showElement(elm) {
	Effect.toggle(elm, 'blind');
}

function accordeon(clase, elm) {
	hideAll(clase, elm);
	showElement(elm);
	return false;
}

function hideAll(clase, current_elem) {
 	boxIds = $$('div.' + clase);
	for (i = 0; i < boxIds.length; i++) {
		if (boxIds[i].id != current_elem) {
			Effect.BlindUp(boxIds[i], opts);
		}
	}
}
