<!--

var days = new Array();
var months = new Array();

var sSpace = " ";
var sComma = ", ";

days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";

var lnkL1 = new Array();
var txtL1 = new Array();

lnkL1[0] = "tutorials/index.htm";
lnkL1[1] = "exercises/index.htm";
lnkL1[2] = "reference/index.htm";
lnkL1[3] = "http://www.teoria.com/download/members.htm";
lnkL1[4] = "http://www.teoria.com/arc/search.htm";

txtL1[0] = "Tutorials";
txtL1[1] = "Exercises";
txtL1[2] = "Reference";
txtL1[3] = "Members";
txtL1[4] = "Search";

var lnkEsp = new Array();
var txtEsp = new Array();

lnkEsp[0] = "aprendizaje/index.htm";
lnkEsp[1] = "ejercicios/index.htm";
lnkEsp[2] = "referencia/index.htm";
lnkEsp[3] = "http://www.teoria.com/download/miembros.htm";
lnkEsp[4] = "http://www.teoria.com/arc/busqueda.htm";

google_ad_client = "pub-9369394149327847";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";

function mainmenu (iStart, iEnd, iLevel){
	var i, sLevel, s, iActive;

	sLevel = "../";
	for (i=1; i < iLevel; i++)
		sLevel = sLevel + "../";

	iStart -= 1;
	iEnd -= 1;

	if (iStart == 0)
		{
		iActive = iEnd;
		document.write("<p class='teo'><a href='" + sLevel + "arc/help.htm'>" + "<img border='0' src='" + sLevel + "images/help.gif' align='right' width='10' height='13'></a>" + "<a href='" + sLevel + "index.html'>" + "teor&iacute;a.com</a></p>");
		}
	else
		iActive = iStart - 1;

	s = sLevel;
	for (i=iStart; i <= iEnd; i++)
		{
		if (i == 3)
			s = "";

		if (i == iActive)
			document.write('<p class="titulo">' + txtL1[i] + '</p>');
		else
			document.write('<p class="idx1"><a href="' + s + lnkL1[i] + '">' + txtL1[i] + '</a></p>');
		}

	if (iEnd == 4)
		{
		if (iActive >= 3)
			s = "";
		else
			s = sLevel;
			

		document.write('<p class="lang">' + '<a href="' + s + lnkEsp[iActive] + '">' + '- Versi&oacute;n en castellano -</a></p>');

		if (iStart != 4) // no poner en area de downnlod
			document.write("<div class='anuncio'><p class='anuncio1'>" + "<a href='" + lnkL1[3] + "'>"  + "Download the entire<br><i>teoria.com</i> web site!</a></p></div>");
		}
}

function anuncio(iLevel, bNVS)
{
	var s, sLevel, i;

	sLevel = "../";
	for (i=1; i < iLevel; i++)
		sLevel = sLevel + "../";

	s = "<p class='copr'><a href='" + sLevel + "arc/bio.htm'>" + "&#169; 1997-2005 J. Rodr&iacute;guez Alvira</a></p>";
	s += "<p><a href=\"javascript:openws('http://www.teoria.com/email.htm',500,600);\">Write to us!</a></p>";
	document.write(s);

	PayPal(sLevel);

	if (bNVS != 0)
		VisiStat();
	else
		document.write("<p>-</p>");
		
}	

function pDate()
{
	var dt = new Date();
	var s = new String();

	s = days[dt.getDay()];
	s += sComma + months[dt.getMonth()];
	s += sSpace + dt.getDate();
	s += sComma + dt.getFullYear();

	document.write(s);
}

function openw(url, w, h)
{
	var woptions;

	woptions = "height=" + h + ", width=" + w + ", resizable=1" + ", toolbar=0"; 
	w = window.open(url, "" , woptions); 
}

function openws(url, w, h)
{
	var woptions;

	woptions = "height=" + h + ", width=" + w + ", resizable=1" + ", scrollbars=1" + ", toolbar=0"; 
	w = window.open(url, "" , woptions); 
}

function PayPal(sLevel){
}

function VisiStat(){
}

function google(){
}

function hoyCode(){

	var iDay, iMonth;
	var dt = new Date();
	var s = new String();
	
	iDay=dt.getDate();
	iMonth=dt.getMonth();

	if (iMonth < 10) s = "0";
	s += iMonth;
	
	if (iDay < 10) s += "0";
	s += iDay;
	
	document.write("<script type='text/javascript' language='javascript' src='js/today/" + s + ".js'></script>");
}

function version() {document.write ("v. 05.12.21");}

// -->

