<?php
	function noticia($tematica, $fecha, $titulo, $texto)
	{
		?>
			<center>
			<table width="80%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="20" background="../../img/tabla/esquina_izquierda.gif">
						<img src="../../img/blank.gif" width="1" height="1" hspace="0" vspace="0" alt="" title="" align="center" border="0">
					</td>
					<td width="30%" height="25" align="center" valign="bottom" background="../../img/tabla/centro.gif">
						<center>
						<font color="#aa0000" size="2" face="courier">
						<?php echo $fecha; ?>
						</font>
						</center>
					</td>
					<td width="20" background="../../img/tabla/esquina_derecha.gif">
						<img src="../../img/blank.gif" width="1" height="1" hspace="0" vspace="0" alt="" title="" align="center" border="0">
					</td>
					<td>
						<img src="../../img/blank.gif" width="1" height="1" hspace="0" vspace="0" alt="" title="" align="center" border="0">
					</td>
				</tr>
				<tr>
					<td width="20" bgcolor="#aa0000"">
						<img src="../../img/blank.gif" width="1" height="1" hspace="0" vspace="0" alt="" title="" align="center" border="0">
					</td>
					<td width="30%" align="center" bgcolor="#aa0000" valign="top">
						<br>
						<center>
						<table border="0" align="center" cellspacing="5" cellspacing="0" bgcolor="#ffffff">
							<tr>
								<td align="center" valign="top">
									<center>
									<img src="../../img/noticias/<?php echo $tematica ?>.gif" alt="<?php echo $tematica; ?>" title="Tema: <?php echo ucfirst($tematica); ?>" width="60" height="60" hspace="0" vspace="0">
									</center>
								</td>
							</tr>
						</table>
						</center>
						<br>
					</td>
					<td width="20" bgcolor="#aa0000">
						<img src="../../img/blank.gif" width="1" height="1" hspace="0" vspace="0" alt="" title="" align="center" border="0">
					</td>
					<td align="left" valign="top" bgcolor="#aa0000">
						<center>
						<table width="95%" align="center" border="0" cellpadding="4" cellspacing="4">
							<tr>
								<td align="center" bgcolor="#ffffff" title="<?php echo $titulo; ?>">
									<center>
									<font color="#aa0000" size="4" face="arial">
									<?php echo $titulo; ?>
									</font>
									</center>
								</td>
							</tr>
							<tr>
								<td>
									<font color="#ffffff" size="3" face="verdana">
									<?php echo $texto; ?>
									</font>
								</td>
							</tr>
						</table>
						</center>
				 	</td>
				</tr>
			</table>
			</center>		 
		<?php
	}


	function imagen($path, $width, $height, $title, $texto = "")
	{
		?>
			<center>
			<table width="80%" border="0" cellpadding="6" cellspacing="0" align="center">
				<tr>
					<td align="center" bgcolor="#aa0000">
						<center>
						<img src="<?php echo $path; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" hspace="0" vspace="0" alt="" title="<?php echo $title; ?>" align="center" border="0">
						</center>
					</td>
				</tr>
			<?php if (trim($texto) != "") { echo '<tr><td align="center" bgcolor="#ffffff"><center><font color="#aa0000" size="3" face="verdana">' . $texto . '</center></td></tr>'; } ?>
			</table>
			</center>
		<?php
	}

	function video($codigo, $texto = "")
	{
		?>
			<center>
			<table width="80%" border="0" cellpadding="6" cellspacing="0" align="center">
				<tr>
					<td align="center" bgcolor="#0000aa">
						<center>
						<?php echo $codigo; ?>
						</center>
					</td>
				</tr>
			<?php if (trim($texto) != "") { echo '<tr><td align="center" bgcolor="#ffffff"><center><font color="#0000aa" size="3" face="verdana">' . $texto . '</center></td></tr>'; } ?>
			</table>
			</center>
		<?php
	}
?>
