/*
 * INICIO - funções que fazem o efeito de abrir e fechar conteudo 
 */
 
var bullet = 'http://www.grupoflamingo.com.br/images/bullet.gif';
var bullet_down = 'http://www.grupoflamingo.com.br/images/bullet_down.gif'; 
var bullet_select = 'http://www.grupoflamingo.com.br/images/bullet_select.gif';
var gIdJob = "";
var gNameJob = "";

function doButtonsdown(imgid) {
	var alan = "img"+imgid;
	document.images[alan].src=bullet_down;
	document.getElementById('td_'+imgid).className = 'menu_section_hover';	
} 

function doButtonsstraight(imgid1) {
	var alan1 = "img"+imgid1;
	document.images[alan1].src=bullet;
	document.getElementById('td_'+imgid1).className = 'menu_section';
} 

function abrefecha(item1,item2) {
 
   if (item1.style.display=="none" || item1.style.display=="")   {
    //fechaALL();
    if (gIdJob == ""){
 	gIdJob = item1;
 	gNameJob = item2;
    } 
 
    gIdJob.style.display="none";
    doButtonsstraight(gNameJob);
    item1.style.display="inline";
    doButtonsdown(item2);
     
   } else { 
    item1.style.display="none";
    doButtonsstraight(item2); 
  }
  
  gIdJob = item1;
  gNameJob = item2; 
}

function doSelect(imgid) {
	var alan = "img"+imgid;
	if (document.images[alan].src != 'http://'+document.domain+bullet_down){
		document.images[alan].src=bullet_select;
		document.getElementById('td_'+imgid).className = 'menu_section_hover';
	} 
}

function doUnselect(imgid1) {
	var alan1 = "img"+imgid1;
	if (document.images[alan1].src != 'http://'+document.domain+bullet_down){
		document.images[alan1].src=bullet;
		document.getElementById('td_'+imgid1).className = 'menu_section';
	}
} 

/*
 * FIM - funções que fazem o efeito de abrir e fechar conteudo 
 */