// JavaScript Document
function Encabeza(){if (document.getElementsByTagName){
window.defaultStatus = 'Spanish Grammar Exercises by Yepes';
var capas = document.getElementsByTagName('div');
for (i=0;i<capas.length;i++){
	if (capas[i].id=='search'){capas[i].innerHTML='<form action="http://search.bowdoin.edu/search" method="get" name="s" id="s"><input type="text" name="q" size="18" maxlength="255" value="Search Bowdoin..." alt="Search Bowdoin"  style="color:#A9A28F; font-style:italic;" onfocus="if(this.value ==\'Search Bowdoin...\') {this.value=\'\'; this.style.cssText=\'\';}" onblur="if (this.value ==\'\') {this.value =\'Search Bowdoin...\';this.style.cssText=\'color:#a9a28f;font-style:italic;\'}" /><input type="submit" name="btnG" value="Buscar" class="btn" /><input type="hidden" name="site" value="bowdoin-www-root" /><input type="hidden" name="client" value="bowdoin-www-root" /><input type="hidden" name="proxystylesheet" value="bowdoin-www-root" /><input type="hidden" name="output" value="xml_no_dtd" /></form>';}
	if (capas[i].id=="banner"){capas[i].innerHTML='<a href="http://www.bowdoin.edu/" title="Bowdoin Home"><img id="Bowd" src="../imindex/bowd003333.gif" alt="Bowdoin College" /></a><a name="top" id="top"></a>';}
	if (capas[i].id=="crumb"){capas[i].innerHTML='Location: <a href="http://www.bowdoin.edu/">Bowdoin</a> / <a href="../index.html">Enrique Yepes</a> / <a href="index.html">Ejercicios de espa&ntilde;ol</a> /  '+estej;}
	if (capas[i].id=="eytag_sm"){capas[i].innerHTML='<a href="../index.html"><img src="../imindex/ey_newgr_ani.gif" alt="Enrique Yepes"  id="eyepes"/></a>';}
	if (capas[i].id=="footer"){capas[i].innerHTML='<p>Written by <a href="../../index.html">Enrique Yepes</a><br />Last update: '+update+'<br />Send comments to: <a href="mailto:eyepes@bowdoin.edu">eyepes@bowdoin.edu</a></p><p class="sub">Bowdoin College &middot; Brunswick, Maine &middot; 04011 &middot; 207-725-3000<br /><a href="http://www.bowdoin.edu/help/siteindex.shtml">A- Z Index</a> |  <a href="http://www.bowdoin.edu/directory/">Directory</a> |  <a href="http://www.bowdoin.edu/help/">Help</a></p>';}
	if (capas[i].id=="insertmenu"){capas[i].innerHTML='<div id="book_link"><a href="index.html"><img id="booklink" src="../imindex/index_links/ejer_link.gif" alt="Pr&aacute;ctica de espa&ntilde;ol" /></a></div><ul id="ayudmenu"><li id="exer"><a href="#">exercises <img alt="v" src="../imindex/flechabaj.gif" id="flecha"/></a><ul><li><a href="../gramex.htm">Global links</a></li><li><a href="../gramex_ats.htm">Links in book order</a></li><li><a href="../index.html">Yepes</a></li><li><a href="grex.htm">To print</a></li></ul></li><li id="profesion"><a href="#">guides <img alt="v" src="../imindex/flechabaj.gif" id="flecha"/></a><ul><li><a href="gramguid.htm">grammar checklist</a></li><li><a href="estilo.htm">style checklist</a></li><li><a href="brief1.htm">quick grammar summary</a></li></ul></li><li id="spanish"><a href="#">reference <img alt="v" src="../imindex/flechabaj.gif" id="flecha"/></a><ul><li><a href="accsp.htm">Typing accents</a></li><li><a href="ats/index.html">Libro de gram&aacute;tica</a></li><li><a href="../latam/index.html">Textos sobre Am&eacute;rica Latina</a></li></ul></li><li id="sitemap"><a href="../sitemap.html" onmouseover="this.style.color=\'#fff\';" onmouseout="this.style.color=\'\';">sitemap <img alt="&gt;" src="../imindex/flechder.gif" id="flecha"/></a></li></ul>';}
		}//for
	haceMenu();}//if TagNames true/
else {alert(sorry); }
}//end Encabeza

function aclaraformas(cel){//newgr/index.html y gramex, gramex_ats
if (document.getElementsByTagName){
	formas = document.getElementsByTagName('form');for (i=0; i<formas.length; i++){formas[i].reset();}
	if (cel){celdas = document.getElementsByTagName('td');for (i=0; i<celdas.length; i++){celdas[i].setAttribute('align','center');}}
	}
}

function haceMenu() {if (document.getElementById("ayudmenu")){//gramex, gramex_ats
	if(document.getElementById('s')){document.getElementById('s').reset();}//limpia buscar
	var raiz = document.getElementById("ayudmenu");
	for (i=0; i<raiz.childNodes.length; i++) {
		lista = raiz.childNodes[i];
		if (lista.nodeName=="LI") {
			lista.onmouseover=function() {this.className+="over";	}
			lista.onmouseout=function() {this.className=this.className.replace("over", "");}
 } } } }
