<!-- Begin
var i=0;


var ci=1;
if (lengua=="eng") {
	txsubj="Comments&nbsp;from&nbsp;Forgotten&nbsp;Child&nbsp;Web&nbsp;Site";
	txf0="Contact Us";
	txf1="*First Name:";
	txf2="*Last Name:";
	txf3="Address:";
	txf4="City:";
	txf5="State:";
	txf6="Country:";
	txf7="Zip:";
	txf8="Telephone:";
	txf9="Fax:";
	txf10="*Email:";
	txf11="Number of Guests:";
	txf12="Arrival Date:";
	txf13="Departure Date:";
	txf14="Comments:";
	txf15="Send&nbsp;Comments&gt;&gt;";
	txf16="Need Assistance for Transportation?";
	txf17="";
	txf18="";
	txf19="";
	txf20="";
	txfy="Yes";
	txfn="No";
	mes1="January";
	mes2="February";
	mes3="March";
	mes4="April";
	mes5="May";
	mes6="June";
	mes7="July";
	mes8="August";
	mes9="September";
	mes10="October";
	mes11="November";
	mes12="December";
}
else {
	txsubj="Comentarios&nbsp;de&nbsp;la&nbsp;Web&nbsp;de&nbsp;Forgotten&nbsp;Child";
	txf0="Contáctenos";
	txf1="*Nombre:";
	txf2="*Apellidos:";
	txf3="Dirección:";
	txf4="Ciudad:";
	txf5="Estado:";
	txf6="País:";
	txf7="C.P.:";
	txf8="Teléfono:";
	txf9="Fax:";
	txf10="*Correo Electrónico:";
	txf11="Número de Huéspedes:";
	txf12="Fecha de Llegada:";
	txf13="Fecha de Salida:";
	txf14="Comentarios:";
	txf15="Enviar&nbsp;Comentarios&gt;&gt;";
	txf16="¿Nesita Arreglos para su Transportación?";
	txf17="";
	txf18="";
	txf19="";
	txf20="";
	txfy="Si";
	txfn="No";
	mes1="Enero";
	mes2="Febrero";
	mes3="Marzo";
	mes4="Abril";
	mes5="Mayo";
	mes6="Junio";
	mes7="Julio";
	mes8="Agosto";
	mes9="Septiembre";
	mes10="Octubre";
	mes11="Noviembre";
	mes12="Diciembre";
}
var requerido="realname,lastname,email";
var ancel=40;
function formato() {
};

formato = new formato();
formato[ci++]=new Array(0,"h","required",requerido);
formato[ci++]=new Array(0,"h","subject",txsubj);
formato[ci++]=new Array(2,"t","realname",ancel,txf1);
formato[ci++]=new Array(2,"t","lastname",ancel,txf2);
formato[ci++]=new Array(2,"t","telephone",ancel,txf8);
formato[ci++]=new Array(2,"t","email",ancel,txf10);
formato[ci++]=new Array(2,"x","info",4,ancel-6,txf14);
formato[ci++]=new Array(3,"m",txf15);

for (i=1; i<=50; i++) {
	if (!formato[i]) {
		wformato=i-1;
		i=50;
	}
}

if (pagex=="home" || pagex=="inicio") {
	fot1=foti+"051"+fotf;
	fot2=foti+"044"+fotf;
	fot3=foti+"052"+fotf;
	fot4=foti+"045"+fotf;
}
if (pagex=="ourstory" || pagex=="historia") {
	fot1=foti+"053"+fotf;
	fot2=foti+"054"+fotf;
	fot3=foti+"047"+fotf;
	fot4=foti+"048"+fotf;
}
if (pagex=="projects" || pagex=="proyectos") {
	fot1=foti+"023"+fotf;
	fot2=foti+"037"+fotf;
	fot3=foti+"021"+fotf;
	fot4=foti+"049"+fotf;
	fot5=foti+"050"+fotf;
}
if (pagex=="newsletter" || pagex=="noticias") {
	fot1=foti+"014"+fotf;
	fot2=foti+"015"+fotf;
	fot3=foti+"021"+fotf;
	fot4=foti+"022"+fotf;
	fot5=foti+"028"+fotf;
	fot6=foti+"029"+fotf;
	fot7=foti+"030"+fotf;
	fot8=foti+"039"+fotf;
	fot9=foti+"040"+fotf;
}
if (pagex=="waystogive" || pagex=="comodar") {
	fot1=foti+"031"+fotf;
	fot2=foti+"036"+fotf;
}
if (pagex=="smaeng" || pagex=="smaesp") {
	fot1=foti+"sm1"+fotf;
	fot2=foti+"sm2"+fotf;
	fot3=foti+"sm3"+fotf;
	fot4=foti+"sm4"+fotf;
	fot5=foti+"sm5"+fotf;
	fot6=foti+"002"+fotf;
	fot7=foti+"003"+fotf;
	fot8=foti+"004"+fotf;
	fot9=foti+"005"+fotf;
}


function menu() {
};
menu = new menu();

menu[1]=new Array("home","ourstory_new","projects","jalpa","friends","waystogive","sanmiguel","espanol");
menu[2]=new Array(enlace+"homepage",enlace+"ourstory",enlace+"projects",enlace+"jalpaeng",enlace+"friends",enlace+"waystogive",enlace+"smaeng","index.html?espinicio");
menu[3]=new Array("inicio","historia_new","proyectos","jalpa","amigos","comodar","sanmiguel","english");
menu[4]=new Array(enlace+"inicio",enlace+"historia",enlace+"proyectos",enlace+"jalpaesp",enlace+"amigos",enlace+"comodar",enlace+"smaesp","index.html?enghome");

if (lengua=="eng") {
	k=1;
}
else {
	k=3;
}


menureal=divi+"<tr><td><img border=0 src=images/top.jpg></td></tr>";

for (i=0; i<=menu[k].length-1; i++) {
	menureal=menureal+"<tr><td><a href="+menu[k+1][i]+" onMouseover=lightup('image"+i+"') onMouseout=turnoff('image"+i+"')><img border=0 src=images/"+menu[k][i]+".jpg name=image"+i+"></a></td></tr>";
}

menureal=menureal+"<tr><td><img border=0 src=images/remate.jpg></td></tr>"+divf;


switch(pagex) {
	case "location":
		maparesult="";
		for (i=0; i<=11; i++) {
			maparesult=maparesult+"<tr><td>"+fte+mapa[1][i]+"</font></td>"+b50+"<td>"+fte+mapa[1][i+12]+"</font></td></tr>";
		}
		maintx=divi+midic+tx17+midf+divf+divi+"<tr><td><img src=images/mapamex.jpg><br><br><img src=images/mapagto.jpg><br><br>"+fte+"<b>San Miguel de Allende</b></font><br><img border=1 src=images/mapasma.jpg><br></td></tr>"+divi+maparesult+divf;
	break
	case "ubicacion":
		maparesult="";
		for (i=0; i<=11; i++) {
			maparesult=maparesult+"<tr><td>"+fte+mapa[2][i]+"</font></td>"+b50+"<td>"+fte+mapa[2][i+12]+"</font></td></tr>";
		}
		maintx=divi+midic+tx18+midf+divf+divi+"<tr><td><img src=images/mapamex.jpg><br><br><img src=images/mapagto.jpg><br><br>"+fte+"<b>San Miguel de Allende</b></font><br><img border=1 src=images/mapasma.jpg><br></td></tr>"+divi+maparesult+divf;
	break
	default:
		if (pagex=="contactus") {
			maintx=divi+midic+"<font size=3><b>"+txf0+"</b></font>"+midf+divf;
			maintx=maintx+"<form name=form1 method=post action=formmail.pl>"+divi;
			for (i=1; i<=wformato; i++) {
				tope=formato[i].length-1;
				descfield=formato[i][tope];
				switch (formato[i][0]) {
					case 0:
						var iniren="";
						var finren="";
						break
						case 1:
							var iniren="";
							var finren="";
						break
						case 2:
							var iniren=midir+descfield+midml;
							if (formato[i+1]) {
								if (formato[i+1][0]==0 || formato[i+1][0]==1) {
									var finren="";
								}
								else {
								if (formato[i+1][0]==4) {
									finren=":";
								}
								else {
									var finren=midf2;
								}
							}
						}
						else {
							var finren=midf2;
						}
					break
					case 3:
						var iniren=midir+midml;
						var finren=midf;
					break
					case 4:
						var iniren="";
						var finren="";
					break
					default:
						iniren="";
						finren="";
				}
				maintx=maintx+iniren;
				switch (formato[i][1]) {
					case "h":
						maintx=maintx+"<input type=hidden name="+formato[i][2]+" value="+formato[i][3]+">";
					break
					case "s":
						maintx=maintx+"<select name="+formato[i][2]+" size="+formato[i][3]+">";
						var finren="";
					break
					case "o":
						maintx=maintx+"<option value="+formato[i][2]+">"+formato[i][2]+"</option>";
						if (formato[i+1][1]!="o") {
							maintx=maintx+"</select>";
						}
						if (formato[i+1][0]==2) {
							finren=midf2;
						}
					break
					case "t":
						maintx=maintx+"<input name="+formato[i][2]+" size="+formato[i][3]+">";
					break
					case "x":
						maintx=maintx+"<textarea name="+formato[i][2]+" rows="+formato[i][3]+" cols="+formato[i][4]+"></textarea>";
					break
					case "m":
						maintx=maintx+"<input type=submit value="+formato[i][2]+" name=Submitted style='background-color: #993300; color: #EFEAAD'>";
					break
					default:
						maintx=maintx+"";
				}
				maintx=maintx+finren;
			}
			maintx=maintx+divf;
		}
		else {
			for (i=1; i<=wpg; i++) {
				if (pages[i][0]==pagex) {
					altura=pages[i][1];
					fuente=pages[i][0]+"."+pages[i][2];
					ifr="<iframe width=512 height="+altura+" scrolling=auto frameborder=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 src="+fuente+"></iframe>";
					maintx=ifr;
					i=wpg+1;
				}
				else {
					maintx=divi+midic+"<br><br><br>En Construcción..."+midf+divf;
				}
			}
		}
}
//  End -->