/*
 * Foto
 * 
 * Version: 	$Revision: 1.0 $
 * Author:  Antonio Hernández Ritoré 
 */
 
function Foto(clave, texto, estado){
// 	Definicion de atributos
	this.album = null;
	this.clave = clave;
	this.texto = texto;
	this.estado = estado;
		
//	Definicion de metodos
	this.setAlbum = setAlbum;
	this.toHTML = fotoToHTML;	
}

function setAlbum(albm){
	this.album = albm;
}

function fotoToHTML(){
	s = "<TABLE cellpadding=0 cellspacing=0 width='100%' height='100%'><TR><TD align=center>";
	s +="<IMG class='foto' src='" + this.album + "/" + this.clave + ".jpg'></TD></TR>";
	s += "<TR><TD align=center>" + this.texto  + "</TD></TR></TABLE>";
	return s;
}

