nome_album = "030901album";
fotoabre = 1; // Número da foto do "abre"

path_album = "http://noticias.uol.com.br/ultnot/assuntododia/030901album/"; // (é onde o album ficara no ar)
data = "01/09/2003"; 

thumbs = 9; // número de thumbs
reverso = 1; //Crescente coloque "0" ou Decrescente coloque "1"




//--------------------------------- Função para criar as Fotos -------------------------------
// Creditos
credito = new Array();
credito[1] = "AFP";
credito[2] = "AFP";
credito[3] = "Reuters";
credito[4] = "AFP";
credito[5] = "AFP";
credito[6] = "AFP";
credito[7] = "Reuters";
credito[8] = "Fernando Santos/Folha Imagem";
credito[9] = "Reuters";
credito[10] = "";
credito[11] = "";
credito[12] = "";
credito[13] = "";
credito[14] = "";
credito[15] = "";
credito[16] = "";
credito[17] = "";
credito[18] = "";
credito[19] = "";
credito[20] = "";
credito[21] = "";
credito[22] = "";
credito[23] = "";
credito[24] = "";
credito[25] = "";
credito[26] = "";
credito[27] = "";
credito[28] = "";
credito[29] = "";
credito[30] = "";
credito[31] = "";
credito[32] = "";
credito[33] = "";
credito[34] = "";
credito[35] = "";
credito[36] = "";
credito[37] = "";
credito[38] = "";
credito[39] = "";
credito[40] = "";
credito[41] = "";
credito[42] = "";
credito[43] = "";
credito[44] = "";


legenda = new Array();
legenda[1] = "O ator Charles Bronson, famoso por filmes de ação, morre aos 81 anos de pneumonia";
legenda[2] = "Bombeiros combatem incêndio em Figarella (França)";
legenda[3] = "Soldado indiano exibe balas confiscadas perto da fronteira com o Paquistão";
legenda[4] = "Muçulmanos realizam funeral do aiatolá Mohammed Baqir al Hakim, assassinado no dia 29 em um atentado em Najaf";
legenda[5] = "TV Al Jazeera leva ao ar fita com suposta voz de Saddam em que o ex-ditador negaria autoria do ataque em Najaf";
legenda[6] = "Motorista paquistanês espia da janela de seu caminhão, pintado para agradecer a Deus pela prosperidade";
legenda[7] = "Farmácias holandesas venderão maconha para tratamento médico";
legenda[8] = "Imagem de arquivo de Elano, convocado para a seleção brasileira após a contusão de Kléberson";
legenda[9] = "Organização do Aberto dos Estados Unidos tenta secar a quadra após chuva na cidade";
legenda[10] = "";
legenda[11] = "";
legenda[12] = "";
legenda[13] = "";
legenda[14] = "";
legenda[15] = "";
legenda[16] = "";
legenda[17] = "";
legenda[18] = "";
legenda[19] = "";
legenda[20] = "";
legenda[21] = "";
legenda[22] = "";
legenda[23] = "";
legenda[24] = "";
legenda[25] = "";
legenda[26] = "";
legenda[27] = "";
legenda[28] = "";
legenda[29] = "";
legenda[30] = "";
legenda[31] = "";
legenda[32] = "";
legenda[33] = "";
legenda[34] = "";
legenda[35] = "";
legenda[36] = "";
legenda[37] = "";
legenda[38] = "";
legenda[39] = "";
legenda[40] = "";
legenda[41] = "";
legenda[42] = "";
legenda[43] = "";
legenda[44] = "";

chapeu = new Array();
chapeu[1] = "O adeus de Charles Bronson";
chapeu[2] = "Fogo em Figarella";
chapeu[3] = "Balas na Índia";
chapeu[4] = "Funeral do<br>aiatolá";
chapeu[5] = "Será<br>Saddam?";
chapeu[6] = "Caminhão bem colorido";
chapeu[7] = "Maconha,<br>o remédio";
chapeu[8] = "Elano na<br>seleção";
chapeu[9] = "Chuva em<br>Nova York";
chapeu[10] = "";
chapeu[11] = "";
chapeu[12] = "";
chapeu[13] = "";
chapeu[14] = "";
chapeu[15] = "";
chapeu[16] = "";
chapeu[17] = "";
chapeu[18] = "";
chapeu[19] = "";
chapeu[20] = "";
chapeu[21] = "";
chapeu[22] = "";
chapeu[23] = "";
chapeu[24] = "";
chapeu[25] = "";
chapeu[26] = "";
chapeu[27] = "";
chapeu[28] = "";
chapeu[29] = "";
chapeu[30] = "";
chapeu[31] = "";
chapeu[32] = "";
chapeu[33] = "";
chapeu[34] = "";
chapeu[35] = "";
chapeu[36] = "";
chapeu[37] = "";
chapeu[38] = "";
chapeu[39] = "";
chapeu[40] = "";
chapeu[41] = "";
chapeu[42] = "";
chapeu[43] = "";
chapeu[44] = "";


url = new Array(150);                     
url[1] = "http://www1.uol.com.br/diversao/";  
url[2] = "http://noticias.uol.com.br/ultnot/";       
url[3] = "http://noticias.uol.com.br/ultnot/";
url[4] = "http://noticias.uol.com.br/ultnot/";
url[5] = "http://noticias.uol.com.br/inter/reuters/2003/09/01/ult729u28531.jhtm";
url[6] = "http://noticias.uol.com.br/ultnot/";
url[7] = "http://noticias.uol.com.br/inter/reuters/2003/09/01/ult729u28526.jhtm";
url[8] = "http://noticias.uol.com.br/pelenet/santos/ultimas/2003/09/01/ult1201u1530.jhtm";
url[9] = "http://esporte.uol.com.br/ultimas/reuters/2003/09/01/ult28u25236.jhtm";
url[10] = "";
url[11] = "";
url[12] = "";
url[13] = "";
url[14] = "";
url[15] = "";
url[16] = "";
url[17] = "";
url[18] = "";
url[19] = "";
url[20] = "";
url[21] = "";
url[22] = "";
url[23] = "";
url[24] = "";
url[25] = "";
url[26] = "";
url[27] = "";
url[28] = "";
url[29] = "";
url[30] = "";
url[31] = "";
url[32] = "";
url[33] = "";
url[34] = "";
url[35] = "";
url[36] = "";
url[37] = "";
url[38] = "";
url[39] = "";
url[40] = "";
url[41] = "";
url[42] = "";
url[43] = "";
url[44] = "";

now = new Date();

function makefoto() {
Loc = location.href;
img = Loc.substring (Loc.indexOf ("imagem=")+7)






// -------------------------------- NÃO EDITAR NADA A PARTIR DAQUI ---------------------------------//


// Carrega Credito, Imagem e Legenda
if (img < 10) { 
  fotoimg = "0" + img;
} else {
  fotoimg = img;
}

document.write('<img src=http://img.uol.com.br/x.gif width=1 height=5 border=0><BR><table cellpadding=0 cellspacing=0 border=0 align=center>');                                                       
document.write('  <tr><td align=right><font face=arial size=1 color=#000000>  <b>' + credito[img] + '</b></td></tr>');
document.write('  <tr>');                                                                                       
document.write('    <td valign=bottom align=center colspan=2>');
document.write('     <img src=http://n.i.uol.com.br/ultnot/assuntododia/' + nome_album + '/foto' + fotoimg + '.jpg?ts='+now.getTime()+' border=1>');
document.write('    </td>');  
document.write('  </tr>');                                                                                       
document.write('  <tr>');                                                                                       
document.write('    <td valign=top align=center><font face=verdana size=2 color=#000000> ' + legenda[img] + ' </font>');
document.write('    </td>');
document.write('    </tr>');
document.write('</table>');
}


function openFoto(num) {
		parent.foto.location.href = 'fotos.htm?imagem=' + num;
		window.open(url[num],'abre','width=760,height=600,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1')
}

//--------------------------------- Função para fazer os Thumbs -------------------------------
function makethumbs() 
{
	nthumb = 0;
	
document.write('<table width=160 cellpadding=1 cellspacing=0 border=0 align=center>');

if(reverso == 1) n = thumbs + 1; else n =0;


for(i=1; i<=thumbs; i++) 	{
	(reverso ==1) ? n-- : n++;
	(n > 9) ? nthumb = n : nthumb = "0" + n;
	document.write('<tr>');
	document.write('<td><a href=javascript:openFoto(\'' + n + '\')><img src=http://n.i.uol.com.br/ultnot/assuntododia/' + nome_album + '/thumb' + nthumb + '.jpg?ts='+now.getTime()+' width=65 height=65 border=0 hspace=3></a></td>');
	document.write('<td><font size=1 color=#FFFFFF face=verdana><b>'+chapeu[n]+'</b></font></td>');
 	document.write('</tr>');
 	document.write('<tr><td colspan=2><img src=http://n.i.uol.com.br/ultnot/assuntododia/' + nome_album + '/traco.gif border=0></td></tr>');
}

document.write('</table>');
}
//--------------------------------- Função para criar os frames do álbum -------------------------------

function makeframes() {
	abre = "";
	getParser(location.href);
	if (abre == "") abre = fotoabre;
	if (thumbs >=3) {
		document.write('  <frameset rows=*,90 frameborder=0 border=0>');
		document.write('   <frameset cols=*,180>');
		document.write('         <frame name=foto src=fotos.htm?imagem=' + abre + ' marginwidth=0 marginheight=0 scrolling=no frameborder=0 border=0>');
		document.write('  			<frameset rows=*,40 frameborder=0 border=0>');
		document.write('        	<frame name=thumbs src=thumbs.htm marginwidth=0 marginheight=0 scrolling=auto frameborder=0 border=0>');
		document.write('        	<frame name=envie src=envie.htm marginwidth=0 marginheight=0 scrolling=no frameborder=0 border=0>');
		document.write('   			</frameset>');
		document.write('   </frameset>');
		document.write('   <frame src=banner.htm name=banner scrolling=no frameborder=NO marginwidth=0 marginheight=0 noresize>');
		document.write(' </frameset>');
	} else {
		document.write('<frameset rows=*,90 frameborder=0 border=0>');
		document.write('   <frame name=foto src=fotos.htm?imagem=' + fotoabre + ' marginwidth=0 marginheight=0 scrolling=no frameborder=0 border=0>');
		document.write('   <frame src=banner.htm name=banner scrolling=no frameborder=NO marginwidth=0 marginheight=0 noresize>');
		document.write(' </frameset>');
	}
}

function Popup() {
	abre = "";
	getParser(location.href);
	if (abre == "") abre = fotoabre;
	self.name="abre";
	if (thumbs >=3) {
   	n = 1
   	var Popup = null
   	Popup = window.open('album.htm?abre=' + abre,'album','width=600,height=460,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no')
   	if (Popup != null) {
   	 if (Popup.opener == null) {
   	   Popup.opener = self
   	 }
   	}
   location.replace(url[abre]);
	} else {
   	n = 1
   	var Popup = null
   	Popup = window.open('album.htm?abre=' + abre,'album','width=468,height=460,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no')
   	if (Popup != null) {
   	 if (Popup.opener == null) {
   	   Popup.opener = self
   	 }
   	}
   location.replace(url[abre]);
	}  
}
 

// GetMethodParserJS ::: fermads @ uol ////
function getParser(L)
{
d=L.substring(L.indexOf("?")+1);
c=v=new Array();
c=d.split("&");
for(i=0;i<c.length&&c.length>0;i++) {
	v=c[i].split("=");
	if(v.length>1)eval(v[0]+"='"+unescape(v[1])+"'");
	}
}