// ************************************************************************************
// Remover pontilhado do flash
// When the page loads: 
window.onload = function(){ 
if (document.getElementsByTagName) { 
// Get all the tags of type object in the page. 
var objs = document.getElementsByTagName("object"); 
for (i=0; i<objs.length; i++) { 
// Get the HTML content of each object tag 
// and replace it with itself. 
objs[i].outerHTML = objs[i].outerHTML; 
} 
} 
} 
// When the page unloads: 
window.onunload = function() { 
if (document.getElementsByTagName) { 
//Get all the tags of type object in the page. 
var objs = document.getElementsByTagName("object"); 
for (i=0; i<objs.length; i++) { 
// Clear out the HTML content of each object tag 
// to prevent an IE memory leak issue. 
objs[i].outerHTML = ""; 
} 
} 
} 

// ************************************************************************************
// Função para abrir e fechar elementos dentro de um DIV
// Não trabalha com imagens

function collapse_1( whichEl )
{
 	whichEl.display = (whichEl.display == "none")? "" : "none";
}


// ************************************************************************************
// Função para abrir e fechar elementos dentro de um DIV
// Trabalha com 2 imagens diferentes

function collapse_2( whichEl, wImage )
{
 	if(whichEl.display == "none")
	{
	  whichEl.display = "";
	  eval("document." + wImage + ".src='images/areas_menos.gif'");
	}
	else
	{
	  whichEl.display = "none";
	  eval("document." + wImage + ".src='images/areas_mais.gif'");
	}
}	

// ************************************************************************************
// Função para abrir um e fechar todos os outros elementos dentro de um DIV - institucional uninove
// Não trabalha com imagens

function collapse_3( whichEl, whichE2, whichE3, whichE4)
{
 	if(whichEl.display == "none"){
	  whichEl.display = "";
	  whichE2.display = "none";
	  whichE3.display = "none";
	  whichE4.display = "none";
	} else {
	  whichEl.display = "none";
	}
}
// ************************************************************************************
// Função para abrir um e fechar todos os outros elementos dentro de um DIV - areas uninove
// Não trabalha com imagens

function collapse_4( whichEl, whichE2, whichE3, whichE4, whichE5, whichE6, whichE7, whichE8, whichE9)
{
 	if(whichEl.display == "none"){
	  whichEl.display = "";
	  whichE2.display = "none";
	  whichE3.display = "none";
	  whichE4.display = "none";
	  whichE5.display = "none";
	  whichE6.display = "none";
	  whichE7.display = "none";
	  whichE8.display = "none";
	  whichE9.display = "none";
	} else {
	  whichEl.display = "none";
	}
}