//Function Oculta Tabla ID
isOPERA = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
isIE    = (document.all && !isOPERA)? true : false;
isDOM   = (document.getElementById && !isIE && !isOPERA)? true : false;

var cantidad	= new Array(); 
cantidad["sub"] = "8";
var entrada	= new Array();
var content	= new Array ();
initArray("sub");
function initArray(llave) {
	for (x=0; x < cantidad[llave]; x++){
		entrada [llave + "_"+x] = true;
	}
}
function show (llave, id, displayValue){
	if (isDOM)
		document.getElementById(llave+'_'+id).style.display = (displayValue)? displayValue: "block";
	else if (isIE)
	document.all[llave+'_'+id].style.display = "block";
}

function menu(llave, id){
	hide_all(llave);
	if (entrada[llave + "_"+id]){
		show (llave, id, 'table-row');
		for (x=0; x < cantidad[llave]; x++){
			entrada [llave + "_"+x] = true;
		}
		entrada[llave + "_"+id] = true;//false;
	}else{
		entrada[llave + "_"+id]=true;
	} 
}
 
function hide (id){
	if (isDOM)
		document.getElementById(id).style.display = "none";
	else if (isIE)
		document.all[id].style.display = "none";
}
 
function hide_all(llave) {
	for (i=0; i<cantidad[llave];i++){
		hide(llave + "_" + i);
	}
}


var iDelay = 1000 ;
var sDisplayTimer = null;
var oLastItem = true;
var iNSWidth = 100;
 
function stopTimer() {
 clearTimeout(sDisplayTimer)
}

function startTimer(el) {
  stopTimer()
  sDisplayTimer = setTimeout("hideItem('"+el+"')",iDelay)
}

function hideItem(el) {
	if (oLastItem) {
		hide_all(el);
	}
}

 
//-->