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='#aeffd7';
		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 escreveMenu1(stringFinal){
 if ( document.all )
        {
                menu1.innerHTML = stringFinal;
                menu1.style.visibility = 'visible';
		        }
        else if ( !document.all && document.getElementById )
        {
                document.getElementById( "menu1" ).innerHTML = stringFinal;
                document.getElementById( "menu1" ).style.visibility = 'visible' ;
		        }
        else
        {
                menu1.innerHTML = stringFinal;
                menu1.style.visibility = 'visible' ;
		        }
}

function escreveColab(stringFinal){
 if ( document.all )
        {
                colab.innerHTML = stringFinal;
                colab.style.visibility = 'visible';
		        }
        else if ( !document.all && document.getElementById )
        {
                document.getElementById( "colab" ).innerHTML = stringFinal;
                document.getElementById( "colab" ).style.visibility = 'visible' ;
		        }
        else
        {
                colab.innerHTML = stringFinal;
                colab.style.visibility = 'visible' ;
		        }
}

areas = new Array(
	Array('Archeology<br>&nbsp;&nbsp;and Anthropology<br><br>','http://www.abequa.org.br/english/areas/arqueologia.htm',''),
	Array('Soil Sciences<br><br>','http://www.abequa.org.br/english/areas/ciencias_solo.htm',''),
	Array('Climatology and<br>&nbsp;&nbsp;Meteorology<br><br>','http://www.abequa.org.br/english/areas/climatologia.htm',''),
	Array('Ecology<br><br>','http://www.abequa.org.br/english/areas/ecologia.htm',''),
	Array('Costal Engineering<br><br>','http://www.abequa.org.br/english/areas/engcosteira.htm',''),
	Array('Geophysics<br><br>','http://www.abequa.org.br/english/areas/geofisica.htm',''),
	Array('Coastal Geomorphology<br><br>','http://www.abequa.org.br/english/areas/geomorfo.htm',''),
    Array('Geology<br><br>','http://www.abequa.org.br/english/areas/geologia.htm',''),
	Array('Geotechny and<br>&nbsp;&nbsp;The Environment<br><br>','http://www.abequa.org.br/english/areas/geotecnia.htm',''),
	Array('Oceanography<br><br>','http://www.abequa.org.br/english/areas/oceanografia.htm',''),
	Array('Paleoecology and<br>&nbsp;&nbsp;Paleoclimatology<br><br>','http://www.abequa.org.br/english/areas/paleoecologia.htm',''),
	Array('Public Politics and<br>&nbsp;&nbsp;Environmental Legislation<br><br>','http://www.abequa.org.br/english/areas/politicas.htm',''),
	Array('Natural Resources<br><br>','http://www.abequa.org.br/english/areas/recursos.htm',''),
	Array('Remote Sensings<br><br>','http://www.abequa.org.br/english/areas/sensoriamento.htm','')
	);

titulo = new Array(areas);
titulonome = new Array('Areas of Research');

var stringFinalMenu1 = '';

for(j=0; titulo[j]; j++)
{
	
	stringFinalMenu1 = stringFinalMenu1+"<table width=\"132\" height=\"18\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tr><td width=\"4\" height=\"8\" bgcolor=\"#027E82\"></td><td rowspan=\"3\" bgcolor=\"#027E82\" class=\"arial cFFFFFF size11\"> &nbsp;&nbsp;<strong>"+titulonome[j]+"</strong></td></tr><tr><td width=\"4\" height=\"7\" bgcolor=\"#b0b000\"></td></tr><tr><td width=\"4\" height=\"8\" bgcolor=\"#027E82\"></td></tr></table>"
	stringFinalMenu1 = stringFinalMenu1+"<table width=\"132\" 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.imasters.com.br/img/outros/seta_menu.gif\" width=\"4\" height=\"6\" border=\"0\"></a>"; } else { strmouseover = "show(this);"; seta = "";}
		stringFinalMenu1 = stringFinalMenu1+"<tr><td height=\"18\" colspan=\"2\" onMouseOver=\""+strmouseover+";\" onMouseOut=\"timerHidePop()\" "+estilo+"><img src=\"/img/pixels/pixel_transparente.gif\" width=\"1\" height=\"18\" >&nbsp;&nbsp;<a href=\""+titulo[j][y][1]+"\" class=\"c333333 nlink\">"+titulo[j][y][0]+"</a>"+seta+"</td></tr>";
	}
	
	stringFinalMenu1 = stringFinalMenu1+"</table>";
}

var stringFinalColab = '';

stringFinalColab = '<br />';

for(z=0; arrColab[z]; z++)
{

}
