// JavaScript Document
function Vacio()
{
for (i=1; i<=3; i++)
		window.document.getElementById('id'+i).style.display='none';
}
		
function SubMenu(obj,id,evt)
{
if (window.document.getElementById(id).style.display=='')
	window.document.getElementById(id).style.display='none'
else
	{
	Vacio();
	window.document.getElementById(id).style.display=''
	//window.document.getElementById(id).style.top=evt.y;     //Funciona con IE, pero no con Mozilla
	window.document.getElementById(id).style.top=obj.offsetTop;	//Funciona con todos
	window.document.getElementById(id).style.left=window.document.getElementById("tabla").width;
	}
obj.style.background='#88AADD';	// Resalta el fondo de la opcion activa
}