var divs, faqdivs = new Array();
function makeNest() { //called from body onload
if(typeof(document.getElementsByTagName)!= "undefined" || typeof(document.all)!= "undefined"){
	divs = (document.getElementsByTagName)?document.getElementsByTagName("div"):document.all.tags("div");
	var i; 
	for(i=0;i<divs.length;i++){
		if(!/^FAQ_/.test(divs[i].id)) continue;
		divs[i].style.display="none";
		faqdivs[faqdivs.length] = divs[i];
		}
	return true;
	}
return false;	
}

function effectAll(el) { // shows and hides all answers with one link
var i, curTxt, DOMRef, disp = "";
DOMRef = (el.childNodes)?el.childNodes[0]:null;
curTxt = (DOMRef)?DOMRef.nodeValue:el.innerText;
disp=(curTxt=="mostrar todas las respuestas")?"block":"none";
for(i=0;i<faqdivs.length;i++) faqdivs[i].style.display = disp;
if(el.childNodes) el.childNodes[0].nodeValue=(curTxt=="mostrar todas las respuestas")?"esconde todas las respuestas":"mostrar todas las respuestas";
else el.innerText=(curTxt=="mostrar todas las respuestas")?"esconde todas las respuestas":"mostrar todas las respuestas";
return true;
}

function toggle(dv){ // toggles display of single div
if (typeof(document.all)!="undefined" || typeof(document.getElementById)!="undefined"){
	var objSt;
	objSt = (document.getElementById)?document.getElementById(dv).style:document.all[dv].style;
	objSt.display = (objSt.display=="none")?"block":"none";
	return true;
	}
return false;	
}
//writes "show all" link
if(((typeof document.getElementsByTagName!="undefined") || (typeof document.all!="undefined"))&&(navigator.appName.indexOf("Opera")<0)){
document.write('[ <a href="#" class="faqlink" style="font-weight:normal;" id="link_all" onclick="effectAll(this); return false;">mostrar todas las respuestas</a> ]<br><br>');
}
