with (document) {
	write('<style type="text/css">');
	write('  table.textoMenu a{color: white; font-family: Arial; font-weight: bold; font-size: 17px; text-decoration: none}');
	write('  table.textoMenu a:visited{color: white; font-family: Arial; font-weight: bold; font-size: 17px; text-decoration: none}');
	write('  .textoCabecera {color: #004099; font-family: Arial; font-weight: bold; font-size: 12px}');
	write('</style>');
}
function cabeceraPagina() {
	with (document) {
		write('<body style="background: url(/img/FondoPagina.jpg) repeat-x scroll #005B8A" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
		
		write('<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="100%">');
		write('<tr>');
		write('	<td width="50%"></td>');

		write('	<td align="center">');
		write('		<table background="/img/FondoCabecera.png" BORDER="0" CELLPADDING="0" CELLSPACING="0">');
		
		write('			<tr>');
		write('				<td rowspan="2"><img width="15" height="80" SRC="/img/punto.gif"></td>');
		write('				<td rowspan="2"><img SRC="/img/LogoSortes.png"></td>');
		write('				<td rowspan="2"><img width="220" height="80" SRC="/img/punto.gif"></td>');
		write('				<td colspan="3" align="right"><a target="Viciojuegos" href="http://www.viciojuegos.com"><img border="0" SRC="/img/LogoViciojuegos.png"></a></td>');
		write('				<td rowspan="2"><img width="15" height="80" SRC="/img/punto.gif"></td>');
		write('			</tr>');

		write('			<tr>');
//		write('				<td nowrap="true" align="right" class="TextoCabecera">Iniciar Sesión</td>');
//		write('				<td><img SRC="/img/CajaBuscar.png"></td>');
//		write('				<td><img width="15" height="1" SRC="/img/punto.gif"></td>');
		write('				<td nowrap="true" align="right" class="TextoCabecera"></td>');
		write('				<td></td>');
		write('				<td><img width="15" height="1" SRC="/img/punto.gif"></td>');
		write('			</tr>');

		write('			<tr>');
		write('				<td colspan="7">');
		write('					<table border="0" CELLPADDING="0" CELLSPACING="0">');
		write('						<tr>');
		write('							<td><img width="45" height="71" SRC="/img/punto.gif"></td>');
		write('							<td width="700" height="71" background="/img/FondoMenu.png">');
		write('								<table border="0" CELLPADDING="0" CELLSPACING="0" class="TextoMenu">');
		write('									<tr>');
		write('											<td><img width="20" height="20" SRC="/img/punto.gif"></td>');
		write('											<td><img width="110" height="1" SRC="/img/punto.gif"></td>');
		write('											<td><img width="110" height="1" SRC="/img/punto.gif"></td>');
		write('											<td><img width="110" height="1" SRC="/img/punto.gif"></td>');
		write('											<td><img width="110" height="1" SRC="/img/punto.gif"></td>');
		write('											<td><img width="110" height="1" SRC="/img/punto.gif"></td>');
		write('											<td><img width="110" height="1" SRC="/img/punto.gif"></td>');
		write('											<td><img width="20" height="1" SRC="/img/punto.gif"></td>');
		write('									</tr>');
		write('									<tr>');
		write('										<td><img width="10" height="31" SRC="/img/punto.gif"></td>');
		write('										<td align="center"><a href="home.htm">Inicio</a></td>');
		write('										<td align="center"><a href="servicios.htm">Servicios</a></td>');
		write('										<td align="center"><a href="nosotros.htm">Nosotros</a></td>');
		write('										<td align="center"><a href="soporte.htm">Soporte</a></td>');
		write('										<td align="center"><a href="proyectos.htm">Proyectos</a></td>');
		write('										<td align="center"><a href="contactar.htm">Contactar</a></td>');
		write('										<td><img width="10" height="31" SRC="/img/punto.gif"></td>');
		write('									</tr>');
		write('									<tr><td colspan="8"><img width="700" height="20" SRC="/img/punto.gif"></td></tr>');
		write('								</table>');
		write('							</td>');
		write('							<td><img width="35" height="71" SRC="/img/punto.gif"></td>');
		write('						</tr>');
		write('					</table>');
		write('				</td>');
		write('			</tr>');
		
		write('		</table>');

		write('		<table BORDER="0" CELLPADDING="0" CELLSPACING="0">');
		write('			<tr>');
		write('				<td colspan="3"><img width="1" height="5" SRC="/img/punto.gif"></td>');
		write('			</tr>');
		write('			<tr>');
		write('				<td><img width="40" height="1" SRC="/img/punto.gif"></td>');
		write('				<td valign="top">');
		
	}
}

function piePagina() {	with (document) {
		write('				</td>');
		write('				<td><img width="30" height="1" SRC="/img/punto.gif"></td>');
		write('			</tr>');
		write('			<tr>');
		write('				<td><img width="1" height="30" SRC="/img/punto.gif"></td>');
		write('				<td align="center" class="TextoPie" valign="middle">');
//		write('					Condiciones de Uso | Política de Privacidad | <a class="TextoPie" href="contactar.htm">Contactar</a>');
		write('				</td>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('			</tr>');
		write('			<tr>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('				<td bgcolor="ffffff"><img width="695" height="1" SRC="/img/punto.gif"></td>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('			</tr>');
		write('			<tr>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('				<td align="center" class="TextoPie">Copyright 2001-2010 © SORTES Ingeniería Informática, S.L.</td>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('			</tr>');
		write('			<tr>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('				<td align="center" class="TextoPie">P&aacute;gina optimizada para Internet Explorer 7 y Mozilla Firefox 3 o superiores.</td>');
		write('				<td><img SRC="/img/punto.gif"></td>');
		write('			</tr>');

		write('		</table>');

		write('		<img width="40" height="1" SRC="/img/punto.gif"></td>');

		write('	</td>');
	
		write('	<td width="50%"></td>');

		write('</tr>');
		write('</table>');


		write('</body>');
	}
	
}
