var rutaImagenes = "img_menu/";
var rutaHome = "index.html";
var rutaVentana = "#";


function pintarArriba() {
	document.write ("  <table align=\"right\" border=\"0\" width=\"600\" height=\"20\" cellspacing=\"0\" cellpadding=\"0\" class=\"barra\" >\n");
	document.write ("	<tr>\n")
	document.write ("      <td  height=\"16\" align=\"right\" valign=\"top\">\n");
	document.write ("		<a href=\"http://www.uclm.es/index.asp\" class=\"barra\" >Inicio</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("		<a href=\"http://directorio.uclm.es/\" class=\"barra\" >Directorio</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("		<a href=\"http://intranet.uclm.es/\" class=\"barra\" >Intranet</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("		<a href=\"http://www.uclmtv.uclm.es/\" target=\"_blank\" class=\"barra\">UCLMtv</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("		<a href=\"http://www.uclm.es/mapa\" target=\"_blank\" class=\"barra\">Mapa</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("		<a href=\"http://www.uclm.es/buscar\"  class=\"barra\">Búsqueda</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("		<a href=\"http://www.uclm.es/ayuda\"  class=\"barra\">Ayuda</a>\n");
	document.write ("		&nbsp;&nbsp;&nbsp;\n");
	document.write ("	  </td>\n");
	document.write ("    </tr>\n");
	document.write ("    </table>\n");
	
}

function Establecer_Left(matriz)
{
	if (matriz == 1){
		if (Resolucion() == 800)
		{
			return 470
		}
		else if (Resolucion() == 1024)
		{
			return 615
		}
		else if (Resolucion() == 1280)
		{
			return 745
		}
	}
	else if (matriz == 2){
		if (Resolucion() == 800)
		{
			return 530
		}
		else if (Resolucion() == 1024)
		{
			return 700
		}
		else if (Resolucion() == 1280)
		{
			return 830
		}
	}
	else if (matriz == 3){
		if (Resolucion() == 800)
		{
			return 600
		}
		else if (Resolucion() == 1024)
		{
			return 760
		}
		else if (Resolucion() == 1280)
		{
			return 890
		}
	}
	else if (matriz == 4){
		if (Resolucion() == 800)
		{
			return 680
		}
		else if (Resolucion() == 1024)
		{
			return 830
		}
		else if (Resolucion() == 1280)
		{
			return 960
		}
	}
//alert(Resolucion())
	//return 510
}

function Resolucion()
{
	var height=0; var width=0;
	if (self.screen) {     // for NN4 and IE4
		width = screen.width;
		height = screen.height
	}
	
	return width
}	
