// JavaScript Document
function change(obj){
var nivel=new String(obj);
nivel=nivel.substr(2,1);
objeto=FIND(obj);
if (objeto.style.display=="") objeto.style.display = "none";
	else {
		objeto.style.display= "";
		mostrarnivel(nivel);		
	}

}

function mostrarnivel(nro,c){
var numero=parseInt(nro);
var cant=parseInt(c);
	for(i=1;i<cant;i++){
		if(numero==i) {
			objeto=FIND("td"+i+"0");
			objeto.style.display="";
		}
		else {
			objeto=FIND("td"+i+"0");
			objeto.style.display="none";
		}
	}
}

function mostrartabla(nro,c){
	var nivel=new String(nro);
	nivel=nivel.substr(0,1);
	objeto=FIND("td"+nro);
	objeto.style.display="";
	mostrarnivel(nivel,c);
}

function FIND(item) {
	if( window.mmIsOpera ) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

