function Modulo_novedades()
{
	this.PESTANA_LO_ULTIMO=null;
	this.PESTANA_LO_MAS_VISTO=null;

	this.CUERPO_LO_ULTIMO=null;
	this.CUERPO_LO_MAS_VISTO=null;

	this.comprobado=false;
}

Modulo_novedades.prototype.comprobar=function()
{
	this.PESTANA_LO_ULTIMO=document.getElementById('pestana_lo_ultimo');
	this.PESTANA_LO_MAS_VISTO=document.getElementById('pestana_lo_mas_visto');
	this.CUERPO_LO_ULTIMO=document.getElementById('cuerpo_lo_ultimo');
	this.CUERPO_LO_MAS_VISTO=document.getElementById('cuerpo_lo_mas_visto');

	this.comprobado=true;

	return this.PESTANA_LO_ULTIMO && this.PESTANA_LO_MAS_VISTO && this.CUERPO_LO_ULTIMO && this.CUERPO_LO_MAS_VISTO;
}

Modulo_novedades.prototype.iniciar=function()
{
	if(this.comprobado)
	{
		this.iniciar_eventos();
	}
}

Modulo_novedades.prototype.iniciar_eventos=function()
{
	var aquello=this;

	this.PESTANA_LO_ULTIMO.onclick=function()
	{
		aquello.activar_desactivar_pestana(aquello.PESTANA_LO_ULTIMO, aquello.PESTANA_LO_MAS_VISTO);
		aquello.activar_desactivar_cuerpo(aquello.CUERPO_LO_ULTIMO, aquello.CUERPO_LO_MAS_VISTO);
	}

	this.PESTANA_LO_MAS_VISTO.onclick=function()
	{
		aquello.activar_desactivar_pestana(aquello.PESTANA_LO_MAS_VISTO, aquello.PESTANA_LO_ULTIMO);
		aquello.activar_desactivar_cuerpo(aquello.CUERPO_LO_MAS_VISTO, aquello.CUERPO_LO_ULTIMO);
	}
}

Modulo_novedades.prototype.activar_desactivar_pestana=function(v_activar, v_desactivar)
{
	v_activar.className='titulo actual';
	v_desactivar.className='titulo';
}	

Modulo_novedades.prototype.activar_desactivar_cuerpo=function(v_activar, v_desactivar)
{
	v_desactivar.className='oculto';
	v_activar.className='cuerpo';
}

