var menuTodos=new Array();
var menuInicio=new Array();

function startmenu(menuAbre)
{
	i=0;
	while (i<menuInicio.length) {
		document.getElementById('menu'+menuInicio[i]).style.display = "none";
		i++;
	}
	if (menuAbre!=0) {
		document.getElementById('menu'+menuAbre).style.display = "block";
	}
}

function clearmenu()
{
	i=0;
	while (i<menuTodos.length) {
		document.getElementById('menu'+menuTodos[i]).style.display = "none";
		i++;
	}
	
}

function menufunc(menuId)
{
	if(document.getElementById(menuId).style.display == "none")
	{
		clearmenu();
		document.getElementById(menuId).style.display = "block";
	}
	else
	{
		clearmenu();
	}
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function anima_DoFSCommand(command, args) {
	var animaObj = isInternetExplorer ? document.all.anima : document.anima;
	//
	// Place your code here.
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub anima_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call anima_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
