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

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

text[0] = "Home";
text[1] = "Tutorials";
text[2] = "Exercises";
text[3] = "Reference";
text[4] = "Articles";
text[5] = "Members";
text[6] = "Search";
text[7] = "Help";

// espanol

var lnkEsp = new Array();

lnkEsp[0] = "indice.php";
lnkEsp[1] = "aprendizaje/index.php";
lnkEsp[2] = "ejercicios/index.php";
lnkEsp[3] = "referencia/index.php";
lnkEsp[4] = "articulos/index.php";
lnkEsp[5] = "miembros/index.php";
lnkEsp[6] = "docs/ayuda/busqueda_2010.php";
lnkEsp[7] = "docs/ayuda/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 + lnkEsp[iSec] + "'>Espa&ntilde;ol</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/help/new.htm'>";
	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/help/bio.php'>" + "&#169; 2011 J. Rodr&iacute;guez Alvira</a></p>";
}

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

function email() {
	
	return "<p><a class='net' href=\"javascript:openws('https://www.teoria.com/docs/help/email.php',500,600);\">Write to us!</a></p>";
}

function PayPal() {
	
	//////////////////////////////// 5. 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/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">';
	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
}

function harmonyStudio() {

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

	if (ieProblem()) {
	
		document.write ('<p style="text-align: center";>');
		document.write ('<a href="http://www.on2url.com/app/adtrack.asp?MerchantID=120965&AdID=530166">');
		document.write ('<img src="../images/harmony_melody_studio.gif" width="468" height="80"></a></p>');
	}
	
	else {
		
		document.write ('<div style="float: left; margin: 12px 0 0 24px; padding: 0 20px 0 0; width: 120px">');
		document.write ('<a href="http://www.on2url.com/app/adtrack.asp?MerchantID=120965&AdID=530166">');
		document.write ('<img src="../images/harmony_studio_b.gif" width="120" height="600" hspace="10" vspace="10"></a></div>');
	}
	
	///////////////////////// hasta aqui
}

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

function ieProblem() {
	
	var s = navigator.appVersion;
	var i;
	
	if ( ( i = s.indexOf("MSIE")) != -1) {
	 
		var iVersion = parseInt(s.substring(i + 5) );
		
		if (iVersion < 8)

			return true;
	}
	
	return false;
}

	///////////////////////// hasta aqui FINAL
	
// -->

