function bigpic(mypic)
{
eval("page" + " = window.open(mypic, '"  + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=525');");
}

function ligar(id_td,id_a)
{
id_td.style.backgroundColor='#6698dd';
document.getElementById(id_a).style.color='white';

return false;
}

function desligar(id_td,id_a)
{
id_td.style.backgroundColor='';
//document.getElementById(id_a).style.color='black';
document.getElementById(id_a).style.color='navy';

return false;
}

function menuInit()
{
if (document.getElementsByTagName) // Object detect
	{
	var spanTags=document.getElementsByTagName('DIV');

	for (i=0;i < spanTags.length;i++)
		{
		if (spanTags[i].id.substring(0,7) == 'grmenu_' && spanTags[i].id != item_menu_a_abrir)
			{
			spanTags[i].style.display='none'; 
			}
		}
	}

return true;
}

function toggle(x)
{
// Lets close all the menu items _except_ the one specified
if (document.getElementsByTagName) // Object detect
	{
	var spanTags=document.getElementsByTagName('DIV');

	for (i=0;i < spanTags.length;i++)
		{
		if (spanTags[i].id.substring(0,7) == 'grmenu_' && spanTags[i].id != x)
			{
			spanTags[i].style.display='none'; 
			}
		}
	}

if (document.getElementById) // Object detect
	{
	e=document.getElementById(x);

	if (e.style.display == 'none')
		{
		e.style.display='';
		}
	else
		{
		e.style.display='none';
		}
	}

return true;
}
