function writeLogo() {

document.write(" <p style='margin-top: 0px;margin-bottom: 0px'><img src='imgs/logo_ENS.png' border='1' width='210' height='100' alt='Escola de Natação de Santarém'></p>");

}


function writeMenu() {

document.write("					<br>");
document.write("					<table align='center' width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("						<tr>");
document.write("							<td height='20' bgcolor='#C0E0F6' background='imgs/bgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("								<p align='left'><img src='imgs/topleft.gif'></p>");
document.write("							</td>");
document.write("							<td width='100%' bgcolor='#C0E0F6' background='imgs/bgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("								<p align='left' style='font-size:10px;margin-top:5px'>Escolha uma secção</p>");
document.write("							</td>");
document.write("							<td bgcolor='#C0E0F6' background='imgs/bgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("								<img src='imgs/icon.gif'>");
document.write("							</td>");
document.write("						</tr>");
document.write("						<tr>");
document.write("							<td colspan='3' bgcolor='#C0E0F6'>");
link1 = "Inicio";
link2 = "Apresentacao";
link3 = "Informacoes";
link4 = "Escaloes Etarios / Classes";
link5 = "Horarios";
link6 = "Competicao";
link7 = "Diplomas";
link8 = "Contactos";
link9 = "Links";

document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link1);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link1)> Início&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link2);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link2)> Apresentação&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link3);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link3)> Informações&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link4);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link4)> Escalões Etários / Classes&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link5);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link5)> Horários&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link6);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link6)> Competição&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link7);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link7)> Diplomas&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link8);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link8)> Contactos&nbsp; </a></p>");
document.write("								<p class='textoLinks'><img src='imgs/bullet.gif'> <a class='main' onmouseover='javascript:statusBar(link9);return true;' onmouseout='javascript:defaultStatus();return true;' href=javascript:go(link9)> Links&nbsp; </a></p>");
document.write("							</td>");
document.write("						</tr>");
document.write("						<tr>");
document.write("							<td height='1' bgcolor='#C0E0F6' background='imgs/bgBottomTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("							<!--	<img src='imgs/topleft.gif'> -->");
document.write("							</td>");
document.write("							<td width='100%' bgcolor='#C0E0F6' background='imgs/bgBottomTable.png' valign='top' style='background-repeat: repeat-x' height='1'>");
document.write("							<!--	<p align='left' style='margin-bottom:0px'></p> -->");
document.write("							</td>");
document.write("							<td bgcolor='#C0E0F6' background='imgs/bgBottomTable.png' valign='top' style='background-repeat: repeat-x' height='7'>");
document.write("								 <p align='right'><img src='imgs/bottomright.gif' style='margin-top: 0px;margin-bottom:0px;'></p>");
document.write("							</td>");
document.write("						</tr>");
document.write("					</table>");


}


function writeNovidades() {


document.write("					<!----------->");
//document.write("					<hr width='70%' size='1px' class='double-orange'>");
document.write("					<hr width='70%' size='1px'>");
//document.write("					<img src='imgs/hr.gif' WIDTH='70%' height='30'>");
document.write("					<!----------->");
document.write("					<table align='center' width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("						<tr>");
document.write("							<td height='20' bgcolor='#C0E0F6' background='imgs/bgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("								<p align='left'><img src='imgs/topleft.gif'></p>");
document.write("							</td>");
document.write("							<td width='100%' bgcolor='#C0E0F6' background='imgs/bgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("								<p align='left' style='font-size:10px;margin-top:5px'>Novidades</p>");
document.write("							</td>");
document.write("							<td bgcolor='#C0E0F6' background='imgs/bgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("								<!-- <img src='imgs/topright.gif'> -->");
document.write("								<img src='imgs/icon.gif'>");
document.write("							</td>");
document.write("						</tr>");
document.write("						<tr>");
document.write("							<td colspan='3' bgcolor='#C0E0F6'>");



//***************************

document.write("								<p class='novidades'><br>&curren; <b>25 a 27 de Julho de 2003</b> &curren;<br>");
document.write("													Veja os resultados da nossa participação no <b>Campeonato Nacional Grupos Idade</b> em <b>Lisboa.</b>.<br></p>");
linkNews = "news";
document.write("								<p class='novidades' style='text-align: right'><a class='novidades' onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(11,650,550)')>ler mais</a></p>");
document.write("								<hr size='1px' style='width:80%'>");
//document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");


//***************************

document.write("								<p class='novidades'><br>&curren; <b>11, 12 e 13 de Julho de 2003</b> &curren;<br>");
document.write("													Veja os resultados da nossa participação no <b>Campeonato Regional de Grupos Idade</b><br> em <b>Rio Maior.</b>.<br></p>");
linkNews = "news";
document.write("								<p class='novidades' style='text-align: right'><a class='novidades' onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(8,650,350)')>ler mais</a></p>");
document.write("								<hr size='1px' style='width:80%'>");
//document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");




//***************************

document.write("								<p class='novidades'><br>&curren; <b>15 de Junho de 2003</b> &curren;<br>");
document.write("													Veja os resultados da nossa participação no <b>Torneio Ateneu Artístico Cartaxense</b> no <b>Cartaxo.</b>.<br></p>");
linkNews = "news";
document.write("								<p class='novidades' style='text-align: right'><a class='novidades' onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(10,650,550)')>ler mais</a></p>");
document.write("								<hr size='1px' style='width:80%'>");
//document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");


//***************************

document.write("								<p class='novidades'><br>&curren; <b>15 de Junho de 2003</b> &curren;<br>");
document.write("													Veja os resultados da nossa participação no <b>5º Torneio Agrupamento 3</b> no <b>Cartaxo.</b>.<br></p>");
linkNews = "news";
document.write("								<p class='novidades' style='text-align: right'><a class='novidades' onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(9,650,550)')>ler mais</a></p>");
document.write("								<hr size='1px' style='width:80%'>");
//document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");




//***************************

document.write("								<p class='novidades'><br>&curren; <b>24 e 25 de Maio de 2003</b> &curren;<br>");
document.write("													Veja os resultados da nossa participação no torneio <b>Nadador Completo</b> no <b>Entrocamento.</b>.<br></p>");
linkNews = "news";
document.write("								<p class='novidades' style='text-align: right'><a class='novidades' onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(6,650,500)')>ler mais</a></p>");
document.write("								<hr size='1px' style='width:80%'>");
//document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");


//***************************

document.write("								<p class='novidades'><br>&curren; <b>4 de Maio de 2003</b> &curren;<br>");
document.write("													Veja os resultados da nossa participação no torneio <b>Sociedade Filarmónica União Samorense</b> em <b>Samora Correia.</b>.<br></p>");
linkNews = "news";
document.write("								<p class='novidades' style='text-align: right'><a class='novidades' onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(7,650,500)')>ler mais</a></p>");
document.write("								<hr size='1px' style='width:80%'>");
//document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");




//***************************

//document.write("								<p class='novidades'><br>&curren; <b>4 de Maio de 2003</b> &curren;<br>");
//document.write("													Veja os resultados da nossa participação num torneio em //<b>Samora Correia</b>.<br></p>");
//linkNews = "news";
//document.write("								<p class='novidades' style='text-align: right'><a class='novidades' //onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(4,650,500)')>ler mais</a></p>");
//document.write("								<hr size='1px' style='width:80%'>");
////document.write("					<p align='center'><img src='imgs/hr.gif' WIDTH='50%' height='20'></p>");


//***************************

//document.write("								<p class='novidades'><br>&curren; <b>24 e 25 de Maio de 2003</b> &curren;<br>");
//document.write("													A nossa equipa federada vai participar no Torneio //<b>Nadador Completo</b> no <b>Entroncamento</b>...<br></p>");
//linkNews = "news";
//document.write("								<p class='novidades' style='text-align: right'><a class='novidades' //onmouseover='javascript:statusBar(linkNews);return true' onmouseout='javascript:defaultStatus();return true;' href='javascript:news(5,700,550)')>ler mais</a></p>");
//document.write("								<hr size='1px' style='width:80%'>");






//***************************

document.write("							</td>");
document.write("						</tr>");


document.write("						<tr>");
document.write("							<td colspan=\"3\" bgcolor=\"#C0E0F6\">");
document.write("								<p align=\"left\" style=\"margin-left: 20px;font-family: tahoma;font-size:9px;font-weight:800\">");
document.write("								 <select onchange=\"javascript:archive(this.value)\" style=\"font-size:9px;background-color: #FFCC99;font-family: tahoma;color: #FF6600;\"><option value=\"0\" selected>Arquivo de Novidades</option><option value=\"0\">----------------------------------------</option>");
document.write("								<option value=\"2\"><p>15Fev Resultados Benavente </option>");
document.write("								<option value=\"3\"><p>7,8,9Mar Resultados Tomar </option>");
document.write("								</select><br><br></p>");
document.write("							</td>");
document.write("						</tr>");


document.write("						<tr>");
document.write("							<td height='1' bgcolor='#C0E0F6' background='imgs/bgBottomTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("							<!--	<img src='imgs/topleft.gif'> -->");
document.write("							</td>");
document.write("							<td width='100%' bgcolor='#C0E0F6' background='imgs/bgBottomTable.png' valign='top' style='background-repeat: repeat-x' height='1'>");
document.write("							<!--	<p align='left' style='margin-bottom:0px'></p> -->");
document.write("							</td>");
document.write("							<td bgcolor='#C0E0F6' background='imgs/bgBottomTable.png' valign='top' style='background-repeat: repeat-x' height='7'>");
document.write("								 <p align='right'><img src='imgs/bottomright.gif' style='margin-top: 0px;margin-bottom:0px;'></p>");
document.write("							</td>");
document.write("						</tr>");
document.write("					</table>");
document.write("					<!------------>");

}


function writeCopyright() {
document.write("					<p align='right' class='copyright'><span style='color: #dddddd'>última modificação: <b>" + document.lastModified + "</b> | </span>Copyright © 2003 - ENS | Todos os direitos reservados.<br>Site desenvolvido e mantido por<a class='smallLinks' onmouseover='javascript:author(1);return true' onmouseout='javascript:defaultStatus();return true' style='text-decoration: none;font-size: 10px' href='javascript:author()'> André Luís</p>");
}


function writeBegginingOfTable(title,size) {
if (size == null)
	document.write("	<table width='350' align='center'  height='0' border='0' cellspacing='0' cellpadding='0'>");
else
	document.write("	<table width='" + size + "' align='center'  height='0' border='0' cellspacing='0' cellpadding='0'>");

document.write("	<tr>");
document.write("		<td width='1' height='20' bgcolor='#FFFFFF' background='imgs/NORMALbgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("			<p align='left'><img src='imgs/topleft.gif'></p>");
document.write("		</td>");
document.write("		<td width='100%' bgcolor='#FFFFFF' background='imgs/NORMALbgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("			<p class='titleOfTables'>" + title + "</p>");
document.write("		</td>");
document.write("		<td bgcolor='#FFFFFF' background='imgs/NORMALbgTopTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("		</td>");
document.write("	</tr>");
document.write("	<tr>");
document.write("		<td colspan='3' bgcolor='#EEEEEE' valign='top'> ");
}

function writeEndOfTable() {
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("	<td height='1' bgcolor='#FFFFFF' background='imgs/NORMALbgBottomTable.png' valign='top' style='background-repeat: repeat-x'>");
document.write("	</td>");
document.write("	<td width='100%' bgcolor='#FFFFFF' background='imgs/NORMALbgBottomTable.png' valign='top' style='background-repeat: repeat-x' height='1'>");
document.write("	</td>");
document.write("	<td bgcolor='#FFFFFF' background='imgs/NORMALbgBottomTable.png' valign='top' style='background-repeat: repeat-x' height='7'>");
document.write("		 <p align='right'><img src='imgs/NORMALbottomright.gif' style='margin-top: 0px;margin-bottom:0px;'></p>");
document.write("	</td>");
document.write("</tr>");
document.write("</table>");
}
