// JavaScript Document
function showdiv(ativar,id1,id2) // desevolvido por Daniel de Jesus Antunes Martins Ramos para o site Motores de Busca  		 
{								 // http://www.motoresdebusca.com.br
	var A=document.getElementById(id1);
	var B=document.getElementById(id2);
	if(ativar=='sim')
	{
		B.style.display = 'block';
		A.style.display= 'none';	
	}
	else
	{
		A.style.display = 'block';
		B.style.display= 'none';
	}
}

<!-- Desenvolvido por Fernando Bittencourt, adaptado por Daniel de Jesus Antunes Martins Ramos para Vobis® desenvolvimento e hospedagem de web sites -->
<!-- http://www.vobis.com.br -->

function abrir(foto,titulo) {

  var largura = 0;
  var altura = 0;
  var esquerda = ((screen.width - largura) / 2);
  var topo = ((screen.height - altura) / 2);

Popup = window.open('', 'Janela', 'width = ' + largura + ', height = ' + altura + ', top = ' + topo + ', left = ' + esquerda + ', scrollbars = no, status = no, toolbar = no, location = no, directories = no, menubar = no, resizable = no, fullscreen = no');
Popup.document.open();
Popup.document.write("<html><head><title>");
Popup.document.write(titulo);
Popup.document.write("</title>");
Popup.document.write('<script language=' + '\"JavaScript\">');
Popup.document.write('function ' + 'resize() {');
Popup.document.write('var x = ' + 'document.images[0].width;');
Popup.document.write('var y = ' + 'document.images[0].height;');
Popup.document.write('this.resizeTo ' + '((x + 10), (y + 30));');
Popup.document.write('}');
Popup.document.write('this.moveTo '+'(0,0);');
Popup.document.write('</scr' + 'ipt>');
Popup.document.write("</head><body leftmargin=0 topmargin=0 onload=\"resize()\">");
Popup.document.write('<center>');
Popup.document.write('<img src=\"' + foto + '\">');
Popup.document.write("</center>");
Popup.document.write("</body></html>");
Popup.document.close();
Popup.focus();
}

// -->

function favoritos (pagina, titulo)             //função que adiciona aos favoritos em IE, Firefox, Netscape
{ 												// desenvolvida por http://www.promissao.net/festadopeao/ 
  if(document.all)								// e aplicada por Daniel de Jesus Antunes Martins Ramos para a Motores de Busca
  { 											// http://www.motoresdebusca.com.br
    window.external.AddFavorite (pagina, titulo); 	
  } else { 											
    window.sidebar.addPanel (titulo, pagina, ""); 
  } 
}
