<!--

// lectura musical

var lnkLM = new Array();
var txtLM = new Array();
var docID = new Array();

lnkLM[0] = "index.htm";				//a
lnkLM[1] = "01-pulsacion.htm";		//b
lnkLM[2] = "02-compas.htm";			//c
lnkLM[3] = "03-valores.htm";		//d
lnkLM[4] = "04-puntillo.htm";		//e
lnkLM[5] = "05-silencio.htm";		//f
lnkLM[6] = "06-valores2.htm";		//g
lnkLM[7] = "07-corcheas-semi.htm";	//h
lnkLM[8] = "08-silencios-corcheas-semi.htm";	//i
lnkLM[9] = "09-tresillos.htm";		//j
lnkLM[10] = "10-unidad-tiempo.htm";	//k
lnkLM[11] = "11-compuestos.htm";	//l
lnkLM[12] = "12-notas.htm";			//m
lnkLM[13] = "13-frere.htm";			//n
lnkLM[14] = "14-alt.htm";			//o
lnkLM[15] = "15-armaduras.htm";		//p
lnkLM[16] = "16-teclado-notas.htm";	//q

txtLM[0] = "Introducci&oacute;n";
txtLM[1] = "Pulsaci&oacute;n y comp&aacute;s";
txtLM[2] = "Indicaci&oacute;n de comp&aacute;s";
txtLM[3] = "Figuras musicales";
txtLM[4] = "Puntillo y ligadura";
txtLM[5] = "Silencios";
txtLM[6] = "Otros valores";
txtLM[7] = "Corcheas y semicorcheas";
txtLM[8] = "Silencios de corcheas y semicorcheas";
txtLM[9] = "Tresillos";
txtLM[10] = "Unidad de tiempo";
txtLM[11] = "Compases simples y compuestos";
txtLM[12] = "La lectura de notas";
txtLM[13] = "Un ejemplo";
txtLM[14] = "Las alteraciones";
txtLM[15] = "Las armaduras de clave";
txtLM[16] = "Notas del teclado";

docID[0] = "a";
docID[1] = "b";
docID[2] = "c";
docID[3] = "d";
docID[4] = "e";
docID[5] = "f";
docID[6] = "g";
docID[7] = "h";
docID[8] = "i";
docID[9] = "j";
docID[10] = "k";
docID[11] = "l";
docID[12] = "m";
docID[13] = "n";
docID[14] = "o";
docID[15] = "p";
docID[16] = "q";
 
function subMenu(id){
	
	var i;
	
	for (i=0; i < txtLM.length; i++) {
		
		if (docID[i] == id)
		
			document.write('<p><b>' + txtLM[i] + '</b></p>');
			
		else
		
			document.write('<p><a href="' + lnkLM[i] + '">' + txtLM[i] + '</a></p>');
	}
	
	exeLinks = '<h1>Ejercicios relacionados:</h1>';
	exeLinks += '<p><a href="../../ejercicios/ritmo.htm">Dictado r&iacute;tmico</a></p>';
	exeLinks += '<p><a href="../../ejercicios/lectura.htm">Lectura de claves</a></p>';
	exeLinks += '<p><a href="../../ejercicios/compas.htm">Indicaci&oacute;n de comp&aacute;s</a></p>';
	exeLinks += '<p><a href="../../ejercicios/ksc.htm">Construcci&oacute;n de armaduras de clave</a></p>';
	exeLinks += '<p><a href="../../ejercicios/ksi.htm">Indentificaci&oacute;n de armaduras de clave</a></p>';
	
	document.write(exeLinks);

}

function pasaPag(id) {
	
	var i;
	
	for (i=0; i < txtLM.length; i++)	
		{
		if (docID[i] == id)
			{
			if (i == 0)
				document.write('<a href="' + lnkLM[i+1] + '"><img border="0" src="../../images/pasapagina01.gif" width="18" height="25" align="right"></a>');
				
			else if (i + 1 == txtLM.length)
				document.write('<map name="pp"><area href="' + lnkLM[i-1] + '" shape="rect" coords="0, 0, 17, 24"></map><img border="0" src="../../images/pasapagina03.gif" usemap="#pp" width="18" height="25" align="right">');
			
			else
				document.write('<map name="pp"><area href="' + lnkLM[i-1] +'" shape="rect" coords="0, 0, 17, 24"><area href="' + lnkLM[i+1] +'" shape="rect" coords="36, 0, 53, 24"></map><img border="0" src="../../images/pasapagina02.gif" usemap="#pp" width="54" height="25" align="right">');
			}
		}
	}
// -->

