<!--
var urls = new Array();
var text = new Array();

urls[0] = "indice.php";
urls[1] = "aprendizaje/index.php";
urls[2] = "ejercicios/index.php";
urls[3] = "referencia/index.php";
urls[4] = "articulos/index.php";
urls[5] = "miembros/index.php";
urls[6] = "docs/ayuda/busqueda_2010.php";
urls[7] = "docs/ayuda/index.php";

text[0] = "Inicio";
text[1] = "Aprendizaje";
text[2] = "Ejercicios";
text[3] = "Referencia";
text[4] = "Art&iacute;culos";
text[5] = "Miembros";
text[6] = "B&uacute;squeda";
text[7] = "Ayuda";

// english

var lnkEng = new Array();
var txtEng = new Array();

lnkEng[0] = "index.phpl";
lnkEng[1] = "tutorials/index.php";
lnkEng[2] = "exercises/index.php";
lnkEng[3] = "reference/index.php";
lnkEng[4] = "articles/index.php";
lnkEng[5] = "members/index.php";
lnkEng[6] = "docs/help/search_2010.php";
lnkEng[7] = "docs/help/index.php";

function menu (iSec, bTop, iLevel) {
	
	var i, sLevel;
	
	sLevel = getLevelStr(iLevel);

	document.write('<div id="menu">');
	
	for (i=0; i < urls.length; i++) {
		
		if (i == iSec) {
			
			if (bTop == 1)
				document.write('<p><b>' + text[i] + '</b></p>');
			else
				document.write('<p><b><a href="' + sLevel + urls[i] + '">' + text[i] + '</a></b></p>');
		}
		
		else {
		
			document.write('<p><a href="' + sLevel + urls[i] + '">' + text[i] + '</a></p>');
		}
	}


	document.write("<div id='der'><a href='" + sLevel + lnkEng[iSec] + "'>English</a></div>");
		
	document.write('</div>');
}

function calce (iLevel) {

	var sLevel, s;

	sLevel = getLevelStr(iLevel);
		
	s = "<div id='calce'>";
	s += copr(sLevel);
	s += anuncioCorto();		// 1. version on-line
	s += email();
	s += "<p><a href='";
	s += sLevel;
	s += "docs/ayuda/nuevo.php'>";
	s += version();
	s += "</a></p>";
	s += "</div>";
	document.write(s);
	
	document.write('<div style="text-align: center; margin-top: 12px;">');
	PayPal();				// 2. version on-line
	document.write('</div');
}

function copr(sLevel) {
	
	return "<p><a href='" + sLevel + "docs/ayuda/bio.php'>" + "&#169; 2011 J. Rodr&iacute;guez Alvira</a></p>";
}

function anuncioCorto() {
	
	return "<p>" + "<a href='http://www.teoria.com/docs/ayuda/miembros.php'>" + "Descargue <i>teoria.com</i></a></p>";
}

function email() {
	
	return "<p><a class='net' href=\"javascript:openws('https://www.teoria.com/docs/ayuda/email.php',500,600);\">&iexcl;Escr&iacute;banos!</a></p>";
}

function PayPal() {

	//////////////////////////////// 6. borrar de version miembros
	//////////////////////////////// desde aqui

	var s;

	s = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	s += '<input type="hidden" name="cmd" value="_s-xclick">';
	s += '<input type="hidden" name="hosted_button_id" value="GRT5ZVWF5XZMY">';
	s += '<input type="image" src="https://www.paypal.com/es_XC/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal. La forma r&aacute;pida y segura de pagar en Internet.">';
	s += '<img alt="" border="0" src="https://www.paypal.com/es_XC/i/scr/pixel.gif" width="1" height="1">';
	s += '</form>';
	
	document.write(s);
	
	//////////////////////////////// hasta aqui

}

// -->

