function mostrarMenu(objetoTD){
		var nombreTabla = objetoTD.id.substr(3);
		 
		tablaPadre = objetoTD.parentElement.parentElement.parentElement;
		tabla = eval("document.all." + nombreTabla);
		tabla.style.visibility = "visible";
		tabla.style.left =tablaPadre.offsetLeft + objetoTD.offsetWidth*0.9;
		tabla.style.top = tablaPadre.offsetTop + objetoTD.offsetTop +  objetoTD.offsetHeight/2;		
	}
	
	function ocultarMenu(nombreTabla){
		tabla = eval("document.all." + nombreTabla);
		tabla.style.visibility = "hidden"
	}	
	
	function atenuarSeleccionMain(columna){
		var fila = 	columna.parentElement;		
		fila.style.backgroundColor = '#F6FAFA';		
		fila.style.color = '#333333';
		fila.style.cursor = "default";
	}
	
	function atenuarSeleccionSub(columna){
		var fila = 	columna.parentElement;		
		fila.style.backgroundColor = '#F9F5FA'
		fila.style.color = '#333333';				
		fila.style.cursor = "default";
	}	
	
	function resaltarSeleccionMain(columna){
		var fila = 	columna.parentElement;
		fila.style.backgroundColor = '#F5F4E9';
		fila.style.color = '#b0915f';		
		fila.style.cursor = "hand";		
	}
	
	function resaltarSeleccionSub(columna){
		var fila = 	columna.parentElement;
		fila.style.backgroundColor = '#F5F4E9';
		fila.style.color = '#b0915f';				
		fila.style.cursor = "hand";		
	}
	
	function mouseOver(row, hasSubMenu,main){
		if (main == true){
			resaltarSeleccionMain(row);	
		} else {
			resaltarSeleccionSub(row);			
		}

		if (hasSubMenu == true){
			mostrarMenu(row);
		}
	}
	
	function mouseOut(row, main,tableName){
		if (main ==true){
			atenuarSeleccionMain(row);	
		} else {
			atenuarSeleccionSub(row);			
		}

		if (tableName != null){
			ocultarMenu(tableName);		
		}
	}	
	
	/*function doAccion(LinkTxt){
	alert(LinkTxt);
		if (LinkTxt.indexOf('javascript:')!=-1){
			eval(LinkTxt);
		} else {
			window.location.href=LinkTxt;
		}
	}*/
	
	function mostrarSubMenu(tabla){
		tabla.style.visibility = 'visible';
		resaltarSeleccionMain(eval('document.all.' + 'row'  + tabla.id));
	}
	
	function ocultarSubMenu(tabla){
		tabla.style.visibility = 'hidden';
		atenuarSeleccionMain(eval('document.all.' + 'row'  + tabla.id));
	}	