function reposicionar(){
			if (ope)
			{	SetTop("lCuerpo",-10);
			}
		}
		var persiana;
		var canal;
		var subcanal;
		var aCanales = new Array();
		var tCanales = "";
		var resolucion;				//Se comprueba la resolucion del usuario
		var nPosLeft = 0;			//Posicion left donde debera de situarse la capa
		var nPosTop = 0;			//Posicion top donde se va a situar la capa
		var tipoFondo;				//Color de fondo de las tablas
		function objCanal(){
			this.id;
			this.posicion;
			this.texto;
			this.hijos = new Array();
			this.desplegado = 0;
			this.separador;
			this.URL;
			this.ayuda;
			this.color;
			this.icono;
		}
		function comprobar_resolucion() {
			if ((ns4) || (ns6)) {	history.go(0); }
			else { inicio(); }
		}
		function redibujar()
			{	var nObjs = aCanales.length;
				var cLink = "";
				tCanales = "";
				for (var i=0; i<=(nObjs-1);i++)
				{
					cLink = (ns4)?"n4link":"ielink";
					tipoFondo = "canales0105";
					if (aCanales[i].color == '2') {
						tipoFondo = "canales1314";
					}
					else { tipoFondo = "canales0105"; }
					if (aCanales[i].color == '3') {
						tipoFondo = "canalesWapPda";
						cLink = "Ver9RB6";
					}
					else { tipoFondo = "canales0105"; }
					if (aCanales[i].desplegado == 1) {
						cLink = (ns4)?"n4linkS":"ielinkS";				
						tipoFondo = "Seleccionado";
						iconoSel = "<td width='12' height='14'><img src='images/flecha_sel.gif' width='12' height='14' alt='' border='0'></td>";
					}
					else { iconoSel = "<td width='12' height='14'><img src='images/0.gif' width='0' height='14' alt='' border='0'></td>"; }
					if (aCanales[i].separador == '2')
					{
						tCanales += "<table  width='200' cellspacing='0' cellpadding='0' border='0'>";
						tCanales += "<tr bgcolor='#FFFFFF'><td height='10'><img src='images/0.gif' width='1' height='10' alt='' border='0'></td></tr>";
						tCanales += "</table>";
					}
					tCanales += "<table class='"+ tipoFondo +"' width='200' cellspacing='0' cellpadding='0' border='0'>";
					tCanales += "<tr>";
					tCanales += iconoSel;
					tCanales += "<td width='5'><img src='images/0.gif' width='5' height='1' alt='' border='0'></td>";
					if (aCanales[i].icono != '') {
						tCanales += "<td width='200'><a href='"+ aCanales[i].URL +"' class='"+ cLink +"'><img src='"+ aCanales[i].icono +"'  border='0'>&nbsp;"+ aCanales[i].texto +"</a></td>";
					}
					else { tCanales += "<td width='200'><a href='"+ aCanales[i].URL +"' class='"+ cLink +"'>"+ aCanales[i].texto +"</a></td>";}
					tCanales += "</tr>";
					tCanales += "<tr bgcolor='#FFFFFF'><td colspan='3' height='1'><img src='images/0.gif' width='1' height='1' alt='' border='0'></td></tr>";
					tCanales += "</table>";
					if (aCanales[i].hijos[0].id != null)
					{	if (aCanales[i].desplegado != 0)
						{ canal=i;
							var nObjsHijos = aCanales[i].hijos.length;
							for (var j=0;j<=(nObjsHijos-1);j++)
							{	tCanales += "<table width='180' cellspacing='0' cellpadding='0' border='0'>";
								tCanales += "<tr bgcolor='#FFFFFF'>";
								if ( (j == subcanal) && (i == canal) ) {
									tCanales += "<td width='12' height='16' align='right' valign='top'><img src='images/0.gif' width='1' height='3' alt='' border='0'><img src='images/0.gif' width='12' height='1' alt='' border='0'><img src='images/icono.gif' width='3' height='6' alt='' border='0'></td>";
									tCanales += "<td width='5'><img src='images/0.gif' width='5' height='1' alt='' border='0'></td>";
									tCanales += "<td width='180'><a href='"+ aCanales[i].hijos[j].URL +"' class='Ar10R00N'>"+ aCanales[i].hijos[j].texto +"</a></td>";
								}
								else {
									tCanales += "<td width='12' height='16'><img src='images/0.gif' width='12' height='1' alt='' border='0'></td>";
									tCanales += "<td width='5'><img src='images/0.gif' width='5' height='1' alt='' border='0'></td>";
									tCanales += "<td width='180'><a href='"+ aCanales[i].hijos[j].URL +"' class='Ar10R82'>"+ aCanales[i].hijos[j].texto +"</a></td>";
								}
								tCanales += "</tr>";
								tCanales += "<tr bgcolor='#FFFFFF'><td colspan='3' height='1'><img src='images/0.gif' width='1' height='2' alt='' border='0'></td></tr>";
								tCanales += "</table>";
							}
							tCanales += "<img src='images/0.gif' width='5' height='5' alt='' border='0'>";
						}
					}
				}

				ChangeLayerContent("lCanales",tCanales);
				ChangeVisibility("lCanales",1);
			}
		function deplegar(opSel, llama, elsubcanal){
			if (canal != -1 && canal != opSel)
			{	aCanales[canal].desplegado = 0;
			}
			if (aCanales[opSel].desplegado == 1)
			{
				aCanales[opSel].desplegado = 0;
			} else {
				aCanales[opSel].desplegado = 1;}
			if (opSel != llama)
			{
				subcanal = -1;
			} else {
				subcanal = elsubcanal;
			}

			redibujar();
		}
		function inicio(elcanal, elsubcanal, llama){
			if ((ns4) || (ns6))
			{	resolucion = window.innerWidth;
			} else
				{ resolucion = document.body.clientWidth; }
			nPosLeft2 = parseInt((resolucion/2),10) - 390 + nPosLeft;
			if (nPosLeft2 <=8) { nPosLeft2 = nPosLeft; }
		if (elcanal == -1 && elsubcanal == -1) 
		{ persiana = 1;
		} else
		{ persiana = 0;
		}
//		persiana = 0	
aCanales[0] = new objCanal;
		aCanales[0].id = "GV";
		aCanales[0].posicion = 0;
		aCanales[0].texto = "Generalitat Valenciana";
		aCanales[0].desplegado = persiana;
		aCanales[0].separador = "1";
		aCanales[0].color = "1";
		aCanales[0].icono ="";
		aCanales[0].URL = "detopinf.asp?id=47&ec=0&es=0";
	aCanales[0].hijos[0] = new objCanal;
		aCanales[0].hijos[0].id = "GV-INFSL";
		aCanales[0].hijos[0].posicion = 0;
		aCanales[0].hijos[0].texto = "Informático Grupo A";
		aCanales[0].hijos[0].URL = "detopinf.asp?id=47&ec=0&es=0";
		aCanales[0].hijos[0].separador = 1;
		aCanales[0].hijos[0].color = 1;
		aCanales[0].hijos[0].icono = "";
	aCanales[0].hijos[1] = new objCanal;
		aCanales[0].hijos[1].id = "GV-INF";
		aCanales[0].hijos[1].posicion = 1;
		aCanales[0].hijos[1].texto = "Informático Grupo B";
		aCanales[0].hijos[1].URL = "detopinf.asp?id=48&ec=0&es=1";
		aCanales[0].hijos[1].separador = 1;
		aCanales[0].hijos[1].color = 1;
		aCanales[0].hijos[1].icono = "";
	aCanales[0].hijos[2] = new objCanal;
		aCanales[0].hijos[2].id = "GV-OSI";
		aCanales[0].hijos[2].posicion = 2;
		aCanales[0].hijos[2].texto = "Informático Grupo C";
		aCanales[0].hijos[2].URL = "detopinf.asp?id=49&ec=0&es=2";
		aCanales[0].hijos[2].separador = 1;
		aCanales[0].hijos[2].color = 1;
		aCanales[0].hijos[2].icono = "";

aCanales[1] = new objCanal;
		aCanales[1].id = "AYTOVAL";
		aCanales[1].posicion = 1;
		aCanales[1].texto = "Ayuntamiento Valencia";
		aCanales[1].desplegado = persiana;
		aCanales[1].separador = "1";
		aCanales[1].color = "1";
		aCanales[1].icono ="";
		aCanales[1].URL = "detopinf.asp?id=50&ec=1&es=0";
	aCanales[1].hijos[0] = new objCanal;
		aCanales[1].hijos[0].id = "AYTOVAL-TMI";
		aCanales[1].hijos[0].posicion = 0;
		aCanales[1].hijos[0].texto = "Técnico Medio Informática";
		aCanales[1].hijos[0].URL = "detopinf.asp?id=50&ec=1&es=0";
		aCanales[1].hijos[0].separador = 1;
		aCanales[1].hijos[0].color = 1;
		aCanales[1].hijos[0].icono = "";
		canal = elcanal;
		subcanal = elsubcanal;
				if (canal != -1)
				{	aCanales[canal].desplegado = 1;
				}
				redibujar();
			} 
			
		function asigna(elcanal, elsubcanal) {
		bidbuscado = 1;
		inicio(elcanal, elsubcanal);
		}
