//despliege de contenidos con pulldown

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["muestra_otromedio"] = "1";
var entrada=true;
var content				= new Array ();
 
function show (id, displayValue){
	if (isDOM)
	document.getElementById(id).style.display = (displayValue)? displayValue: "block";
		else if (isIE)
		document.all[id].style.display = "block";
}

function menu(llave, id){
	hide_all(llave);
	if (content [id] || entrada){
		show (id, 'table-row');
		content [id] = false;
		// entrada = false;
		for (x=0; x < cantidad[llave]; x++){
			content [llave + "_"+x] = true;
		}
		content [id] = false;
	}else{
	
	} 
}
 
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);
	}
}
// Funcion muestra/oculta mas simple
	function blockDiv(element, block) {
		if(document.all) {
			element = document.all['muestra_otromedio'];
		} else {
			element = document.getElementsById(element);
		}
		visible = (block)?'block':'none';
		element.style.display = visible;	
	}