
var tecla;

if (window.Event) {
	document.captureEvents(Event.KEYDOWN);
}

document.onkeydown = teclapulsada;

// Función "teclapulsada"

function teclapulsada(e){

if (window.Event) {

	tecla = e.which;
}
 else {
	tecla = event.keyCode
}

tecla = String.fromCharCode(tecla);

if ((tecla == "i") || (tecla == "I")){ document.location.href = "principal.html"; }
if ((tecla == "f") || (tecla == "F")){ document.location.href = "http://neobook.webcindario.com/index.php"; }
if ((tecla == "b") || (tecla == "B")){ document.location.href = "buscador/buscador.html"; }
if ((tecla == "c") || (tecla == "C")){ document.location.href = "contactar.html"; }
if ((tecla == "a") || (tecla == "A")){ document.location.href = "accesibilidad.html"; }
if ((tecla == "d") || (tecla == "D")){ document.location.href = "acercade.html"; }

if ((tecla == "e") || (tecla == "E")){ document.location.href = "ejemplos.html"; }
if ((tecla == "h") || (tecla == "H")){ document.location.href = "utilidades.html"; }
if ((tecla == "u") || (tecla == "U")){ document.location.href = "utilidades.html"; }
if ((tecla == "p") || (tecla == "P")){ document.location.href = "plugins.html"; }
if ((tecla == "r") || (tecla == "R")){ document.location.href = "recursos.html"; }
if ((tecla == "t") || (tecla == "T")){ document.location.href = "documentos.html"; }
if ((tecla == "n") || (tecla == "N")){ document.location.href = "enlaces.html"; }
if ((tecla == "l") || (tecla == "L")){ document.location.href = "funciones.html"; }

	}

// Final del Script
