/* Archivo nuevo creado para la subpáginas*/

function encabezado ( descripcion ) {
	var html = "";		
		html +=	'	<table width="100%" border=0 cellpadding=0 cellspacing=0 background="images/titularsub_02_04.gif">';
		html +=	'	<tr>';
		html +=	'		<td rowspan=3 width="50%" background="../images/titularsub_02_01.gif">&nbsp;</td>';
		html +=	'		<td><img src="../images/titularsub_02_02.gif" width=509 height=40 alt=""></td>';
		html +=	'		<td background="../images/titularsub_02_03.gif" align="center"><img src="../images/titularsub_02_03a.gif"></td>';
		html +=	'		<td rowspan=3>	<img src="../images/titularsub_02_04.gif" width=2 height=135 alt=""></td>';
		html +=	'		<td rowspan=3>	<img src="../images/titularsub_02_05.gif" width=151 height=135 alt=""></td>';
		html +=	'		<td rowspan=3  width="50%" background="../images/titularsub_02_06.gif">&nbsp;</td>';
		html +=	'	</tr>';
		html +=	'	<tr>';
		html +=	'		<td><img src="../images/titularsub_02_07.gif" width=509 height=28 alt=""></td>';
		html +=	'		<td><img src="../images/titularsub_02_08.gif" width=77 height=28 alt=""></td>';
		html +=	'	</tr>';
		html +=	'	<tr>';
		html +=	'		<td background="../images/titularsub_02_09.gif" align="center" class="TituloEncab">';
				if (descripcion != "") {
				html += descripcion
			}
			html += '				</td>';
		html +=	'		<td><img src="../images/titularsub_02_10.gif" width=77 height=67 alt=""></td>';
		html +=	'	</tr>';
		html +=	'</table>';
		document.write (html);
}
function encabezado2 ( descripcion ) {
	var html = "";		
		html +=	'	<table width="100%" border=0 cellpadding=0 cellspacing=0 background="../../images/titularsub_02_04.gif">';
		html +=	'	<tr>';
		html +=	'		<td rowspan=3 width="50%" background="../../images/titularsub_02_01.gif">&nbsp;</td>';
		html +=	'		<td><img src="../../images/titularsub_02_02.gif" width=509 height=40 alt=""></td>';
		html +=	'		<td background="../../images/titularsub_02_03.gif" align="center"><img src="../../images/titularsub_02_03a.gif"></td>';
		html +=	'		<td rowspan=3>	<img src="../../images/titularsub_02_04.gif" width=2 height=135 alt=""></td>';
		html +=	'		<td rowspan=3>	<img src="../../images/titularsub_02_05.gif" width=151 height=135 alt=""></td>';
		html +=	'		<td rowspan=3  width="50%" background="../../images/titularsub_02_06.gif">&nbsp;</td>';
		html +=	'	</tr>';
		html +=	'	<tr>';
		html +=	'		<td><img src="../../images/titularsub_02_07.gif" width=509 height=28 alt=""></td>';
		html +=	'		<td><img src="../../images/titularsub_02_08.gif" width=77 height=28 alt=""></td>';
		html +=	'	</tr>';
		html +=	'	<tr>';
		html +=	'		<td background="../../images/titularsub_02_09.gif" align="center" class="TituloEncab">';
				if (descripcion != "") {
				html += descripcion
			}
			html += '				</td>';
		html +=	'		<td><img src="../../images/titularsub_02_10.gif" width=77 height=67 alt=""></td>';
		html +=	'	</tr>';
		html +=	'</table>';
		document.write (html);
}

function AdminMenuBox ( part ) {
	if ( part == 1 ) {
		var html = "";
		html +=	'		<table width="171" cellspacing="0" cellpadding="0">';
		html +=	'				<tr>';
		html +=	'					<td width="8" height="8"><img src="images/box_left_top_corner.png"></td>';
		html +=	'					<td height="8" width="156" background="images/box_top.png"></td>';
		html +=	'					<td width="7" height="8"><img src="images/box_right_top_corner.png"></td>';
		html +=	'				</tr>';
		html +=	'				<tr>';
		html +=	'					<td background="images/box_left.png"></td>';
		html +=	'					<td background="images/box_content.png">';
		document.write (html);
	} else {
		var html = "";
		html +=	'					</td>';
		html +=	'					<td background="images/box_right.png"></td>';
		html +=	'				</tr>';
		html +=	'				<tr>';
		html +=	'					<td width="8" height="8"><img src="images/box_left_bottom_corner.png"></td>';
		html +=	'					<td height="8" width="156" background="images/box_bottom.png"></td>';
		html +=	'					<td width="7" height="8"><img src="images/box_right_bottom_corner.png"></td>';
		html +=	'				</tr>';
		html +=	'				<tr>';
		html +=	'					<td height="5" colspan="3"></td>';
		html +=	'			</table>';
		document.write (html);
	}
}

function draw_box ( width , part , title ) {
	if ( part == 1 ) {
		
		var html = "";
			html += '		<table cellspacing="0" cellpadding="0">'
			html += '			<tr>'
			html += '				<td width=2 height="27"><img src="images/form_left_top_corner.png"></td>'
			html += '				<td background="images/form_top.png" style="font-family:arial;font-size:12px;font-color:black;font-weight:bold;vetical-align:top;padding-bottom:6px;padding-left:15px;">'
			if (title != "") {
				html += title
			}
		
			html += '				</td>'
			html += '				<td><img src="images/form_right_top_corner.png"></td>'
			html += '			</tr>';
			html += '			<tr>';
			html += '				<td background="images/form_left.png"></td>';
			html += '				<td background="images/form_content.png">';

		document.write (html);

	} else {

		var html = "";
				
			html += '				</td>'
			html += '				<td background="images/form_right.png"></td>'
			html += '			</tr>'
			html += '			<tr>'
			html += '				<td width="2"><img src="images/form_left_bottom_corner.png"></td>'
			html += '				<td width="589" height="2" background="images/form_bottom.png"></td>'
			html += '				<td width="2" ><img src="images/form_right_bottom_corner.png"></td>'
			html += '			</tr>'
			html += '		</table>'

		document.write (html);
	}
}

function draw_box_Menu ( width , part ) {
	if ( part == 1 ) {


		var html = "";
			html += '		<table cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">'
			html += '			<tr>'
			html += '				<td width=8 height="9"><img src="images/esquina_topleft.gif"></td>'
			html += '				<td height="9" background="images/esquina_top.gif"></td>'
			html += '				<td><img src="images/esquina_topright.gif"></td>'
			html += '			</tr>';
			html += '			<tr>';
			html += '				<td background="images/esquina_left.gif"></td>';
			html += '				<td>';
 
		document.write (html);

	} else {

		var html = "";
				
			html += '				</td>'
			html += '				<td background="images/esquina_right.gif"></td>'
			html += '			</tr>'
			html += '			<tr>'
			html += '				<td width="8"><img src="images/esquina_btmleft.gif"></td>'
			html += '				<td width="'
			html += width
			html += '"height="9" background="images/esquina_bottom.gif"></td>'
			html += '				<td width="8" ><img src="images/esquina_btmright.gif"></td>'
			html += '			</tr>'
			html += '		</table>'

		document.write (html);
	}
}

function MenuPrograma(lic){
	var html="";
    html += '<a href="'
	html += lic
	html += '_objetivo.php">Objetivo</a>&nbsp;&nbsp;'
	if (lic != "his")
	{	html +='&nbsp;<strong>::</strong>&nbsp;<a href="'
		html += lic
		html +='_mapaliq.php">Plan Liquidaci&oacute;n</a>'
	}
	if (lic == "his")
	{	html +='&nbsp;<strong>::</strong>&nbsp;<a href="'
		html += lic
		html +='_tutores.php">Tutorados</a>'
	}
	html +='&nbsp;<strong>::</strong>&nbsp;<a href="'
	html += lic
	html += '_mapatipo.php">Mapa Curricular Tipo</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html += lic
	html += '_informes.php">Informes</a>';
	document.write (html);
}

function MenuAsignatura(lic){
	var html="";
	html += '<TR>';
    html += '  <TD vAlign=top width=780 align="center"><a href="'
	html += lic
	html += '_antrosocial.html">Lic. en Antropología Social</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html += lic
	html += '_arqueologia.html">Lic. en Arqueología</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html += lic
	html += '_comsocial.html">Lic. en Comunicación Social</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html += lic
	html += '_historia.html">Lic. en Historia</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html += lic
	html += '_litlatinoamericana.html">Lic. en Literatura Latinoamericana</a></TD>';
   	html += '</TR>';
	document.write (html);
}

function Menu_Admin() {
	var html = "";
	html += '<table border="0" cellspacing="2">'
	html += '	<tr>'
	html += '		<td><img src="images/icon_link2.gif"></td>'
	html += '		<td><i>Servicios</i></td>'
	html += '	</tr>'
	html += '</table>'
	html += '	<table border="0" cellspacing="2">'
	html += '	<tr>'
	html += '	<td rowspan=10 width=15></td>'
	html += '	<td><img src="images/icon_link1.gif"></td>'
	html += '	<td><a class="link_menu" href="index.php?sub=servicio&accion=listar">Listar</a></td>'
	html += '	</tr>'
	html += '	<tr>'
	html += '	<td><img src="images/icon_link1.gif"></td>'
	html += '	<td><a class="link_menu" href="index.php?sub=servicio&accion=busquedas">Busquedas</a></td>'
	html += '	</tr>'
	html += '	</table>';
	html += '<table border="0" cellspacing="2">'
	html += '	<tr>'
	html += '		<td><img src="images/icon_link2.gif"></td>'
	html += '		<td><i>Actividades</i></td>'
	html += '	</tr>'
	html += '</table>'
	html += '	<table border="0" cellspacing="2">'
	html += '	<tr>'
	html += '	<td rowspan=10 width=15></td>'
	html += '	<td><img src="images/icon_link1.gif"></td>'
	html += '	<td><a class="link_menu" href="index.php?sub=actividad&accion=genera">Actividades</a></td>'
	html += '	</tr>'
	html += '	<tr>'
	html += '	<td><img src="images/icon_link1.gif"></td>'
	html += '	<td><a class="link_menu" href="index.php?sub=actividad&accion=busquedas">Busquedas</a></td>'
	html += '	</tr>'
	html += '	</table>';

document.write (html);

	}
	
function draw_box_Orange ( width , part ) {
	if ( part == 1 ) {


		var html = "";
			html += '		<table cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" width="'
			html += width
			html += '" border="0" height="90%">'
			html += '			<tr>'
			html += '				<td width=8 height="8"><img src="../images/esquina_top_left_orange.gif"></td>'
			html += '				<td width="'
			html += width
			html += ' "height="8" background="../images/esquina_top_center_orange.gif"></td>'
			html += '				<td><img src="../images/esquina_top_right_orange.gif"></td>'
			html += '			</tr>';
			html += '			<tr>';
			html += '				<td background="../images/esquina_side_left_orange.gif"></td>';
			html += '				<td valign="top">';
 
 
		document.write (html);

	} else {

		var html = "";
				
			html += '				</td>'
			html += '				<td background="../images/esquina_side_right_orange.gif"></td>'
			html += '			</tr>'
			html += '			<tr>'
			html += '				<td width="8" height="8"><img src="../images/esquina_bottom_left_orange.gif"></td>'
			html += '				<td width="'
			html += width
			html += ' "height="8" background="../images/esquina_bottom_center_orange.gif"></td>'
			html += '				<td width="8" height="8"><img src="../images/esquina_bottom_right_orange.gif"></td>'
			html += '			</tr>'
			html += '		</table>'

		document.write (html);
	}
}

function draw_box_Orange2 ( width , part ) {
	if ( part == 1 ) {


		var html = "";
			html += '		<table cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" width="'
			html += width
			html += '" border="0" height="90%">'
			html += '			<tr>'
			html += '				<td width=8 height="8"><img src="../../images/esquina_top_left_orange.gif"></td>'
			html += '				<td width="'
			html += width
			html += ' "height="8" background="../../images/esquina_top_center_orange.gif"></td>'
			html += '				<td><img src="../../images/esquina_top_right_orange.gif"></td>'
			html += '			</tr>';
			html += '			<tr>';
			html += '				<td background="../../images/esquina_side_left_orange.gif"></td>';
			html += '				<td valign="top">';
 
 
		document.write (html);

	} else {

		var html = "";
				
			html += '				</td>'
			html += '				<td background="../../images/esquina_side_right_orange.gif"></td>'
			html += '			</tr>'
			html += '			<tr>'
			html += '				<td width="8" height="8"><img src="../../images/esquina_bottom_left_orange.gif"></td>'
			html += '				<td width="'
			html += width
			html += ' "height="8" background="../../images/esquina_bottom_center_orange.gif"></td>'
			html += '				<td width="8" height="8"><img src="../../images/esquina_bottom_right_orange.gif"></td>'
			html += '			</tr>'
			html += '		</table>'

		document.write (html);
	}
}

var randomImagesURL = "fotografias/";
function muestraImagenAleatoria(){

	var randomNumber = (1+(Math.round(23*Math.random()))); 

	document.write('<img src="'+randomImagesURL+randomNumber+'.JPG" width="280" height="210" border="0">');
//	document.write(randomNumber);
}

function MenuMaestria(){
	var html="";
	html += '<BR> ';	
	html += '<ul id="nav"> ';	
	html += '  <li><a href="mca_convocatoria.html">Convocatoria</a></li> ';	
	html += '  <li><a href="mca_requisitos.html">Requisitos</a></li> ';	
	html += '  <li><a href="mca_calendario.html">Calendario Ingreso</a></li> ';	
	html += '  <li><a href="#">Plan de Estudios</a> ';	
	html += '    <ul>';	
	html += '      <li><a href="mca_plan_antsocial.html">Antropología Social</a></li>';	
	html += '      <li><a href="mca_plan_arqueo.html">Arqueología</a></li>';	
	html += '      <li><a href="mca_plan_etnohistoria.html">Etnohistoria</a></li>';	
	html += '    </ul>';	
	html += '  </li> ';	
	html += '  <li><a href="mca_becas.html">Becas</a></li> ';	
	html += '  <li><a href="mca_informes.html">Informes</a> ';	
	html += '</ul>';	
	document.write(html);
}

function MenuTemasAntropologicos(fecha) {
	var html="";
   html += '<a href="'
	html  += fecha
	html  += '_indice.php">Indice</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html  += fecha
	html  += '_presentacion.php">Presentacion</a>&nbsp;<strong>::</strong>&nbsp;<a href="'
	html  += fecha
	html  += '_articulos.php">Articulos</a>&nbsp;<strong>::</strong>&nbsp;<a href="';
	html  += fecha
	html  += '_colaboradores.php">Colaboradores</a>';
	html  += '<br><br>';
	document.write (html);
}
