<!--
var img5  = new Image();
var img5b = new Image();
var img6  = new Image();
var img6b = new Image();

img5.src  = "../imagenes_generales/boton_noticias_gris1.png";
img5b.src = "../imagenes_generales/boton_noticias_rojo1.png";
img6.src  = "../imagenes_generales/boton_prog_gris1.png";
img6b.src = "../imagenes_generales/boton_prog_rojo1.png";

function imagenecho(num) {
	switch (num){
	case 11:document.write("<img src=\"/iconos_tiempo/sol.png\" style=\"max-height: 117px;\">");
		break;
	case 12:document.write("<img src=\"/iconos_tiempo/nublado.png\" style=\"max-height: 117px;\">");
		break;
	case 13:document.write("<img src=\"/iconos_tiempo/nublado.png\" style=\"max-height: 117px;\">");
		break;
	case 14:document.write("<img src=\"/iconos_tiempo/nublado.png\" style=\"max-height: 117px;\">");
		break;
	case 15:document.write("<img src=\"/iconos_tiempo/cubierto.png\" style=\"max-height: 117px;\">");
		break;
	case 16:document.write("<img src=\"/iconos_tiempo/cubierto.png\" style=\"max-height: 117px;\">");
		break;
	case 23:document.write("<img src=\"/iconos_tiempo/llovizna.png\" style=\"max-height: 117px;\">");
		break;
	case 24:document.write("<img src=\"/iconos_tiempo/llovizna.png\" style=\"max-height: 117px;\">");
		break;
	case 25:document.write("<img src=\"/iconos_tiempo/lluvia.png\" style=\"max-height: 117px;\">");
		break;
	case 26:document.write("<img src=\"/iconos_tiempo/lluvia.png\" style=\"max-height: 117px;\">");
		break;
	case 27:document.write("<img src=\"/iconos_tiempo/llovizna.png\" style=\"max-height: 117px;\">");
		break;
	case 33:document.write("<img src=\"/iconos_tiempo/nieve.png\" style=\"max-height: 117px;\">");
		break;
	case 34:document.write("<img src=\"/iconos_tiempo/nieve.png\" style=\"max-height: 117px;\">");
		break;
	case 35:document.write("<img src=\"/iconos_tiempo/nieve.png\" style=\"max-height: 117px;\">");
		break;
	case 36:document.write("<img src=\"/iconos_tiempo/nieve.png\" style=\"max-height: 117px;\">");
		break;
	case 45:document.write("<img src=\"/iconos_tiempo/lluvia.png\" style=\"max-height: 117px;\">");
                break;
	case 43:document.write("<img src=\"/iconos_tiempo/llovizna.png\" style=\"max-height: 117px;\">");
                break;
	case 44:document.write("<img src=\"/iconos_tiempo/llovizna.png\" style=\"max-height: 117px;\">");
                break;
	case 46:document.write("<img src=\"/iconos_tiempo/lluvia.png\" style=\"max-height: 117px;\">");
                break;
	case 17:document.write("<img src=\"/iconos_tiempo/nublado.png\" style=\"max-height: 117px;\">");
                break;
	}
}
function menuMeteo(num) {
    grafica = document.getElementById('graf' + num);
    for (cont = 0; cont < 3; cont++) {
        grafica = document.getElementById('graf' + cont);
        grafica.style.display = 'none';
    }
    grafica = document.getElementById('graf' + num);
    grafica.style.display = "inline";
}
// PopUp normal
function popUp(ventana) {
    switch (ventana) {
        //case 1:GB_showCenter('Canales analógicos', '/popups/canales/analogicos.php', 470, 310);
        case 1:window.open("/popups/canales/canalesAnalogicos.pdf", "_blank");
	        break;
	//case 2:GB_showCenter('Canales HD', '/popups/canales/hd.php', 350, 310);
        case 2:window.open("/popups/canales/canalesHD.pdf", "_blank");  
	        break;
        case 3:GB_showCenter('Emisión en directo', '/popups/streaming.html', 427, 517);
                break;
        case 4:GB_showCenter('Otros Servicios', '/popups/tarifas/hosting.html', 280, 500);
        	break;
        case 5:GB_showCenter('TARIFAS', '/popups/tarifas/empresas.html', 300, 400);
        	break;
        case 6:GB_showCenter('Tarifas - Telefonía', '/popups/tarifas/telefonia.php', 600, 640);
        	break;
        case 7:GB_showCenter('Tarifas - Telefonía Plana', '/popups/tarifas/telefoniaPlana.html', 430, 700);
        	break;
        case 8:GB_showCenter('Tarifas - Telefonía por segundos', '/popups/tarifas/telefoniaSegundos.html', 430, 700);
        	break;
        case 9:GB_showCenter('Servicios - Telefonía', '/popups/serviciosTelefonia.html', 450, 530);
        	break;
        case 10:GB_showCenter('Contactar', '/popups/contacto.html', 500, 550);
        	break;
        case 11:window.open("http://foro.teleyecla.com", "_blank"); 
                break;
        case 12:GB_showCenter('Información Corporativa', '/popups/informacion.html', 500, 750);
        	break;
        case 13:GB_showCenter('Teletexto - Teleyecla', '/popups/teletexto.php', 600, 800);
        	break;
        case 14:GB_showCenter('TARIFAS', '/popups/tarifas/todas.html', 550, 300);
        	break;
        case 15:GB_showCenter('Tarifas - Servicios Inalámbricos', '/popups/tarifas/inalambrico.php', 470, 700);
        	break;
        case 16:GB_showCenter('Programación Canal TY 1', '/popups/programacion.php', 470, 700);
        	break;
        case 17:GB_showCenter('Meteo', '/popups/meteo.php', 530, 770);
                break;
        case 18:window.open("popups/mapa.html", "mapa", "width=800, height=600, scrollbars=YES, resizable=YES, directories=NO, location=NO, menubar=NO, status=NO, titlebar=NO, toolbar=NO");
                break;
        case 19:GB_showCenter('Lista de grupos', '/popups/tarifas/zonas.html', 470, 700);
                break;
        case 20:GB_showCenter('Tarifas - Internet', '/popups/tarifas/internet.html', 350, 530);
        	break;
        case 21:GB_showCenter('TARIFAS', '/popups/tarifas/empresas.html', 300, 400);
        	break;
        //case 22:GB_showCenter('Canales digitales', '/popups/canales/digitales.php', 470, 310);
        case 22:window.open("/popups/canales/canalesDigitales.pdf", "_blank");
	        break;
	//case 23:GB_showCenter('Canales campo', '/popups/canales/digitales.php', 470, 310);
        case 23:window.open("/popups/canales/canalesCampos.pdf", "_blank");
	        break;
	}
}

// Enlaces en nuevas pestañas
function getUrl(ventana) {
    switch (ventana) {
        case 1:window.open("http://www.televisiondigital.es/", "_blank");
            break;
        case 2:window.open("http://informativos.teleyecla.com", "_blank");
            break;
        case 3:window.open("http://spiral.teleyecla.com", "_blank");
            break;
        case 4:window.open("http://enelplatoyenlataja.teleyecla.com", "_blank");
            break;
        case 5:window.open("http://webmail.teleyecla.com", "_blank");
            break;
        case 6:window.open("http://zonaclientes.teleyecla.com", "_blank");
            break;
        case 7:window.open("http://www.aemet.es/es/eltiempo/prediccion/localidades/yecla-30420", "_blank");
               break;
        case 8:window.open("http://www.meteoclimatic.com/perfil/ESMUR3000000030510D", "_blank");
            break;
    }
}
function fecha() {
    var mydate = new Date();
    var year = mydate.getYear();
    if (year < 1000)
        year += 1900;
    var day = mydate.getDay();
    var month = mydate.getMonth();
    var daym = mydate.getDate();
    if (daym < 10)
        daym="0"+daym;
    var dayarray = new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");
    var montharray = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto",
  			       "Septiembre","Octubre","Noviembre","Diciembre");
    var horas = mydate.getHours();
    horas = (horas < 10) ? "0" + horas : horas;
    var minutos = mydate.getMinutes();
    minutos = (minutos < 10) ? "0" + minutos : minutos;
    var segundos = mydate.getSeconds();
    segundos = (segundos < 10) ? "0" + segundos : segundos;
    document.getElementById("Reloj").innerHTML = "<font face='Verdana'>" + horas + ":" +
    				     minutos + ":" + segundos + " &nbsp; <small>" + dayarray[day]+", "+daym+" de "+
				     montharray[month]+" de "+ year+"</small></font>";
    setTimeout('fecha()',1000);
}
// -->

