// Java que faz os mouse serem over
// *******************************************************************
// * soopa-rollovers.js
// * 7/28/2001
// * www.youngpup.net
// *
// * easiest rollovers on earth, baby!
// * see www.youngpup.net for documentation.
// *******************************************************************
function soopaSetup() {
	var img, sh, sn, sd;
	for (var i = 0; (img = document.images[i]); i++) {
		if (img.getAttribute) {

			sn = img.getAttribute("src");
			sh = img.getAttribute("hsrc");
			sd = img.getAttribute("dsrc");

			if (sn != "" && sn != null) {
				img.n = new Image();
				img.n.src = img.src;
			
				if (sh != "" && sh != null) {
					img.h = new Image();
					img.h.src = sh;
					img.onmouseover = soopaSwapOn;
					img.onmouseout  = soopaSwapOff;
				}

				if (sd != "" && sd != null) {
					img.d = new Image();
					img.d.src = sd;
					img.onmousedown = soopaSwapDown;
				}
			}
		}
	}
}

function soopaSwapOn() {
	this.src = this.h.src;
}

function soopaSwapOff() {
	this.src  = this.n.src;
}

function soopaSwapDown() {
	this.src  = this.d.src;
	this.temp = typeof(document.onmouseup) != 'undefined' && typeof(document.onmouseup) != 'unknown' ? document.onmouseup : "";
	soopaSwapUp.img = this;
	document.onmouseup = soopaSwapUp;
}

function soopaSwapUp() {
	var ths = soopaSwapUp.img;
	ths.src = ths.n.src;
	if (ths.temp) document.onmouseup = ths.temp;
}

function escondeSelect() {
	for(var i = 0; i < document.forms.length; i++) {
		for(var e = 0; e < document.forms[i].length; e++){
			if(document.forms[i].elements[e].tagName == "SELECT") {
				document.forms[i].elements[e].style.visibility="hidden";
			}
		}
	}
}

function mostraSelect() {
	for(var i = 0; i < document.forms.length; i++) {
		for(var e = 0; e < document.forms[i].length; e++){
			if(document.forms[i].elements[e].tagName == "SELECT") {
		document.forms[i].elements[e].style.visibility="visible";
			}
		}
	}
}

function MostraEsconde(idMostra, idEsconde) {
	if (idMostra) {
		var a = idMostra.split(/\W/);
		for (var i in a) {
			var e = document.all && document.all[a[i]] || document.getElementById && document.getElementById(a[i]);
			if (e)
				e.style.display = '';
		}
	}
	if (idEsconde) {
		var a = idEsconde.split(/\W/);
		for (var i in a) {
			var e = document.all && document.all[a[i]] || document.getElementById && document.getElementById(a[i]);
			if (e)
				e.style.display = 'none';
		}
	}
}

// * COMMON DHTML FUNCTIONS
// * These are handy functions I use all the time.
// *
// * By Seth Banks (webmaster at subimage dot com)
// * http://www.subimage.com/
// *
// * Up to date code can be found at http://www.subimage.com/dhtml/
// *
// * This code is free for you to use anywhere, just keep this comment block.

// * X-browser event handler attachment and detachment
// * TH: Switched first true to false per http://www.onlinetools.org/articles/unobtrusivejavascript/chapter4.html
// *
// * @argument obj - the object to attach event to
// * @argument evType - name of the event - DONT ADD "on", pass only "mouseover", etc
// * @argument fn - function to call
function addEvent(obj, evType, fn){
	if (obj.addEventListener){
		obj.addEventListener(evType, fn, false);
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	} else {
		return false;
	}
}

function removeEvent(obj, evType, fn, useCapture){
	if (obj.removeEventListener){
		obj.removeEventListener(evType, fn, useCapture);
		return true;
	} else if (obj.detachEvent){
		var r = obj.detachEvent("on"+evType, fn);
		return r;
	} else {
		alert("Handler could not be removed");
	}
}

// * Code below taken from - http://www.evolt.org/article/document_body_doctype_switching_and_more/17/30655/
// *
// * Modified 4/22/04 to work with Opera/Moz (by webmaster at subimage dot com)
// *
// * Gets the full width/height because it's different for most browsers.
function getViewportHeight() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 
	return window.undefined; 
}

function getViewportWidth() {
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
	return window.undefined; 
}

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Encontra a posição de um elemento na tela
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}
function hideSelectBoxes() {
	var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
	if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE") > -1) {
		for(var i = 0; i < document.forms.length; i++) {
			for(var e = 0; e < document.forms[i].length; e++){
				if(document.forms[i].elements[e].tagName == "SELECT") {
					document.forms[i].elements[e].style.visibility="hidden";
				}
			}
		}
	}
}

/**
* Makes all drop down form select boxes on the screen visible so they do not reappear after the dialog is closed.
* IE has a problem with wanted select form tags to always be the topmost z-index or layer
*/
function displaySelectBoxes() {
	var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
	if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE") > -1) {
		for(var i = 0; i < document.forms.length; i++) {
			for(var e = 0; e < document.forms[i].length; e++){
				if(document.forms[i].elements[e].tagName == "SELECT") {
				document.forms[i].elements[e].style.visibility="visible";
				}
			}
		}
	}
}
function mostraAviso(topAlt) {
	document.getElementById('aviso_form').style.display = '';
	document.getElementById('aviso_form').style.top = topAlt + 'px';
}
function escondeAviso() {
	document.getElementById('aviso_form').style.display = 'none';
}


function VerificaCPF(CPF2){
	  aux = CPF2.toString().replace(".","");
	  aux = aux.replace(".","");
	  aux = aux.replace("/","");
	  aux = aux.replace("-","");
	  CPF = aux;	  
	  var posicao, i, soma, dv, dv_informado;
	  var digito = new Array(10); //Cria uma array de 11 posições para armazenar o CPF
	  dv_informado = CPF.substr(9, 2); // Armazena os dois últimos dígito do CPF
	  for (i=0; i<=8; i++) { // Desmembra o número do CPF na array digito
		digito[i] = CPF.substr( i, 1);
	  }
	  // Calcula o valor do 10° dígito da verificação
	  posicao = 10;
	  soma = 0;
	  for (i=0; i<=8; i++) {
		soma = soma + digito[i] * posicao;
		posicao = posicao - 1;
	  }
	  digito[9] = soma % 11;
	  if (digito[9] < 2) {
		digito[9] = 0;
	  }else{
		digito[9] = 11 - digito[9];
	  }
	  // Calcula o valor do 11° dígito da verificação
	  posicao = 11;
	  soma = 0;
	  for (i=0; i<=9; i++) {
		soma = soma + digito[i] * posicao;
		posicao = posicao - 1;
	  }
	  digito[10] = soma % 11;
	  if (digito[10] < 2) {
		digito[10] = 0;
	  }else {
		digito[10] = 11 - digito[10];
	  }
	  //Verifica se os dígitos verificadores conferem
	  dv = digito[9] * 10 + digito[10];
	  if (dv != dv_informado || CPF == 00000000000 ||
					CPF == 11111111111 || 
					CPF == 22222222222 || 
					CPF == 33333333333 || 
					CPF == 44444444444 || 
					CPF == 55555555555 || 
					CPF == 66666666666 || 
					CPF == 77777777777 || 
					CPF == 88888888888 || 
					CPF == 99999999999) {
		return false;
	  }else{			
		return true;
	  }
	  return false;     
}

function valida_cnpj(cnpj){
	var numeros, digitos, soma, i, resultado, pos, tamanho, digitos_iguais;
	digitos_iguais = 1;
	if (cnpj.length < 14 && cnpj.length < 15)
		return false;
	for (i = 0; i < cnpj.length - 1; i++)
		if (cnpj.charAt(i) != cnpj.charAt(i + 1))
			  {
			  digitos_iguais = 0;
			  break;
			  }
	if (!digitos_iguais)
		{
		tamanho = cnpj.length - 2
		numeros = cnpj.substring(0,tamanho);
		digitos = cnpj.substring(tamanho);
		soma = 0;
		pos = tamanho - 7;
		for (i = tamanho; i >= 1; i--)
			  {
			  soma += numeros.charAt(tamanho - i) * pos--;
			  if (pos < 2)
					pos = 9;
			  }
		resultado = soma % 11 < 2 ? 0 : 11 - soma % 11;
		if (resultado != digitos.charAt(0))
			  return false;
		tamanho = tamanho + 1;
		numeros = cnpj.substring(0,tamanho);
		soma = 0;
		pos = tamanho - 7;
		for (i = tamanho; i >= 1; i--)
			  {
			  soma += numeros.charAt(tamanho - i) * pos--;
			  if (pos < 2)
					pos = 9;
			  }
		resultado = soma % 11 < 2 ? 0 : 11 - soma % 11;
		if (resultado != digitos.charAt(1))
			  return false;
		return true;
		}
	else
		return false;
} 






function valida_usuarios_cin() {		
	//returnForm = true;
	var boolPF = document.getElementsByName("tipoPessoa")[0].checked;
	 /*document.getElementById('msg_nome').innerHTML='';
	 document.getElementById('msg_CPFCNPJ').innerHTML='';
	 document.getElementById('msg_SenhaForm').innerHTML='';
	 document.getElementById('msg_usuario').innerHTML='';
	 document.getElementById('msg_emailForm').innerHTML='';
	 document.getElementById('msg_endereco').innerHTML='';
	 document.getElementById('msg_endereco').innerHTML='';
	 document.getElementById('msg_cidade').innerHTML='';
	 document.getElementById('msg_CPFCNPJ').innerHTML='';
	 document.getElementById('msg_telefone').innerHTML='';*/
	
	
	if(document.getElementById("nome").value.length < 2 ){
	   //document.getElementById('msg_nome').innerHTML='Por favor, digite seu nome.';
	   mostraAviso('248');
	   document.getElementById('nome').focus();
	   return false;	
	}
	if(document.getElementById("CPFCNPJ").value.length < 2 ){
	   //document.getElementById('msg_CPFCNPJ').innerHTML='Por favor, digite seu CPF/CNPJ.';
	   mostraAviso('272');
	   document.getElementById('CPFCNPJ').focus();
	  return false;
	}else if(boolPF){ 	
		if(!VerificaCPF(document.getElementById('CPFCNPJ').value)){
			mostraAviso('272');
			document.getElementById('CPFCNPJ').focus();
			return false;
		}
	}else{
		if(!valida_cnpj(document.getElementById('CPFCNPJ').value)){
			mostraAviso('272');
			document.getElementById('CPFCNPJ').focus();
			return false;
		}		
	}
	if(document.getElementById("emailForm").value.length < 2 ){
		//document.getElementById('msg_emailForm').innerHTML='Por favor, digite seu email.';
		mostraAviso('293');
	   document.getElementById('emailForm').focus();
	  return false;
	}else if (!document.getElementById('emailForm').value.match(/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/)) {
		//document.getElementById('msg_emailForm').innerHTML='Por favor, digite um email válido.';
		mostraAviso('293');
	   document.getElementById('emailForm').focus();
	  return false;		
	}	
	if(document.getElementById("SenhaForm").value.length != 6 ){
		//document.getElementById('msg_SenhaForm').innerHTML='Por favor, digite sua senha.';
		mostraAviso('337');
	   document.getElementById('SenhaForm').focus();
	  return false;
	}
	if(document.getElementById("confSenhaForm").value != document.getElementById("SenhaForm").value){
		//document.getElementById('msg_SenhaForm').innerHTML='Por favor, digite sua senha.';
		mostraAviso('359');
	   document.getElementById('confSenhaForm').focus();
	  return false;
	}
	if(document.getElementById("endereco").value.length < 2 ){
		//document.getElementById('msg_endereco').innerHTML='Por favor, digite seu endereço.';
		mostraAviso('381');
	   document.getElementById('endereco').focus();
	  return false;
	}if(document.getElementById("cidade").value.length < 2 ){
		//document.getElementById('msg_cidade').innerHTML='Por favor, digite sua cidade.';
		mostraAviso('403');
	   document.getElementById('cidade').focus();
	  return false;
	}if(document.getElementById("CEP").value.length < 2 ){
		//document.getElementById('msg_CPFCNPJ').innerHTML='Por favor, digite seu CPF/CNPJ.';
		hideSelectBoxes();
		mostraAviso('448');
	   document.getElementById('CEP').focus();
	  return false;
	} else {
		displaySelectBoxes();	
	}
	if(document.getElementById("telefoneDDD").value.length < 2 ){
		//document.getElementById('msg_telefone').innerHTML='Por favor, digite o DDD do seu telefone.';
		hideSelectBoxes();
		mostraAviso('470');
	   document.getElementById('telefoneDDD').focus();
	  return false;
	} else {
		displaySelectBoxes();	
	} if(document.getElementById("telefone").value.length < 2 ){
		//document.getElementById('msg_telefone').innerHTML='Por favor, digite seu telefone.';
		hideSelectBoxes();
		mostraAviso('470');
	   document.getElementById('telefone').focus();
	  return false;
	} else {
		displaySelectBoxes();	
	}
	return true;
}
function alteraNomesCampos(){
	//alert(navigator.appName);
	//if(navigator.appName == "Microsoft Internet Explorer"){
		//var boolPF = !(document.getElementsByName("tipoPessoa")[0].checked);
	//}else{
		var boolPF = document.getElementsByName("tipoPessoa")[0].checked;
	//}
	if(boolPF){
		document.getElementById("spanNome").innerHTML = "* Nome";	
		document.getElementById("spanCPFCNPJ").innerHTML = "* CPF";	
		document.getElementById("spanContato").style.display = "none";
		document.getElementById("spanInformacoesEmpresa").style.display = "none";
		document.getElementById("nomeContato").value = "";
	}else{
		document.getElementById("spanNome").innerHTML = "* Razão Social";	
		document.getElementById("spanCPFCNPJ").innerHTML = "* CNPJ";	
		document.getElementById("spanContato").style.display = "";
		document.getElementById("spanInformacoesEmpresa").style.display = "";
	}

}
var modal_aberto;
//////////////////////////////////////////////////////////////////////////////////////
// função que faz o posicionamento dinâmico da foto em relação ao tamanho da janela //
//////////////////////////////////////////////////////////////////////////////////////
function posicionaFoto() {
	if(modal_aberto == true) {
		// Definição de onde está a janela em relação ao topo da página
		var scrOfY = 0;
		if( typeof( window.pageYOffset ) == 'number' ) {
			scrOfY = window.pageYOffset;
		} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
			scrOfY = document.body.scrollTop;
		} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
			scrOfY = document.documentElement.scrollTop;
		}
		var modal = document.getElementById("modMask");
		//var modal_img_fnd = document.getElementById("modal_img_fnd");
		var modal_img = document.getElementById("form_login");
		// fundo do modal
		modal.style.width = getViewportWidth()+"px";
		modal.style.height = getViewportHeight()+"px";
		modal.style.top = scrOfY+"px";
		// Posicionamento da imagem
		//var largura_tela = getViewportWidth()/2;
		var altura_tela = getViewportHeight()/2;
		//var largura_imagem = modal_img.clientWidth/2;
		//var altura_imagem = modal_img.clientHeight/2;
		var posicao_vertical = altura_tela;
		modal_img.style.top = (posicao_vertical - 100) +"px";
		//var posiciona_h = (largura_tela - largura_imagem)+"px";
		//modal_img_fnd.style.left = posiciona_h;
	}
}
// * Code below taken from - http://www.evolt.org/article/document_body_doctype_switching_and_more/17/30655/
// *
// * Modified 4/22/04 to work with Opera/Moz (by webmaster at subimage dot com)
// *
// * Gets the full width/height because it's different for most browsers.
function getViewportHeight() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 
	return window.undefined; 
}

function getViewportWidth() {
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
	return window.undefined; 
}
function fundoModal() {
	//var imgAmpSrc = caminho;
	//var modal_img = new Image(); 
	//modal_img.src = imgAmpSrc;
	modal_aberto = true;
	//document.getElementById("span_foto").innerHTML = '<div id="modal_fundo" class="modal_fundo"></div><div class="modal_img_fnd" id="modal_img_fnd"><div class="fechar_btn"><a href="javascript:;" onclick="fechaModal()"><img src="img/fechar_btn.gif" alt="Fechar" /></a></div><a href="javascript:;" onclick="fechaModal()"><img src="'+caminho+'" id="modal_img" onload="posicionaFoto()" onload="posicionaFoto()" /></a></div><br />';
	// Elimina rolagem da página	
	document.documentElement.style.overflowY = "hidden"; 
	document.body.style.overflowY = "hidden";
	document.documentElement.style.width = getViewportWidth() - 16 + "px"
	document.body.style.width = getViewportWidth() - 16 + "px"
		
	var modal = document.getElementById("modMask");
	//var modal_img_fnd = document.getElementById("modal_img_fnd");
	var modal_img = document.getElementById("form_login");
	modal.style.display = 'block';
	modal_img.style.display = 'block';	
	posicionaFoto();
	//hideSelectBoxes();
	
	
	//==================
	//document.getElementById("modMask").style.display = 'block';
	//document.getElementById("form_login").style.display = 'block';
	//document.getElementById("modMask").style.height = getViewportHeight() + 'px';
	//document.getElementById("modMask").style.width = getViewportWidth() + 'px';
}
function fechaFundoModal() {
	document.getElementById("modMask").style.display = 'none';
	document.getElementById("form_login").style.display = 'none';
	document.documentElement.style.overflowY = ''; 
	document.body.style.overflowY = '';
	document.body.style.width = '';
	document.documentElement.style.width = '';
}

function Tecla(e) {
	if (document.all){ // Internet Explorer
		var tecla = event.keyCode;
	}else{ // Nestcape			
		var tecla = e.which;
	}
	if (tecla > 47 && tecla < 58) // numeros de 0 a 9
		return true;
	else
		{
			if (tecla != 8){ // backspace
				if (document.all){
					event.keyCode = 0;
				}else{
					e.which = 0;
				}//return false;
			}else{
				return true;
			}
		}
}	
/////////////////////////////////////////////
// adiciona listener para Resize da página //
/////////////////////////////////////////////
function adEvent(obj, evType, fn){
	if (obj.addEventListener){
		obj.addEventListener(evType, fn, false);
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	} else {
		return false;
	}
}

function subOcultarDivsAsp()
{
  var lObjViewsate = document.getElementById('__VIEWSTATE');
  var lObjEventValidation = document.getElementById('__EVENTVALIDATION');

  if (lObjViewsate) lObjViewsate.parentNode.style.display = 'none';
  if (lObjEventValidation) lObjEventValidation.parentNode.style.display = 'none';
}

function init(){
  soopaSetup();
  subOcultarDivsAsp();
}
adEvent(window, "load", init);

function reqTermos(sender, args){
  args.IsValid = document.getElementById('ctl00_cphMain_termosRadio').checked;
  return;
}

function abreItem(num,idDiv) {
	var numItens = document.getElementsByTagName("dt").length;
	var itemAtual = "item"+num;
	var itemAtualAberto = "itemAberto"+num;
	for (var n = 1; n<=numItens; n++) {
		var itemLista = "item"+n;
		var itemListaAberto = "itemAberto"+n;
			if (document.getElementById(itemLista)) {
				if (document.getElementById(itemLista).className == "mostra_esconde") {
					document.getElementById(itemListaAberto).style.display = "none";
					document.getElementById(itemLista).style.display = "";
				}
			} 
	}
	document.getElementById(itemAtual).style.display = "none";
	document.getElementById(itemAtualAberto).style.display = "";
}
function fechaItem(num) {
	var itemAtual = "item"+num;
	var itemAtualAberto = "itemAberto"+num;
	document.getElementById(itemAtual).style.display = "";
	document.getElementById(itemAtualAberto).style.display = "none";
}

function abrePergunta(link) {  
  var spans = $A($(link).up("table").getElementsByTagName("tr")).map(Element.extend);
  var tr = $(link).up("tr");
  
  tr.down("span").toggle();
  tr.down("img.seta_baixo").toggle();
  tr.down("img.seta_dir").toggle();
  
  spans.each(function (item) {
	if (!link.descendantOf(item)){
	  item.down("span").hide();
	  item.down("img.seta_dir").show();
	  item.down("img.seta_baixo").hide();
	}
  });
}

function abreFechaAssunto(idBloco) {
  var bloco = document.getElementById(idBloco);
  var new_display = (bloco.style.display == "none") ? "none" : "";
  
  function trocaImgs(){
	var imgs = bloco.parentNode.getElementsByTagName("img");
	for (i=0; i<imgs.length; i++){
	  if (imgs[i].className == "img_mais_menos"){
		if (new_display == "") {
		  imgs[i].src = "../img/mais_btn.gif";
		}else{
		  imgs[i].src = "../img/menos_btn.gif";
		}
	  }
    
	  if (imgs[i].className == "can_esq_bot" || imgs[i].className == "can_dir_bot") {
		//Effect.toggle(imgs[i],'appear');
		imgs[i].style.display = new_display;
	  }
	}
  }
  
  if (new_display == "none") {
	options = {beforeStart : trocaImgs};
  }else{
	options = {afterFinish : trocaImgs};
  }
  
  Effect.toggle(idBloco,'slide', options);
}

function subAbreFechaTopico(pStrDiretorio)
{
  var lObjFechar = $('btnTopicoFechar');
  var lObjAbrir = $('btnTopicoAbrir');
    
  function subAlteraImagem()
  {
	if (! $('formMsg01').visible()) 
	{
	  lObjFechar.hide();
	  lObjAbrir.show();
	}
	else
	{
	  lObjFechar.show();
	  lObjAbrir.hide();
	}
  }
  
  
  Effect.toggle('formMsg01', 'slide', {afterFinish: subAlteraImagem});
}

function subAlterarAltura() {
	
	document.getElementById('flash_container').style.height = '854px';

}

function radioSeloParticipacao(radio) {
  $('ctl00_cphMain_hidImgSeloParticipacao').value = $(radio).previous("img.img_banner").src.split("/").last();
}

function radioSeloVotacao(radio) {
  $('ctl00_cphMain_hidConfigSeloVotacao').value = $(radio).value;
}