/********Rutinas generales para los casos Javascript***********/
/* Función de rotación de imágenes */
	adImages = new Array("imagenes/foto1.jpg","imagenes/foto2.jpg","imagenes/foto3.jpg","imagenes/foto4.jpg","imagenes/foto5.jpg")
	thisAd = 0
	imgCt = adImages.length

	function rotate() {
		if (document.images) {
			thisAd++
			if (thisAd == imgCt) {
				thisAd = 0
			}
			document.adBanner.src=adImages[thisAd]
		  	setTimeout("rotate()", 3 * 1000)
	  	}
	}

/* Manejo del menú horizontal */
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
/*window.onload=startList;*/

