function album (id_img, id_titulo, num_total, str_ruta_tmb, str_ruta, str_fotos, etiqueta)
{
	if (document.all)
	{
		this.o_img = document.all[id_img];
		this.o_etiq = document.all[etiqueta];
//		this.o_panel_ant = document.all['panel_ant'];
//		this.o_panel_sig = document.all['panel_sig'];
	}
	else
	{
		this.o_img = document.getElementById(id_img);
//		this.o_panel_ant = document.getElementById('panel_ant');
//		this.o_panel_sig = document.getElementById('panel_sig');
    // Define la propiedad innerText en Firefox, ya que su equivalente es textContent
		HTMLElement.prototype.__defineGetter__("innerText",function () { return(this.textContent); });   
    HTMLElement.prototype.__defineSetter__("innerText",function (txt) { this.textContent = txt; });

		this.o_etiq = document.getElementById(etiqueta);
	}
	this.v_fotos = str_fotos.split ("#");
	this.num_total = num_total;
	this.num_index = 0;
	this.str_ruta_tmb = str_ruta_tmb;
	this.str_ruta = str_ruta;
	this.act_imagen = act_imagen;
}

function act_imagen (mi_album)
{
	this.o_img.src = this.str_ruta + this.v_fotos[this.num_index];
	this.o_etiq.innerText = this.num_index + 1;
/*
	if (this.num_index - 1 > 0)
	{
		this.o_panel_ant.src = this.str_ruta_tmb + this.v_fotos[this.num_index - 1];
	}
	if (this.num_index + 1 < this.num_total)
	{
		this.o_panel_sig.src = this.str_ruta_tmb + this.v_fotos[this.num_index + 1];
	}
	else
	{
		this.o_panel_sig.src = this.str_ruta_tmb + this.v_fotos[0];
	}
*/
	this.num_index++;
	if (this.num_index >= this.num_total) this.num_index = 0;
	setTimeout ("mi_album.act_imagen ()", 7000);
}