ativo = null;
cellAtivo = null;
timeId = null;
document.onclick = new Function("show()");


function show(cell,obj)
{
	obj = document.getElementById(obj);
	if(ativo!=null) { ativo.style.visibility = "hidden"; ativo=null;  cellAtivo.style.backgroundColor=''; }
	if(cell)
	{
		cell.style.backgroundColor='#FED8ED';
		cellAtivo = cell;
	}
	if(timeId!=null){ clearTimeout(timeId); }
	if(obj)
	{
		obj.style.visibility = "visible";
		ativo = obj;
	}
}


function timerHidePop()
{
	if(ativo!=null)
	{
		timeId = setTimeout("ativo.style.visibility = 'hidden'; timeId=null; cellAtivo.style.backgroundColor=''; ativo=null;",3000);
	}
	else { 
	if(ativo==null){ cellAtivo.style.backgroundColor=''; }
	}
}

function escreveMenu(stringFinal){
 if ( document.all )
        {
                menu.innerHTML = stringFinal;
                menu.style.visibility = 'visible';
		        }
        else if ( !document.all && document.getElementById )
        {
                document.getElementById( "menu" ).innerHTML = stringFinal;
                document.getElementById( "menu" ).style.visibility = 'visible' ;
		        }
        else
        {
                menu.innerHTML = stringFinal;
                menu.style.visibility = 'visible' ;
		        }
}

desenvolvimento = new Array(
	Array('<b>PÁGINA INICIAL</b>','http://www.luizacordeiro.com.br',''),
	Array('<b>ATUAÇÃO LEGISLATIVA</b>','#','linguagens'),
	Array('<b>AÇÃO NA COMUNIDADE</b>','http://www.luizacordeiro.com.br/nacomunidade/index.php',''),
	Array('<b>CONHEÇA LUIZA</b>','http://www.luizacordeiro.com.br/txt_menu/conheca.php',''),
	Array('<b>PARQUE CECAP</b>','http://www.luizacordeiro.com.br/txt_menu/cecap.php',''),
	Array('<b>SELO AMBIENTAL</b>','http://www.luizacordeiro.com.br/txt_menu/visu_selo.php',''),
	Array('<b>ARTIGOS</b>','http://www.luizacordeiro.com.br/artigos/2005/default.php',''),
	Array('<b>LUIZA NA IMPRENSA</b>','http://www.luizacordeiro.com.br/na_imprensa/index.php',''),
	Array('<b>BOLETIM</b>','http://www.luizacordeiro.com.br/boletim/index.php',''),
	Array('<b>AUDIOS</b>','http://www.luizacordeiro.com.br/audios/audios.php',''),	
	Array('<b>FALE COM A GENTE</b>','http://www.luizacordeiro.com.br/txt_menu/fale.php',''),
	Array('<b>CADASTRE-SE</b>','http://www.luizacordeiro.com.br/cadastrese/cada.php','')	

)
	
titulo = new Array(desenvolvimento);
titulonome = new Array('MENU');

var stringFinalMenu = '';

for(j=0; titulo[j]; j++)
{
	
	stringFinalMenu = stringFinalMenu+"<table width=\"150\" height=\"18\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"4\" align=\"right\" height=\"8\"><img src=\"http://www.luizacordeiro.com.br/imagens/espaco.gif\" width=\"3\" height=\"18\"></td><td rowspan=\"3\" background=\"http://www.luizacordeiro.com.br/imagens/espaco.gif\" class=\"arial cFFFFFF size11\"> &nbsp;&nbsp;<strong>"+titulonome[j]+"</strong></td></tr></table>"
	stringFinalMenu = stringFinalMenu+"<table width=\"170\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" class=\"arial size11 c333333\">";
	for(y=0; titulo[j][y]; y++)
	{
		
		if(y!=0){ estilo  = "class=\"bordaTop bcFFFFFF\"";} else{ estilo = "";}
		if(titulo[j][y][2]){ strmouseover = "show(this,'"+titulo[j][y][2]+"')"; seta = " <a href=\""+titulo[j][y][1]+"\" class=\"c333333 nlink\"><img src=\"http://www.luizacordeiro.com.br/imagens/seta-menu-branca.gif\" width=\"6\" height=\"8\" border=\"0\"></a>"; } else { strmouseover = "show(this);"; seta = "";}
		stringFinalMenu = stringFinalMenu+"<tr><td height=\"24\" colspan=\"2\" onMouseOver=\""+strmouseover+";\" onMouseOut=\"timerHidePop()\" "+estilo+"><img src=\"/imagens/espaco.gif\" width=\"1\" height=\"24\" align=\"absmiddle\">&nbsp;&nbsp;<a href=\""+titulo[j][y][1]+"\" class=\"c333333 nlink\">"+titulo[j][y][0]+"</a>"+seta+"</td></tr>";
	}
	
	stringFinalMenu = stringFinalMenu+"</table>";
}
