
/*
--------- MUESTRA / OCULTA BUSCADOR AVANZADO ---------
*/
function muestraBuscAvanz() {
	if (document.getElementById("buscAvanzado").style.display=="block") {
		document.getElementById("buscAvanzado").style.display="none";
		document.getElementById("buscador").style.height="65px";
		document.getElementById("colizq").style.background='url(img/fnd_colizq.gif) no-repeat top right';
	} else {
		document.getElementById("buscAvanzado").style.display="block";
		document.getElementById("buscador").style.height="130px";
		document.getElementById("colizq").style.background='url(img/fnd_colizq2.gif) no-repeat top right';
	}
}
/*
--------- ABRE LINKS EN NUEVO VENTANA ---------
*/
function linksNuevaVent(){
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors [i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "nuevaVent") {
			anchor.target = "_blank";
			// accesibilidad: anchor.title = “Abrir enlace en una nueva ventana”;
		}
	}
}
//
window.onload = function() {
	linksNuevaVent();
}
