	function efraim(foto)
	{
		this.descricao;
		this.onde = 'down';
		this.estilo = '';
		this.titulo = 'Classe efraim';
		this.legenda = '';
		this.background = '#FFFFFF';
		this.space = 20;
		this.rjc = function rjc(objJanela, aumentar) {		
			xwidth = objJanela.document.images[0].width;
			xheight = objJanela.document.images[0].height + 29;

			if(aumentar)
				xheight += this.space;

			objJanela.resizeTo(xwidth,xheight);
			var userWidth = window.screen.availWidth;
			var userHeight = window.screen.availHeight;
			var pontoEsquerdo = parseInt(userWidth / 2) - parseInt(xwidth / 2);
			var pontoSuperior = parseInt(userHeight / 2) - parseInt(xheight / 2);
			objJanela.moveTo(pontoEsquerdo, pontoSuperior);
		}
		this.exec = function exec() {
			if(this.descricao != '')
				this.aumentar = true;
			else if(this.descricao == '')
				this.aumentar = false;

			this.janela = window.open("","","width=1, height=1");
	        this.janela.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
	        this.janela.document.write('<html>\n');
	        this.janela.document.write('<head>\n');
	        this.janela.document.write('<title>' + this.titulo + '</title>\n');
	        this.janela.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
	        this.janela.document.write('</head>\n');
	        this.janela.document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="' + this.background + '">\n');
			if(this.estilo != '') {
				this.janela.document.write('<style type="text/css">\n');
				this.janela.document.write('<!--\n');
				this.janela.document.write('.estiloPadrao {\n');
				this.janela.document.write(this.estilo + '\n');
				this.janela.document.write('}\n');
				this.janela.document.write('-->\n');
				this.janela.document.write('</style>\n');
			}

			if(this.descricao != '' && this.onde == 'up') {
				if(this.estilo == '')
					this.janela.document.write('<br>' + this.descricao);
				else if(this.estilo != '')
					this.janela.document.write('<br><font class="estiloPadrao">' + this.descricao + '</font>');
			}
	
	        this.janela.document.write('<img src="' + foto + '" border="0">');
	
			if(this.descricao != '' && this.onde == 'down') {
				if(this.estilo == '')
					this.janela.document.write('<br>' + this.descricao);
				else if(this.estilo != '')
					this.janela.document.write('<br><font class="estiloPadrao">' + this.descricao + '</font>');
			}
	
	        this.janela.document.write('</body>');
	        this.janela.document.write('</html>');
		
			while((this.janela.document.images[0].width < 100) && (this.janela.document.images[0].height + 29 < 100)) {
				this.janela.status = '.';
			}				
			this.rjc(this.janela, this.aumentar);
		}
	}


/* ABAIXO DA META TAG COLOQUE ISSO:

<script language="javascript" src="script.js"></script>
<script language="javascript">
	function nadia(foto, descricao) {
		obj = new efraim(foto);
		obj.background = '';
		obj.estilo = 'font-family: Verdana, Arial, Helvetica, sans-serif;\nfont-size: 9px;\ncolor: #999999;\ntext-align: center;\nfont-weight: bold;\n';
		obj.descricao = '<center>' + descricao + '</center>';
		obj.titulo = 'Empório das Artes';
		obj.exec();
	}
</script>
*/

/* NO LINK # COLOCAR:

<a href="#" onClick="nadia('images/evento02_grd.jpg','Decoração de Eventos: Páscoa')">
*/

	function fotoCL(foto, descricao) {
		obj = new efraim(foto);
		obj.background = '#00784C';
		obj.estilo = 'font-family: Verdana, Arial, Helvetica, sans-serif;\nfont-size: 10px;\ncolor: #ffffff;\ntext-align: left;\nfont-weight: bold;\n';
		obj.descricao = ' &nbsp;&nbsp;&nbsp;' + descricao;
		obj.titulo = 'P&C';
		obj.espaco_comentario = 29;
		obj.exec();
	}

	function fotoSL(foto) {
		obj = new efraim(foto);
		obj.background = '';
		obj.estilo = 'font-family: Verdana, Arial, Helvetica, sans-serif;\nfont-size: 9px;\ncolor: #000000;\ntext-align: center;\nfont-weight: bold;\n';
		obj.descricao = '';
		obj.titulo = 'P&C';
		obj.espaco_comentario = 29;
		obj.exec();
	}

	function fotoSx(foto) {
		obj = new efraim(foto);
		obj.background = '';
		obj.estilo = 'font-family: Verdana, Arial, Helvetica, sans-serif;\nfont-size: 9px;\ncolor: #000000;\ntext-align: center;\nfont-weight: bold;\n';
		obj.descricao = '';
		obj.titulo = 'P&C';
		obj.espaco_comentario = 29;
		obj.exec();
	}


