//input newsletter
function vanish(id_ob,valor_ini,valor_final) {
	if(valor_final == valor_ini){
		document.getElementById(id_ob).value = '';
	}
}
function returns(id_ob,valor_ini,valor_final) {
	if(valor_final == ''){
		document.getElementById(id_ob).value = valor_ini;
	}
}

function select_busca(id) {
	if(id == 'busca_blog'){
		document.getElementById("busca_not").className = "";
		document.getElementById("busca_agenda").className = "";
		document.getElementById("form_busca_site").action = "/colunas_e_blogs/migueljr/";
		document.getElementById("busca_site").name = "buscar";
		document.getElementById("busca_blog").className = "tabbed";
		
	}else if(id == 'busca_not'){
		document.getElementById("busca_blog").className = "";
		document.getElementById("busca_agenda").className = "";
		document.getElementById("form_busca_site").action = "/noticias/busca/";
		document.getElementById("busca_site").name = "text";
		document.getElementById("busca_not").className = "tabbed";
	}else if(id == 'busca_agenda'){
		document.getElementById("busca_not").className = "";
		document.getElementById("busca_blog").className = "";
		document.getElementById("form_busca_site").action = "/agenda_e_eventos/";
		document.getElementById("busca_site").name = "text";
		document.getElementById("busca_agenda").className = "tabbed";
	}		
}
/*******/
function login_limpa(valor,op) {
	if((valor == 'usuário')&&(op == 0)) {
		document.login.usuario.value = '';
	}
	if((valor == '')&&(op == 0)) {
	   document.login.usuario.value = 'usuário';
	}
	if((valor == '*******')&&(op == 1)) {
		document.login.senha.value = '';
	}
	if((valor == '')&&(op == 1)) {
	   document.login.senha.value = '*******';
	}
}

/*******/
function testaAjax() {
  try {
	 ajax = new ActiveXObject("Microsoft.XMLHTTP");
  } 
  catch(e) {
	 try {
		ajax = new ActiveXObject("Msxml2.XMLHTTP");
	 }
	 catch(ex) {
		try {
		   ajax = new XMLHttpRequest();
		}
		catch(exc) {
		   alert("Esse browser não tem recursos para uso do Ajax");
		   ajax = null;
		}
	 }
  }
  return ajax;   
}

function mudaMes(mes, ano, lnk) {
	if(testaAjax()!=null) {
		 var agenda_eventos = document.getElementById('calendar');
		 agenda_eventos.style.cssText = 'text-align:center;';
		 ajax.open("POST", "/index.php", true);
		 ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		 
		 ajax.onreadystatechange = function() {
			if(ajax.readyState == 1) {
			   agenda_eventos.innerHTML = '<img src="/images/carregando.gif" alt="carregando"><br />Atualizando...<br />Por favor espere<br /><br />';   
			}
			if(ajax.readyState == 4 ) {
			   if(ajax.responseXML) {
				  monta(ajax.responseXML, lnk);
			   } else {
				  agenda_eventos.innerHTML = '<br />Erro ao atualizar o calendário<br /><br />';
			   }
			}
		 }
		 //passa o código do processador escolhido
		 var params = "ano="+ano+"-"+mes;
		 ajax.send(params);		 
	}
}
function monta(obj, lnk) {
	var dataArray = obj.getElementsByTagName("dias");
	if(dataArray.length > 0) {
		
		var item = dataArray[0];
		var dia = item.getElementsByTagName("dia")[0].firstChild.nodeValue;
		var mes = new Number(item.getElementsByTagName("mes")[0].firstChild.nodeValue);
		var ano = new Number(item.getElementsByTagName("ano")[0].firstChild.nodeValue);
		var primeiro = item.getElementsByTagName("primeiro")[0].firstChild.nodeValue;	
		var ultimo = item.getElementsByTagName("ultimo")[0].firstChild.nodeValue;	
		try {
			var sem = item.getElementsByTagName("sem")[0].firstChild.nodeValue;		
		} catch(er) {}

		var Meses = ['','Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'];

		var tabela = '<table border="0" cellspacing="3" cellpadding="0" class="calendario">'+
					 '<tr style="font-size:11px;">'+
						'<td align="center">'+
						'<b>';
		
		var AnoMesAnterior;
		var MesAnterior = mes-1;
		
		if(MesAnterior==0) { 
			MesAnterior = 12;
			AnoMesAnterior = ano-1; 
		} else {
			AnoMesAnterior = ano;
		}

		if(lnk != 'principal')
			tabela += "<a href=\"/agenda_e_eventos/"+(Meses[MesAnterior].toLowerCase())+"/"+AnoMesAnterior+"/\" onClick=\"mudaMes('";
		else
			tabela += "<a href=\"/"+(Meses[MesAnterior].toLowerCase())+"/"+AnoMesAnterior+"/\" onClick=\"mudaMes('";
																																  
		if(MesAnterior < 10)
			MesAnterior = '0'+MesAnterior;
																																  
																																  			
			tabela += MesAnterior+"','"+AnoMesAnterior+"','"+lnk+"');return false;\">&laquo;</a>&nbsp;&nbsp;";
	
		//Imprime o mês selecionado
		tabela += Meses[mes]+"&nbsp;&nbsp;"+ano;

		//Imprime o pr&oacute;ximo m&ecirc;s
		var AnoMesProximo;
		var MesProximo = mes+1;
		
		if(MesProximo==13) {
			MesProximo = 1;
			AnoMesProximo = ano+1;
		} else {
			AnoMesProximo = ano;
		}

		if(lnk != 'principal')
			tabela += "&nbsp;&nbsp;<a href=\"/agenda_e_eventos/"+(Meses[MesProximo].toLowerCase())+"/"+AnoMesProximo+"/\" onClick=\"mudaMes('";
		else
			tabela += "&nbsp;&nbsp;<a href=\"/"+(Meses[MesProximo].toLowerCase())+"/"+AnoMesProximo+"/\" onClick=\"mudaMes('";			
																																			
		if(MesProximo < 10)
			MesProximo = '0'+MesProximo;
			
			tabela += MesProximo+"','"+AnoMesProximo+"','"+lnk+"');return false;\">&raquo;</a>";	
			
		    tabela += '</b>'+
					 '</td>'+
				  '</tr>'+
				  '<tr>'+
					'<td>'+
					'<table border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #343540;">'+
					  '<tr>'+
						'<td class="CalendarioA1">D</td>'+
						'<td class="CalendarioA2">S</td>'+
						'<td class="CalendarioA2">T</td>'+
						'<td class="CalendarioA2">Q</td>'+
						'<td class="CalendarioA2">Q</td>'+
						'<td class="CalendarioA2">S</td>'+
						'<td class="CalendarioA2">S</td>'+
					  '</tr>'+
					  '<tr>';
		var tdia = 0;
		var foilink = 0;
		for(i=1;i<=7;++i) {
		
			if(i==1)
				var Style='CalendarioB1';
			else
				var Style='CalendarioB2';
		
			if(i<primeiro) {
				tabela += "<td class="+Style+">&nbsp;</td>";
		 	} else {
				tdia++;
				foilink = 0;
				if(!sem)
					for(z=0;z<dataArray.length;z++) {
						var item = dataArray[z];
						dia = item.getElementsByTagName("dia")[0].firstChild.nodeValue;
						mes = item.getElementsByTagName("mes")[0].firstChild.nodeValue;
						ano = item.getElementsByTagName("ano")[0].firstChild.nodeValue;
						if(dia == tdia || dia == ('0'+tdia)) {
							if(lnk != 'principal')
								tabela += "<td class="+Style+'Link'+" onClick=\"location='/agenda_e_eventos/"+ano+"-"+mes+"-"+dia+"/'\">"+tdia+"</td>";
							else
								tabela += "<td class="+Style+'Link'+" onClick=\"agenda.mostraDados('"+ano+"-"+mes+"-"+dia+"','agenda="+ano+"-"+mes+"-"+dia+"'); return false;\">"+tdia+"</td>";
							foilink = 1;
							break;
						} else if(dia > tdia)
							break;
					}
				if(foilink == 0)
					tabela += "<td class="+Style+">"+tdia+"</td>";
			}
		}
		
		var lastday = Math.ceil((ultimo-tdia)/7);
		for(w=1;w<=lastday;++w) {
		
			tabela += "<tr>";
			for(i=1;i<=7;++i) {
			
				if(i==1)
					var Style='CalendarioB1';
				else
					var Style='CalendarioB2';
			
				if(tdia<ultimo) {
					tdia++;
					foilink = 0;
					for(z=0;z<dataArray.length;z++) {
						var item = dataArray[z];
						dia = item.getElementsByTagName("dia")[0].firstChild.nodeValue;
						mes = item.getElementsByTagName("mes")[0].firstChild.nodeValue;
						ano = item.getElementsByTagName("ano")[0].firstChild.nodeValue;
						//alert(dia+' == '+tdia+' || '+dia+' == (0'+tdia+')');
						if(dia == tdia || dia == ('0'+tdia)) {
							if(lnk != 'principal')
								tabela += "<td class="+Style+'Link'+" onClick=\"location='/agenda_e_eventos/"+ano+"-"+mes+"-"+dia+"/'\">"+tdia+"</td>";
							else
								tabela += "<td class="+Style+'Link'+" onClick=\"agenda.mostraDados('"+ano+"-"+mes+"-"+dia+"','agenda="+ano+"-"+mes+"-"+dia+"'); return false;\">"+tdia+"</td>";
								
							foilink = 1;
							break;
						} else if(dia > tdia)
							break;
					}
					if(foilink == 0)
						tabela += "<td class="+Style+">"+tdia+"</td>";
				} else { 
					tabela += "<td class="+Style+">&nbsp;</td>";
				}
			
			}
			tabela += "</tr>";
		}//for

			tabela += '</tr>'+
					  '</table>'+
					'</td>'+
				  '</tr>'+
				  '</table>';
		
		
		document.getElementById('calendar').innerHTML = tabela;
	}
	
}

function Calendario() {
	
	this.mostraDados = function(ref, params) {
	  if(testaAjax()!=null) {
		 var agenda_eventos = document.getElementById('agenda_eventos');
		 agenda_eventos.style.cssText = 'text-align:center;';
		 ajax.open("POST", "/index.php", true);
		 ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		 
		 ajax.onreadystatechange = function() {
			if(ajax.readyState == 1) {
			   agenda_eventos.innerHTML = '<img src="/images/carregando.gif" alt="carregando"><br />Carregando<br />Por favor espere<br /><br />';   
			}
			if(ajax.readyState == 4 ) {
			   if(ajax.responseXML) {
				  agenda.exibeDados(ajax.responseXML, agenda_eventos, ref); //verificar bug
			   } else {
				  agenda_eventos.innerHTML = '<br />Nenhum evento encontrado<br /><br />';
			   }
			}
		 }
		 //passa o código do processador escolhido
		 ajax.send(params);
      }
	}
	
	this.exibeDados = function(obj, agenda_eventos, ref) {
		var dataArray = obj.getElementsByTagName("evento");
		if(dataArray.length > 0) {
			var p = document.createElement('p');
			p.className = 'bold';
			var testa = ref.split('-');
			if(testa[2]) {
				ref = testa;
				p.innerHTML = 'Eventos em '+ref[2]+'/'+ref[1]+'/'+ref[0];
			} else {
				p.innerHTML = 'Busca por "'+ref+'"';
			}
			agenda_eventos.innerHTML = '';
			agenda_eventos.style.cssText = '';
			agenda_eventos.appendChild(p);
			for(var i = 0 ; i < dataArray.length ; i++) {
				var mes,diaSem;
				var item = dataArray[i];
				var agenda = item.getElementsByTagName("agenda")[0].firstChild.nodeValue;
				var titulo = item.getElementsByTagName("titulo")[0].firstChild.nodeValue;
				var local = item.getElementsByTagName("local")[0].firstChild.nodeValue;
				var horario = item.getElementsByTagName("horario")[0].firstChild.nodeValue;
				var ingresso = item.getElementsByTagName("ingresso")[0].firstChild.nodeValue;
				var endereco = item.getElementsByTagName("endereco")[0].firstChild.nodeValue;
				var telefone = item.getElementsByTagName("telefone")[0].firstChild.nodeValue;
				var texto = item.getElementsByTagName("texto")[0].firstChild.nodeValue;
				var imagem = item.getElementsByTagName("imagem")[0].firstChild.nodeValue;
				try {
					ref = item.getElementsByTagName("data")[0].firstChild.nodeValue;
					ref = ref.split('-');
				} catch(data) {}
				
				var data = new Date(ref[0],(ref[1]-1),ref[2]);
				
				switch(data.getDay()) {
					case 1: diaSem = 'Segunda'; break;
					case 2: diaSem = 'Terça'; break;
					case 3: diaSem = 'Quarta'; break;
					case 4: diaSem = 'Quinta'; break;
					case 5: diaSem = 'Sexta'; break;
					case 6: diaSem = 'Sabado'; break;
					case 7: diaSem = 'Domingo'; break;
				}
				switch(data.getMonth()) {
					case 0: mes = 'Janeiro'; break;
					case 1: mes = 'Fevereiro'; break;
					case 2: mes = 'Março'; break;
					case 3: mes = 'Abril'; break;
					case 4: mes = 'Maio'; break;
					case 5: mes = 'Junho'; break;
					case 6: mes = 'Julho'; break;
					case 7: mes = 'Agosto'; break;
					case 8: mes = 'Setembro'; break;
					case 9: mes = 'Outubro'; break;
					case 10: mes = 'Novembro'; break;
					case 11: mes = 'Dezembro'; break;
				}
				
			
				var onover = "<table>"+
							 "<tr>"+
							 	"<td rowspan=\"7\" valign=\"top\">";
				if(imagem != '')
					onover += '<img src="/xsite/phpThumb.php?src=/images/eventos/'+imagem+'&h=100&w=100" />';
				onover += "</td>"+
								"<td><b style=\"color:#242424; text-transform:uppercase;\">"+mes+" - "+ref[2]+"/"+ref[1]+"/"+ref[0]+"</b></td>"+
							 "</tr>"+
							 "<tr>"+
								"<td><b>"+titulo+"</b></td>"+
							 "</tr>"+
							 "<tr>"+
								"<td><b>Local:</b> "+local+"</td>"+
							 "</tr>"+
							 "<tr>"+
							 	"<td><b>Horário:</b> "+horario+"</td>"+
							 "</tr>"+
							 "<tr>"+
							 	"<td><b>Ingresso:</b> "+ingresso+"</td>"+
							 "</tr>"+
							 "<tr>"+
							 	"<td><b>Endereço:</b> "+endereco+"</td>"+
							 "</tr>"+
							 "<tr>"+
							 	"<td><b>Telefone:</b> "+telefone+"</td>"+
							 "</tr>"+
							 "</table>";
							 
				var div = document.createElement('div');
				var span = document.createElement('span');
				div.className = 'e_d_d_et';
				span.className = 'e_d_d_ec';
				//div.onmouseover = "";
				div.setAttribute("onmouseover","return escape('"+onover+"')");
				div.style.cssText = 'cursor:pointer';
				div.innerHTML = '<a href="/agenda_e_eventos/'+agenda+'/" style="text-decoration:none;">'+titulo;
				div.appendChild(document.createElement('br'));
				span.innerHTML = local;
				div.appendChild(span);
				div.innerHTML += '</a>';
				agenda_eventos.appendChild(div);
				div = null;
			}
			tt_Init();
		} else {
			agenda_eventos.innerHTML = '<br />Nenhum evento encontrado<br /><br />';
		}
	}
	
	this.montaData = function(dia, mes, ano) {
		//GERA Thu May 17 2007 00:00:00 GMT-0300 (Hora oficial do Brasil)
		var data = new Date(ano,(mes-1),dia);
		var diaSem, mes;
		switch(data.getDay()) {
			case 1: diaSem = 'Segunda'; break;
			case 2: diaSem = 'Terça'; break;
			case 3: diaSem = 'Quarta'; break;
			case 4: diaSem = 'Quinta'; break;
			case 5: diaSem = 'Sexta'; break;
			case 6: diaSem = 'Sabado'; break;
			case 7: diaSem = 'Domingo'; break;
		}
		switch(data.getMonth()) {
			case 0: mes = 'Janeiro'; break;
			case 1: mes = 'Fevereiro'; break;
			case 2: mes = 'Março'; break;
			case 3: mes = 'Abril'; break;
			case 4: mes = 'Maio'; break;
			case 5: mes = 'Junho'; break;
			case 6: mes = 'Julho'; break;
			case 7: mes = 'Agosto'; break;
			case 8: mes = 'Setembro'; break;
			case 9: mes = 'Outubro'; break;
			case 10: mes = 'Novembro'; break;
			case 11: mes = 'Dezembro'; break;
		}	
		return data[0]+', '+data[2]+'/'+data[1]+'/'+data[3];
	}
}
window.onload = function() {
	agenda = new Calendario();
	tt_Init();
}
/*******/
cod_ev_old = '';
function abreMaisInfo(cod) {
	if(document.getElementById('ev_'+cod)) {
		if(document.getElementById('ev_'+cod).style.display == '') {
			document.getElementById('ev_'+cod).style.display = 'none';
			document.getElementById('cv_'+cod).innerHTML = '<img src="/images/maisinfo.gif" alt="Abrir" border="0" align="absmiddle" />&nbsp;Abrir Mais Informações';
		} else {
			if(document.getElementById('ev_'+cod_ev_old)) {
				document.getElementById('ev_'+cod_ev_old).style.display = 'none';
				document.getElementById('cv_'+cod_ev_old).style.display = '';
		    }
			document.getElementById('ev_'+cod).style.display = '';
			document.getElementById('cv_'+cod).innerHTML = '<img src="/images/maisinfoaberto.gif" alt="Fechar" border="0" align="absmiddle" />&nbsp;Fechar Mais Informações';
		}
		cod_ev_old = cod;
	}
}

/////////*****************************/
/*This notice must be untouched at all times.

wz_tooltip.js    v. 3.45

The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de

Copyright (c) 2002-2005 Walter Zorn. All rights reserved.
Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 17. 2. 2007

Cross-browser tooltips working even in Opera 5 and 6,
as well as in NN 4, Gecko-Browsers, IE4+, Opera 7+ and Konqueror.
No onmouseouts required.
Appearance of tooltips can be individually configured
via commands within the onmouseovers.

LICENSE: LGPL

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (LGPL) as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

For more details on the GNU Lesser General Public License,
see http://www.gnu.org/copyleft/lesser.html
*/



////////////////  GLOBAL TOOPTIP CONFIGURATION  /////////////////////
var ttAbove       = false;        // tooltip above mousepointer? Alternative: true
var ttBgColor     = "#e6ecff";
var ttBgImg       = "";           // path to background image;
var ttBorderColor = "#003399";
var ttBorderWidth = 1;
var ttClickClose  = false;
var ttDelay       = 0;          // time span until tooltip shows up [milliseconds]
var ttFontColor   = "#000000";
var ttFontFace    = "arial,helvetica,sans-serif";
var ttFontSize    = "11px";
var ttFontWeight  = "normal";     // alternative: "bold";
var ttLeft        = false;        // tooltip on the left of the mouse? Alternative: true
var ttOffsetX     = 12;           // horizontal offset of left-top corner from mousepointer
var ttOffsetY     = 15;           // vertical offset                   "
var ttOpacity     = 100;          // opacity of tooltip in percent (must be integer between 0 and 100)
var ttPadding     = 3;            // spacing between border and content
var ttShadowColor = "";
var ttShadowWidth = 0;
var ttStatic      = false;        // tooltip NOT move with the mouse? Alternative: true
var ttSticky      = false;        // do NOT hide tooltip on mouseout? Alternative: true
var ttTemp        = 0;            // time span after which the tooltip disappears; 0 (zero) means "infinite timespan"
var ttTextAlign   = "left";
var ttTitleColor  = "#ffffff";    // color of caption text
var ttWidth       = 300;
////////////////////  END OF TOOLTIP CONFIG  ////////////////////////



//////////////  TAGS WITH TOOLTIP FUNCTIONALITY  ////////////////////
// List may be extended or shortened:
//var tt_tags = new Array("a","area","b","big","caption","center","code","dd","div","dl","dt","em","h1","h2","h3","h4","h5","h6","i","img","input","li","map","ol","p","pre","s", "select", "small","span","strike","strong","sub","sup","table","td","textarea","th","tr","tt","u","var","ul","layer");
var tt_tags = new Array("div");
/////////////////////////////////////////////////////////////////////



///////// DON'T CHANGE ANYTHING BELOW THIS LINE /////////////////////
var tt_obj = null,         // current tooltip
tt_ifrm = null,            // iframe to cover windowed controls in IE
tt_objW = 0, tt_objH = 0,  // width and height of tt_obj
tt_objX = 0, tt_objY = 0,
tt_offX = 0, tt_offY = 0,
xlim = 0, ylim = 0,        // right and bottom borders of visible client area
tt_sup = false,            // true if T_ABOVE cmd
tt_sticky = false,         // tt_obj sticky?
tt_wait = false,
tt_act = false,            // tooltip visibility flag
tt_sub = false,            // true while tooltip below mousepointer
tt_u = "undefined",
tt_mf = null,              // stores previous mousemove evthandler
// Opera: disable href when hovering <a>
tt_tag = null;             // stores hovered dom node, href and previous statusbar txt


var tt_db = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body? document.body : null,
tt_n = navigator.userAgent.toLowerCase(),
tt_nv = navigator.appVersion;
// Browser flags
var tt_op = !!(window.opera && document.getElementById),
tt_op6 = tt_op && !document.defaultView,
tt_op7 = tt_op && !tt_op6,
tt_ie = tt_n.indexOf("msie") != -1 && document.all && tt_db && !tt_op,
tt_ie7 = tt_ie && typeof document.body.style.maxHeight != tt_u,
tt_ie6 = tt_ie && !tt_ie7 && parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE")+5)) >= 5.5,
tt_n4 = (document.layers && typeof document.classes != tt_u),
tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != tt_u),
tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById,
tt_ce = document.captureEvents && !tt_n6;

function tt_Int(t_x)
{
	var t_y;
	return isNaN(t_y = parseInt(t_x))? 0 : t_y;
}
function wzReplace(t_x, t_y)
{
	var t_ret = "",
	t_str = this,
	t_xI;
	while((t_xI = t_str.indexOf(t_x)) != -1)
	{
		t_ret += t_str.substring(0, t_xI) + t_y;
		t_str = t_str.substring(t_xI + t_x.length);
	}
	return t_ret+t_str;
}
String.prototype.wzReplace = wzReplace;
function tt_N4Tags(tagtyp, t_d, t_y)
{
	t_d = t_d || document;
	t_y = t_y || new Array();
	var t_x = (tagtyp=="a")? t_d.links : t_d.layers;
	for(var z = t_x.length; z--;) t_y[t_y.length] = t_x[z];
	for(z = t_d.layers.length; z--;) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y);
	return t_y;
}
function tt_Htm(tt, t_id, txt)
{
	var t_bgc = (typeof tt.T_BGCOLOR != tt_u)? tt.T_BGCOLOR : ttBgColor,
	t_bgimg   = (typeof tt.T_BGIMG != tt_u)? tt.T_BGIMG : ttBgImg,
	t_bc      = (typeof tt.T_BORDERCOLOR != tt_u)? tt.T_BORDERCOLOR : ttBorderColor,
	t_bw      = (typeof tt.T_BORDERWIDTH != tt_u)? tt.T_BORDERWIDTH : ttBorderWidth,
	t_ff      = (typeof tt.T_FONTFACE != tt_u)? tt.T_FONTFACE : ttFontFace,
	t_fc      = (typeof tt.T_FONTCOLOR != tt_u)? tt.T_FONTCOLOR : ttFontColor,
	t_fsz     = (typeof tt.T_FONTSIZE != tt_u)? tt.T_FONTSIZE : ttFontSize,
	t_fwght   = (typeof tt.T_FONTWEIGHT != tt_u)? tt.T_FONTWEIGHT : ttFontWeight,
	t_opa     = (typeof tt.T_OPACITY != tt_u)? tt.T_OPACITY : ttOpacity,
	t_padd    = (typeof tt.T_PADDING != tt_u)? tt.T_PADDING : ttPadding,
	t_shc     = (typeof tt.T_SHADOWCOLOR != tt_u)? tt.T_SHADOWCOLOR : (ttShadowColor || 0),
	t_shw     = (typeof tt.T_SHADOWWIDTH != tt_u)? tt.T_SHADOWWIDTH : (ttShadowWidth || 0),
	t_algn    = (typeof tt.T_TEXTALIGN != tt_u)? tt.T_TEXTALIGN : ttTextAlign,
	t_tit     = (typeof tt.T_TITLE != tt_u)? tt.T_TITLE : "",
	t_titc    = (typeof tt.T_TITLECOLOR != tt_u)? tt.T_TITLECOLOR : ttTitleColor,
	t_w       = (typeof tt.T_WIDTH != tt_u)? tt.T_WIDTH  : ttWidth;
	if(t_shc || t_shw)
	{
		t_shc = t_shc || "#c0c0c0";
		t_shw = t_shw || 5;
	}
	if(tt_n4 && (t_fsz == "10px" || t_fsz == "11px")) t_fsz = "12px";

	var t_optx = (tt_n4? '' : tt_n6? ('-moz-opacity:'+(t_opa/100.0)) : tt_ie? ('filter:Alpha(opacity='+t_opa+')') : ('opacity:'+(t_opa/100.0))) + ';';
	var t_y = '<div id="'+t_id+'" style="position:absolute;z-index:1010;';
	t_y += 'left:0px;top:0px;width:'+(t_w+t_shw)+'px;visibility:'+(tt_n4? 'hide' : 'hidden')+';'+t_optx+'">' +
		'<table border="0" cellpadding="0" cellspacing="0"'+(t_bc? (' bgcolor="'+t_bc+'" style="background:'+t_bc+';"') : '')+' width="'+t_w+'">';
	if(t_tit)
	{
		t_y += '<tr><td style="padding-left:3px;padding-right:3px;" align="'+t_algn+'"><font color="'+t_titc+'" face="'+t_ff+'" ' +
			'style="color:'+t_titc+';font-family:'+t_ff+';font-size:'+t_fsz+';"><b>' +
			(tt_n4? '&nbsp;' : '')+t_tit+'</b></font></td></tr>';
	}
	t_y += '<tr><td><table border="0" cellpadding="'+t_padd+'" cellspacing="'+t_bw+'" width="100%">' +
		'<tr><td'+(t_bgc? (' bgcolor="'+t_bgc+'"') : '')+(t_bgimg? ' background="'+t_bgimg+'"' : '')+' style="text-align:'+t_algn+';';
	if(tt_n6) t_y += 'padding:'+t_padd+'px;';
	t_y += '" align="'+t_algn+'"><font color="'+t_fc+'" face="'+t_ff+'"' +
		' style="color:'+t_fc+';font-family:'+t_ff+';font-size:'+t_fsz+';font-weight:'+t_fwght+';">';
	if(t_fwght == 'bold') t_y += '<b>';
	t_y += txt;
	if(t_fwght == 'bold') t_y += '</b>';
	t_y += '</font></td></tr></table></td></tr></table>';
	if(t_shw)
	{
		var t_spct = Math.round(t_shw*1.3);
		if(tt_n4)
		{
			t_y += '<layer bgcolor="'+t_shc+'" left="'+t_w+'" top="'+t_spct+'" width="'+t_shw+'" height="0"></layer>' +
				'<layer bgcolor="'+t_shc+'" left="'+t_spct+'" align="bottom" width="'+(t_w-t_spct)+'" height="'+t_shw+'"></layer>';
		}
		else
		{
			t_optx = tt_n6? '-moz-opacity:0.85;' : tt_ie? 'filter:Alpha(opacity=85);' : 'opacity:0.85;';
			t_y += '<div id="'+t_id+'R" style="position:absolute;background:'+t_shc+';left:'+t_w+'px;top:'+t_spct+'px;width:'+t_shw+'px;height:1px;overflow:hidden;'+t_optx+'"></div>' +
				'<div style="position:relative;background:'+t_shc+';left:'+t_spct+'px;top:0px;width:'+(t_w-t_spct)+'px;height:'+t_shw+'px;overflow:hidden;'+t_optx+'"></div>';
		}
	}
	return(t_y+'</div>');
}
function tt_EvX(t_e)
{
	var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) +
		tt_Int(tt_ie? tt_db.scrollLeft : 0) +
		tt_offX;
	if(t_y > xlim) t_y = xlim;
	var t_scr = tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0);
	if(t_y < t_scr) t_y = t_scr;
	return t_y;
}
function tt_EvY(t_e)
{
	var t_y2;

	var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) +
		tt_Int(tt_ie? tt_db.scrollTop : 0);
	if(tt_sup && (t_y2 = t_y - (tt_objH + tt_offY - 15)) >= tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0))
		t_y -= (tt_objH + tt_offY - 15);
	else if(t_y > ylim || !tt_sub && t_y > ylim-24)
	{
		t_y -= (tt_objH + 5);
		tt_sub = false;
	}
	else
	{
		t_y += tt_offY;
		tt_sub = true;
	}
	return t_y;
}
function tt_ReleasMov()
{
	if(document.onmousemove == tt_Move)
	{
		if(!tt_mf && tt_ce) document.releaseEvents(Event.MOUSEMOVE);
		document.onmousemove = tt_mf;
	}
}
function tt_ShowIfrm(t_x)
{
	if(!tt_obj || !tt_ifrm) return;
	if(t_x)
	{
		tt_ifrm.style.width = tt_objW+'px';
		tt_ifrm.style.height = tt_objH+'px';
		tt_ifrm.style.display = "block";
	}
	else tt_ifrm.style.display = "none";
}
function tt_GetDiv(t_id)
{
	return(
		tt_n4? (document.layers[t_id] || null)
		: tt_ie? (document.all[t_id] || null)
		: (document.getElementById(t_id) || null)
	);
}
function tt_GetDivW()
{
	return tt_Int(
		tt_n4? tt_obj.clip.width
		: (tt_obj.offsetWidth || tt_obj.style.pixelWidth)
	);
}
function tt_GetDivH()
{
	return tt_Int(
		tt_n4? tt_obj.clip.height
		: (tt_obj.offsetHeight || tt_obj.style.pixelHeight)
	);
}

// Compat with DragDrop Lib: Ensure that z-index of tooltip is lifted beyond toplevel dragdrop element
function tt_SetDivZ()
{
	var t_i = tt_obj.style || tt_obj;
	if(t_i)
	{
		if(window.dd && dd.z)
			t_i.zIndex = Math.max(dd.z+1, t_i.zIndex);
		if(tt_ifrm) tt_ifrm.style.zIndex = t_i.zIndex-1;
	}
}
function tt_SetDivPos(t_x, t_y)
{
	var t_i = tt_obj.style || tt_obj;
	var t_px = (tt_op6 || tt_n4)? '' : 'px';
	t_i.left = (tt_objX = t_x) + t_px;
	t_i.top = (tt_objY = t_y) + t_px;
	//  window... to circumvent the FireFox Alzheimer Bug
	if(window.tt_ifrm)
	{
		tt_ifrm.style.left = t_i.left;
		tt_ifrm.style.top = t_i.top;
	}
}
function tt_ShowDiv(t_x)
{
	tt_ShowIfrm(t_x);
	if(tt_n4) tt_obj.visibility = t_x? 'show' : 'hide';
	else tt_obj.style.visibility = t_x? 'visible' : 'hidden';
	tt_act = t_x;
}
function tt_DeAlt(t_tag)
{
	if(t_tag)
	{
		if(t_tag.alt) t_tag.alt = "";
		if(t_tag.title) t_tag.title = "";
		var t_c = t_tag.children || t_tag.childNodes || null;
		if(t_c)
		{
			for(var t_i = t_c.length; t_i; )
				tt_DeAlt(t_c[--t_i]);
		}
	}
}
function tt_OpDeHref(t_e)
{
	var t_tag;
	if(t_e)
	{
		t_tag = t_e.target;
		while(t_tag)
		{
			if(t_tag.hasAttribute("href"))
			{
				tt_tag = t_tag
				tt_tag.t_href = tt_tag.getAttribute("href");
				tt_tag.removeAttribute("href");
				tt_tag.style.cursor = "hand";
				tt_tag.onmousedown = tt_OpReHref;
				tt_tag.stats = window.status;
				window.status = tt_tag.t_href;
				break;
			}
			t_tag = t_tag.parentElement;
		}
	}
}
function tt_OpReHref()
{
	if(tt_tag)
	{
		tt_tag.setAttribute("href", tt_tag.t_href);
		window.status = tt_tag.stats;
		tt_tag = null;
	}
}
function tt_Show(t_e, t_id, t_sup, t_clk, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky, t_temp)
{
	if(tt_obj) tt_Hide();
	tt_mf = document.onmousemove || null;
	if(window.dd && (window.DRAG && tt_mf == DRAG || window.RESIZE && tt_mf == RESIZE)) return;
	var t_sh, t_h;

	tt_obj = tt_GetDiv(t_id);
	if(tt_obj)
	{
		t_e = t_e || window.event;
		tt_sub = !(tt_sup = t_sup);
		tt_sticky = t_sticky;
		tt_objW = tt_GetDivW();
		tt_objH = tt_GetDivH();
		tt_offX = t_left? -(tt_objW+t_offx) : t_offx;
		tt_offY = t_offy;
		if(tt_op7) tt_OpDeHref(t_e);
		if(tt_n4)
		{
			if(tt_obj.document.layers.length)
			{
				t_sh = tt_obj.document.layers[0];
				t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width*1.3);
			}
		}
		else
		{
			t_sh = tt_GetDiv(t_id+'R');
			if(t_sh)
			{
				t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0);
				if(typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h;
				else t_sh.style.height = t_h+'px';
			}
		}

		xlim = tt_Int((tt_db && tt_db.clientWidth)? tt_db.clientWidth : window.innerWidth) +
			tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0) -
			tt_objW -
			(tt_n4? 21 : 0);
		ylim = tt_Int(window.innerHeight || tt_db.clientHeight) +
			tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0) -
			tt_objH - tt_offY;

		tt_SetDivZ();
		if(t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1]));
		else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));

		var t_txt = 'tt_ShowDiv(\'true\');';
		if(t_sticky) t_txt += '{'+
				'tt_ReleasMov();'+
				(t_clk? ('window.tt_upFunc = document.onmouseup || null;'+
				'if(tt_ce) document.captureEvents(Event.MOUSEUP);'+
				'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");') : '')+
			'}';
		else if(t_static) t_txt += 'tt_ReleasMov();';
		if(t_temp > 0) t_txt += 'window.tt_rtm = window.setTimeout(\'tt_sticky = false; tt_Hide();\','+t_temp+');';
		window.tt_rdl = window.setTimeout(t_txt, t_delay);

		if(!t_fix)
		{
			if(tt_ce) document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = tt_Move;
		}
	}
}
var tt_area = false;
function tt_Move(t_ev)
{
	if(!tt_obj) return;
	if(tt_n6 || tt_w3c)
	{
		if(tt_wait) return;
		tt_wait = true;
		setTimeout('tt_wait = false;', 5);
	}
	var t_e = t_ev || window.event;
	tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
	if(window.tt_op6)
	{
		if(tt_area && t_e.target.tagName != 'AREA') tt_Hide();
		else if(t_e.target.tagName == 'AREA') tt_area = true;
	}
}
function tt_Hide()
{
	if(window.tt_obj)
	{
		if(window.tt_rdl) window.clearTimeout(tt_rdl);
		if(!tt_sticky || !tt_act)
		{
			if(window.tt_rtm) window.clearTimeout(tt_rtm);
			tt_ShowDiv(false);
			tt_SetDivPos(-tt_objW, -tt_objH);
			tt_obj = null;
			if(typeof window.tt_upFunc != tt_u) document.onmouseup = window.tt_upFunc;
		}
		tt_sticky = false;
		if(tt_op6 && tt_area) tt_area = false;
		tt_ReleasMov();
		if(tt_op7) tt_OpReHref();
	}
}
function tt_Init()
{
	if(!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return;

	var htm = tt_n4? '<div style="position:absolute;"></div>' : '',
	tags,
	t_tj,
	over,
	t_b,
	esc = 'return escape(';
	for(var i = tt_tags.length; i;)
	{--i;
		tags = tt_ie? (document.all.tags(tt_tags[i]) || 1)
			: document.getElementsByTagName? (document.getElementsByTagName(tt_tags[i]) || 1)
			: (!tt_n4 && tt_tags[i]=="a")? document.links
			: 1;
		if(tt_n4 && (tt_tags[i] == "a" || tt_tags[i] == "layer")) tags = tt_N4Tags(tt_tags[i]);
		for(var j = tags.length; j;)
		{--j;
			/*
			if(tags[j].onmouseover) {
				over = t_tj.getAttribute("onmouseover");
				alert(tags[j].onmouseover);
				alert(typeof(t_tj = tags[j]).onmouseover+' == "function" && '+t_tj.onmouseover.toString().indexOf(esc)+' != -1 && '+!tt_n6+' || '+tt_n6+' && ('+t_tj.getAttribute("onmouseover")+') && '+t_tj.getAttribute("onmouseover").indexOf(esc)+' != -1');
			}*/
			if(typeof (t_tj = tags[j]).onmouseover == "function" && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = t_tj.getAttribute("onmouseover")) && over.indexOf(esc) != -1)
			{
				//alert('a');
				if(over) t_tj.onmouseover = new Function(over);
				var txt = unescape(t_tj.onmouseover());
				htm += tt_Htm(
					t_tj,
					"tOoLtIp"+i+""+j,
					txt.wzReplace("& ","&")
				);
				// window. to circumvent the FF Alzheimer Bug
				t_tj.onmouseover = new Function('e',
					'if(window.tt_Show && tt_Show) tt_Show(e,'+
					'"tOoLtIp' +i+''+j+ '",'+
					((typeof t_tj.T_ABOVE != tt_u)? t_tj.T_ABOVE : ttAbove)+','+
					((typeof t_tj.T_CLICKCLOSE != tt_u)? t_tj.T_CLICKCLOSE : ttClickClose)+','+
					((typeof t_tj.T_DELAY != tt_u)? t_tj.T_DELAY : ttDelay)+','+
					((typeof t_tj.T_FIX != tt_u)? '"'+t_tj.T_FIX+'"' : '""')+','+
					((typeof t_tj.T_LEFT != tt_u)? t_tj.T_LEFT : ttLeft)+','+
					((typeof t_tj.T_OFFSETX != tt_u)? t_tj.T_OFFSETX : ttOffsetX)+','+
					((typeof t_tj.T_OFFSETY != tt_u)? t_tj.T_OFFSETY : ttOffsetY)+','+
					((typeof t_tj.T_STATIC != tt_u)? t_tj.T_STATIC : ttStatic)+','+
					((typeof t_tj.T_STICKY != tt_u)? t_tj.T_STICKY : ttSticky)+','+
					((typeof t_tj.T_TEMP != tt_u)? t_tj.T_TEMP : ttTemp)+
					');'
				);
				t_tj.onmouseout = tt_Hide;
				tt_DeAlt(t_tj);
			}
		}
	}
	if(tt_ie6) htm += '<iframe id="TTiEiFrM" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>';
	t_b = document.getElementsByTagName? document.getElementsByTagName("body")[0] : tt_db;
	if(t_b && t_b.insertAdjacentHTML) t_b.insertAdjacentHTML("AfterBegin", htm);
	else if(t_b && typeof t_b.innerHTML != tt_u && document.createElement && t_b.appendChild)
	{
		var t_el = document.createElement("div");
		t_b.appendChild(t_el);
		t_el.innerHTML = htm;
	}
	else
		document.write(htm);
	if(document.getElementById) tt_ifrm = document.getElementById("TTiEiFrM");
}

/******************************CONTATO*****************************************/
function verifySubmit()
{
	
	if (document.contatog.nome.value == '') {
		alert("Complete o campo Nome.") ;
		document.contatog.nome.focus();
		return false;
	}
	if(emailCheck(document.contatog.email.value) == false) {
			return false;
	}
	if (document.contatog.msg.value == '') {
		alert("Digite sua mensagem.") ;
		document.contatog.msg.focus();
		return false;
	}

}

function emailCheck (emailStr) {
	// Verifica se e-mail é válido
	// válido retorna: true
	// inválido retorna: false
	
	<!-- This script and many more are available free online at -->
	<!-- The JavaScript Source!! http://javascript.internet.com -->
	<!-- V1.1.3: Sandeep V. Tamhankar (stamhankar@hotmail.com) -->
	<!-- Original:  Sandeep V. Tamhankar (stamhankar@hotmail.com) -->
	
	// The following variable tells the rest of the function whether or not
	//to verify that the address ends in a two-letter country or well-known
	//TLD.  1 means check it, 0 means don't. 
	//var checkTLD=1;
	
	// The following is the list of known TLDs that an e-mail address must end with. 
	var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
	
	// The following pattern is used to check if the entered e-mail address
	//fits the user@domain format.  It also is used to separate the username
	//from the domain. 
	var emailPat=/^(.+)@(.+)$/;
	
	// The following string represents the pattern for matching all special
	//characters.  We don't want to allow special characters in the address. 
	//These characters include ( ) < > @ , ; : \ " . [ ] 
	var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
	
	// The following string represents the range of characters allowed in a 
	//username or domainname.  It really states which chars aren't allowed.
	var validChars="\[^\\s" + specialChars + "\]";
	
	// The following pattern applies if the "user" is a quoted string (in
	//which case, there are no rules about which characters are allowed
	//and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
	//is a legal e-mail address.
	var quotedUser="(\"[^\"]*\")";
	
	// The following pattern applies for domains that are IP addresses,
	//rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
	//e-mail address. NOTE: The square brackets are required.
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
	
	// The following string represents an atom (basically a series of non-special characters.)
	var atom=validChars + '+';
	
	// The following string represents one word in the typical username.
	//For example, in john.doe@somewhere.com, john and doe are words.
	//Basically, a word is either an atom or quoted string.
	var word="(" + atom + "|" + quotedUser + ")";
	
	// The following pattern describes the structure of the user
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
	
	// The following pattern describes the structure of a normal symbolic
	//domain, as opposed to ipDomainPat, shown above.
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
	
	// Finally, let's start trying to figure out if the supplied address is valid. 
	
	// Begin with the coarse pattern to simply break up user@domain into
	//different pieces that are easy to analyze.
	var matchArray=emailStr.match(emailPat);
	
	if (matchArray==null) {
		// Too many/few @'s or something; basically, this address doesn't
		//even fit the general mould of a valid e-mail address. 
		
		//alert("Email address seems incorrect (check @ and .'s)");
		alert("Endereço de Email inválido, tente novamente!");
		return false;
	}
	var user=matchArray[1];
	var domain=matchArray[2];
	
	// Start by checking that only basic ASCII characters are in the strings (0-127).
	for (i=0; i<user.length; i++) {
		if (user.charCodeAt(i)>127) {
			//alert("Ths username contains invalid characters.");
			alert("O Email contém caracteres inválidos, tente novamente!");
			return false;
		}
	}
	for (i=0; i<domain.length; i++) {
		if (domain.charCodeAt(i)>127) {
			//alert("Ths domain name contains invalid characters.");
			alert("O Email contém caracteres inválidos, tente novamente!");
			return false;
	   }
	}
	
	// See if "user" is valid 
	if (user.match(userPat)==null) {
	
		// user is not valid
		//alert("The username doesn't seem to be valid.");
		alert("Endereço de Email inválido, tente novamente!");
		return false;
	}
	
	// if the e-mail address is at an IP address (as opposed to a symbolic
	//host name) make sure the IP address is valid.
	var IPArray=domain.match(ipDomainPat);
	if (IPArray!=null) {
	
		// this is an IP address
		
		for (var i=1;i<=4;i++) {
			if (IPArray[i]>255) {
				//alert("Destination IP address is invalid!");
				alert("Endereço de Email inválido, tente novamente!");
				return false;
			}
		}
		//return true;
	}
	
	// Domain is symbolic name.  Check if it's valid.
	 
	var atomPat=new RegExp("^" + atom + "$");
	var domArr=domain.split(".");
	var len=domArr.length;
	for (i=0;i<len;i++) {
	if (domArr[i].search(atomPat)==-1) {
		//alert("The domain name does not seem to be valid.");
		alert("Endereço de Email inválido, tente novamente!");
		return false;
		}
	}
	
	// domain name seems valid, but now make sure that it ends in a
	//known top-level domain (like com, edu, gov) or a two-letter word,
	//representing country (uk, nl), and that there's a hostname preceding 
	//the domain or country.
	if (checkTLD && domArr[domArr.length-1].length!=2 && 
		domArr[domArr.length-1].search(knownDomsPat)==-1) {
		//alert("The address must end in a well-known domain or two letter " + "country.");
		alert("Endereço de Email inválido, tente novamente!");
		return false;
	}
	
	// Make sure there's a host name preceding the domain.
	if (len<2) {
		//alert("This address is missing a hostname!");
		alert("Endereço de Email inválido, tente novamente!");
		return false;
	}
	
	// If we've gotten this far, everything's valid!
	return true;
}
/******************* OFUSCA EMA */
function criamail(mail,dom,id) {
	var pt = ".";
	var comeco = "@";
	var meio = "com";
	var fim = "br";
	var final = comeco + dom + pt + meio + pt + fim;
	document.getElementById(id).href = "mai"+"lto:"+mail+final;
	document.getElementById(id).innerHtml = mail+final;
}
function criamailcom(mail,dom,id) {
	var pt = ".";
	var comeco = "@";
	var meio = "com";
	var fim = "br";
	var final = comeco + dom + pt + meio;
	document.getElementById(id).href = "mai"+"lto:"+mail+final;
	document.getElementById(id).innerHtml = mail+final;
}
/********************* AUMNTA FONTE */
function texto(tipo){
	// AUMENTA TEXTO DA CARTOLA
	// AUMENTA TEXTO DA SUBTITULO
	tamanho = document.getElementById('n-cartola').style.fontSize
	tamanho2 = new Number(tamanho.substr(0,(tamanho.length-2)));
	if(tamanho2 == 0) tamanho2 = 14;
	if(tipo == 1)	tamanho2 = tamanho2 + 2;
	else if(tipo == 2)	tamanho2 = tamanho2 - 2;
	else if(tipo == 3)	tamanho2 = 14;
	if(tamanho2 < 10) tamanho2 = 10;
	if(tamanho2 > 22) tamanho2 = 22;
	document.getElementById('n-cartola').style.fontSize = tamanho2+'px';
	document.getElementById('n-cartola').style.lineHeight = (tamanho2-1)+'px';	
	document.getElementById('n-subtitulo').style.fontSize = tamanho2+'px';
	document.getElementById('n-subtitulo').style.lineHeight = tamanho2+'px';
	document.getElementById('n-texto').style.fontSize = tamanho2+'px';
	document.getElementById('n-title').style.fontSize = (tamanho2+4)+'px';
	document.getElementById('n-title').style.lineHeight = (tamanho2+6)+'px';
	document.getElementById('n-por').style.fontSize = (tamanho2-1)+'px';
	document.getElementById('n-por').style.lineHeight = (tamanho2-1)+'px';
}
function abrirPop(){
	window.open("http://www.arteccom.com.br/webdesign/peixegrande/voto/votar2.asp?acao=votar&tipo=2&id=199",null,"toolbar=no,location=no,directories=no,status=yesmenubar=no,scrollbars=no,resizable=no,copyhistory=no,width=449,height=250");
}

/******* XNEO - SOBRE O SITE *********************************************/
function entrar(){
	window.open("/xneo/sobreosite.php",null,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=425,top=100,left=100");
}

