
function LimpaBusca1(nome){

  if((document.getElementById(nome).value)=="Encontre na TGM"){
    with (document) {
        getElementById(nome).value = "";
    }
  }
}

function LimpaBusca2(nome){
  if((document.getElementById(nome).value)=="Find on TGM's"){
    with (document) {
        getElementById(nome).value = "";
    }
  }
}

function LimpaBusca3(nome){
  if((document.getElementById(nome).value)=="Encontre en TGM"){
    with (document) {
        getElementById(nome).value = "";
    }
  }
}

function exibe_rodape(titulo)
{
  if (document.getElementById(titulo).style.visibility=='visible')
  {
    document.getElementById(titulo).style.visibility='hidden';
  }
  else
  {
    document.getElementById(titulo).style.visibility='visible';
  }
}

function flashPutHref()
{
  document.getElementById('teste_x').href='#';
}



// Funcao utilizada na pagina de PRODUTOS USADOS
function exibe_oculta(l)
{
  var linha = document.getElementById(l);
  
  // Verifica se a linha esta invisivel
  if (linha.style.display == 'none')
  {
    linha.style.display = '';
  }
  else
  {
    linha.style.display = 'none';
  }
}

// Função utilizada para aumento e diminuição das letras das páginas 
	var tam=100;
 
		function FonteAcessivel(tipo)
		{							
								if (tipo=="maior")
								{        
											tam+=20;
								}
								else
								{
											tam-=20;
								}
			document.getElementById('titulo_conteudo').style.fontSize=tam+'%';
			document.getElementById('texto_conteudo').style.fontSize=tam+'%';                        
		}


//CODIGO ANALYTICS

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22097284-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
