imagem_lista = Array('img/barra.png','img/barra_esquerdo.png','img/centro_fundo.gif','img/fundo_ladoesquerdo.png','img/fundo_pagina.png','img/lado_direito_img2.gif','img/lado_direito_img.gif','img/lado_esquerdo_img.gif','img/topo.png');
imagem_qtd = imagem_lista.length;
for (i = 0; i <imagem_qtd; i++) {
	var preload2 = new Image();
	preload2.src = imagem_lista[i];
} 	

function addSWF (URL, WIDTH, HEIGHT, TRANSPARENT)
{
document.write (' <object classid="clsid:27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write (' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ');
document.write (' width="'+ WIDTH +'" height="'+ HEIGHT +'">');
document.write (' <param name="movie" value="'+ URL +'" />');
document.write (' <param name="quality" value="high" />');

if ( TRANSPARENT ) {
  document.write (' <param name="Wmode" value="Transparent" />'); 
}

document.write (' <embed src="'+ URL +'" quality="high" ');

if ( TRANSPARENT ) {
document.write (' Wmode = "transparent" ');
}

document.write (' pluginspage="http://www.macromedia.com/go/getflashplayer" ');
document.write (' type="application/x-shockwave-flash" width="'+ WIDTH +'" height="'+ HEIGHT +'"></embed> ');
document.write (' </object>');

}


function JS_AlinhaPag() { 
	var tabela 		= document.getElementById('tabela')
	tabela.width 	= screen.width-21
	tabela.height   = screen.height-175
	var celula		= tabela.cells
	if (screen.width<=800) { 
		celula[0].className='somecoluna'
		celula[2].className='somecoluna'
		celula[3].className='somecoluna'
		celula[5].className='somecoluna'
		celula[6].className='somecoluna'
		celula[8].className='somecoluna'
	} else { 
		/* Alinhamento no centro */
			tabela.width = "992"
			celula[0].width = (tabela.width-780)/2
			celula[1].width = 780
			celula[2].width = (tabela.width-780-celula[0].width)
			celula[0].className='exibecoluna'
			celula[2].className='exibecoluna'
			celula[3].className='exibecoluna'
			celula[5].className='exibecoluna'
			celula[6].className='exibecoluna'
			celula[8].className='exibecoluna'
	}
}

 function CritForm(nome, email, mensagem, assunto) { 
	var enviar = true;
	if (nome=='' || email=='' || mensagem=='' || assunto=='') { 
		window.alert('Preencha todos os campos!')
		enviar = false;
	}
	if (enviar==true) { 
		document.getElementById('formulario').submit()
	}
 }

