var i, j, idx,
	q= new Array(0,1,2,2,2,3,3,4,5,5,6,7,8,9,10,10,10,10,11,12,13,13,14,15,16),
	n=q.length;
document.write('</tr><tr><td bgcolor="#000040" height="140"><table height="140" width="100%" border="0" cellpadding="10" cellspacing="1"><tr>');
for(i=0;i<3;i++) {
	idx=i+Math.floor(Math.random()*(n-i)); 
	t=q[idx];
	q[idx]=q[i];
	q[i]=t;
	for(j=i+1;j<n; j++) if(q[j]==t) { q[j]=q[n-1]; n--; j--; }
	switch(q[i]) {
	case 0: document.write('<td width="33%" background="foto/mscth3.jpg" ALIGN="right" VALIGN="bottom"><A HREF="po/localisation_mscth.html" CLASS="bnr">Localisation<BR>of a Mobile Robot</td>');
			break;
	case 1: document.write('<td width="33%" background="foto/assnat.jpg" ALIGN="right" VALIGN="bottom"><A HREF="po/resolv.html" CLASS="bnr">Projecto RESOLV</A><BR>&nbsp;</td>');
			break;
	case 2: document.write('<td width="33%" background="foto/panor_monte.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../foto/panoramicas1.html" CLASS="bnr">Panor&acirc;micas</A><BR>&nbsp;</td>');
			break;
	case 3: document.write('<td width="33%" background="foto/expo_aquario.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../expo98/index.html" CLASS="bnr">Fotografias<BR>da EXPO 98</A></td>');
			break;
	case 4: document.write('<td width="33%" background="foto/miradouro.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../foto/nr.html" CLASS="bnr">Notas e Reflex&otilde;es sobre<BR>Fotografia Digital</A></td>');
			break;
	case 5: document.write('<td width="33%" background="foto/fundo_mar.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../foto/escolha_maquina.html" CLASS="bnr">Como escolher uma<BR>m&aacute;quina fotogr&aacute;fica digital</A></td>');
			break;
	case 6: document.write('<td width="33%" background="foto/web_pavoes.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../www/nr/index.html" CLASS="bnr">Notas e reflex&otilde;es<BR>sobre Web design</A></td>');
			break;
	case 7: document.write('<td width="33%" background="foto/web_puzzle.jpg" ALIGN="right" VALIGN="bottom"><A HREF="po/net_app1.html" CLASS="bnr">Aplica&ccedil;&otilde;es<BR>JavaScript e DHTML</A></td>');
			break;
	case 8: document.write('<td width="33%" background="foto/web_spot.png" ALIGN="right" VALIGN="bottom"><A HREF="po/net_avanc1.html" CLASS="bnr">Exemplos de<BR>JavaScript&nbsp;e&nbsp;DHTML</A></td>');
			break;
	case 9: document.write('<td width="33%" background="foto/forteameix.jpg" ALIGN="right" VALIGN="bottom"><A HREF="po/lsb_abandono.html" CLASS="bnr">Lisboa Abandonada</A><BR>&nbsp;</td>');
			break;
	case 10:document.write('<td width="33%" background="foto/cartilha.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../cartilha/index.html" CLASS="bnr">Cartilha Maternal<BR>de Jo&atilde;o de Deus</A></td>');
			break;
	case 11:document.write('<td width="33%" background="foto/staclara.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../santa-clara/index.html" CLASS="bnr">Mosteiro de<BR>Santa Clara a Velha</A></td>');
			break;
	case 12: document.write('<td width="33%" background="foto/web_mastermind.png" ALIGN="right" VALIGN="bottom"><A HREF="../www/jgcores/index.html" CLASS="bnr">Mastermind e<BR>Jogo das Cores</A></td>');
			break;
	case 13: document.write('<td width="33%" background="foto/panor_monte_ispra.jpg" ALIGN="right" VALIGN="bottom"><A HREF="po/album_fotos1.html" CLASS="bnr">&Aacute;lbuns de<BR>fotografia</A></td>');
			break;
	case 14: document.write('<td width="33%" background="foto/alfama98.jpg" ALIGN="right" VALIGN="bottom"><A HREF="javascript:openAlbum(\'../alfama/index.html\',600,440);" CLASS="bnr">&Aacute;lbum de<BR>Alfama</A></td>');
			break;
	case 15: document.write('<td width="33%" background="foto/praktica.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../foto/praktica1.html" CLASS="bnr">Equipamento<BR>Praktica</A></td>');
			break;
	case 16: document.write('<td width="33%" background="foto/roma04.jpg" ALIGN="right" VALIGN="bottom"><A HREF="../roma04/index.html" CLASS="bnr">ROMA<BR>do cresp&uacute;sculo &agrave; meia-noite</A></td>');
	}
}
document.write('</tr></table></td>');