// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//FUNÇÃO MOUSEOVER/OUT - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function muda(i,nome,objmuda,mudanca) { 
	obj = document.getElementById(nome+i);
	if (objmuda=='style.background') {
		obj.style.background = mudanca;
	}
	if (objmuda=='src') {
		obj.src = caminho+mudanca;
	}
	if (objmuda=='style.display') {
		obj.style.display = mudanca;
	}
	if (objmuda=='style.border') {
		obj.style.border = mudanca;
	}
}

//FUNÇÃO FLASH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function flash(swf,width,height,transparent,links)
{
document.write('<object classid="clsid:D27CDB6E-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="' + swf + '" />');
document.write('<param name="quality" value="high" />');
if(transparent=='true'){
  document.write('<param name="wmode" value="transparent">');
}
document.write('<param name="FlashVars" value="' + links + '" />');
if(transparent=='true'){
	document.write('<embed src="' + swf + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" flashVars="' + links + '"></embed>'); 
} else {
	document.write('<embed src="' + swf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" flashVars="' + links + '"></embed>'); 
}
document.write('</object>');
}

//FUNÇÃO PARA OS CAMPOS OUTROS CARGOS E AREAS- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function aparece(id_campo,id_campo_aparece){
	campo = document.getElementById(id_campo_aparece);
	campoOutros = campo.getElementsByTagName('input');
	outros = document.getElementById(id_campo);
	radio = outros.getElementsByTagName('input');
	campo_anula = document.getElementById('cargo');

	if(radio[0].checked==true){
		campo.style.display=''
		campoOutros[0].verificar = 'Qual'
		campo_anula[0].verificar = ''
	}else{
		campo.style.display='none'
		campoOutros[0].verificar = ''
		campo_anula[0].verificar = 'Cargo'
	}
}
