function menu_t(tecla, estado) {
	document.images['t' + tecla].src = 'http://www.uv.cl/images/menu_t' + tecla + '_' + estado + '.gif';
}

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function Alternar(Seccion){ 
	if (document.getElementById(Seccion).style.display=="none"){document.getElementById(Seccion).style.display="block"}
	else{document.getElementById(Seccion).style.display="none"} 
}

elementoAbierto = 0;

function mostrar(item) {
	if (!item) {
		return;
	}
	if (document.getElementById(item).style.display == "none") {
		if (elementoAbierto != 0) {
			document.getElementById(elementoAbierto).style.display = "none";
		}
		document.getElementById(item).style.display = "block";
		elementoAbierto = item;
	}
}

elementoActivo = 0;

function activar(item) {
	if (!item) {
		return;
	}
	if (elementoActivo != 0) {
		document.getElementById(elementoActivo).style.listStyleImage = 'url(/images/bullet_off.gif)';
	}
	document.getElementById(item).style.listStyleImage = 'url(/images/bullet_on.gif)';
	elementoActivo = item;
}

/*
rotador_e = 1;
rotador_n = 3;

function rotar() {
	document.getElementById('pie_izq_' + rotador_e).style.display = "none";
	// alert ('pie_izq_' + rotador_e);
	rotador_e = rotador_e + 1;
	if (rotador_e > rotador_n) {
		rotador_e = 1;
	}
	document.getElementById('pie_izq_' + rotador_e).style.display = "block";
	clearTimeout(rotador_t);
	rotador_t = setTimeout('rotar()', 5000);
}

rotador_t = setTimeout('rotar()', 5000);
*/
/*
anuncios_e = 1;
anuncios_n = 2;

function anuncio() {
	document.getElementById('anuncios_' + anuncios_e).style.display = "none";
	// alert ('anuncios_' + anuncio_e);
	anuncios_e = anuncios_e + 1;
	if (anuncios_e > anuncios_n) {
		anuncios_e = 1;
	}
	document.getElementById('anuncios_' + anuncios_e).style.display = "block";
	clearTimeout(anuncios_t);
	anuncios_t = setTimeout('anuncio()', 5000);
}

anuncios_t = setTimeout('anuncio()', 5000);
*/
