var arrClasses = new Array("texto","tituloBlocoTexto","tituloBlocoTexto_sem_fundo","texto_imprensa","texto_titulo_campanha","blocoImagem","texto_paginacao","texto_paginacao_selecionado","texto_ano_campanha","texto_quantidade_campanha","fundo_titulo_produto","texto_voltar","texto_veja_tambem","fonte_titulo_sala_de_imprensa","texto_titulo_noticia","texto_assunto","texto_mapadosite_primeiro_nivel","texto_mapadosite_segundo_nivel","texto_mapadosite_terceiro_nivel","texto_imprensa","texto_linha_do_tempo","texto_titulo_projeto","texto_legenda_projeto","texto_lista_anos","texto_lista_anos_selected","texto_local_projeto_por_ano","texto_titulo_projeto_por_ano","text_ano_aconteceu","texto_titulo_detalhe_projeto_por_ano","text_titulo_indice_projetos");
var arrMins =    new Array("14",   "18",              "16",                        "12",            "18",                   "20",         "12",             "12",                         "14",                "12",                       "20",                  "12",          "16",               "24",                           "18",                  "14",           "14",                             "12",                            "12",                             "12",            "14",                  "12",                  "12",                   "16",              "16",                       "12",                         "16",                          "72",                "20",                                  "16");
var arrMaxs =    new Array("20",   "24",              "22",                        "18",            "24",                   "26",         "18",             "18",                         "20",                "18",                       "26",                  "18",          "22",               "30",                           "24",                  "20",           "20",                             "18",                            "18",                             "18",            "20",                  "18",                  "18",                   "22",              "22",                       "18",                         "22",                          "78",                "26",                                  "22");

function changeFontSize(type)
{
	var elements = document.getElementsByTagName("*");
	for (i=0; elements.length>i; i++)
	{
		if (elements[i].className)
		{
			for (countClasses=0; arrClasses.length>countClasses; countClasses++)
			{
				if (elements[i].className == arrClasses[countClasses])
				{
					var s;
					if (elements[i].style.fontSize)
						s = parseInt(elements[i].style.fontSize.replace("px",""));
					else
						s = parseInt(arrMins[countClasses]);

					if (type == "+")
					{
						if (parseInt(arrMaxs[countClasses]) > s)
							s += 1;
					}
					else
					{
						if (s > parseInt(arrMins[countClasses]))
							s -= 1;
					}

					elements[i].style.fontSize = s+"px";
				}
			}
		}
		else
		{
			if (elements[i].href)
			{
				var s;
				if (elements[i].style.fontSize)
					s = parseInt(elements[i].style.fontSize.replace("px",""));
				else
					s = 14;

				if (type == "+")
				{
					if (20 > s)
						s += 1;
				}
				else
				{
					if (s > 14)
						s -= 1;
				}

				elements[i].style.fontSize = s+"px";																
			}																	
		}
	}
}
