function Publicacion() {}

Publicacion.activar = function( tipo ) {
	if ( obj = document.getElementById( "publicacion_" + tipoActual ) ) {
		obj.style.minHeight = '0px';
		obj.style.height = '0px';
		document.getElementById( "vinculo_" + tipoActual ).className = "";
	}
	if ( obj = document.getElementById( "publicacion_" + tipo ) ) {
		obj.style.height = '';
		obj.style.minHeight = document.getElementById( "cuerpo_publicacion_" + tipo ).offsetHeight + 'px';
		document.getElementById( "vinculo_" + tipo ).className = "seleccionado";
	}
	tipoActual = tipo;
}
