
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    
    google.load("elements", "1", {
      packages: "keyboard"
    });
    
    try {
      var pageTracker = _gat._getTracker("UA-7096103-1");
      pageTracker._trackPageview();
    } catch(err) {}

   function submeter() {
      if( $("#pesquisa").val().length > 0 ) {
         document.location = "/index/index/pesquisa/" + $.URLEncode( $("#pesquisa").val() ) + "/";
      }
   }

   $( document ).ready(function() {
   
      $('#fPesquisa').submit(function() {
        submeter();
        return false;
      });
   
      $(".topo").hover(function() {
         $(this).addClass("topohover");
      },function(){
         $(this).removeClass("topohover");
      });

      $("#pesquisa").hover(function() {
         $(this).addClass("textboxhover");
      },function(){
         $(this).removeClass("textboxhover");
      });
   
      $("#pesquisa").focusin(function() {
         $(this).addClass("textboxfocus");
      });
      $("#pesquisa").focusout(function() {
         $(this).removeClass("textboxfocus");
      });

      $(".pesquisar").hover(function() {
         $(this).addClass("pesquisarhover");
      },function(){
         $(this).removeClass("pesquisarhover");
      });
      
      $(".pesquisar_lupa").hover(function() {
         $(this).addClass("pesquisar_lupahover");
      },function(){
         $(this).removeClass("pesquisar_lupahover");
      });
   
      $(".pesquisar").focusin(function() {
         $(this).addClass("pesquisarfocus");
      });
      $(".pesquisar").focusout(function() {
         $(this).removeClass("pesquisarfocus");
      });
      
      $("#index").click(function() {
        document.location = '/';
      });
      $("#cadastro").click(function() {
        document.location = '/cadastro/';
      });
      $("#perguntas-frequentes").click(function() {
        document.location = '/perguntas-frequentes/';
      });
      $("#sobre").click(function() {
        document.location = '/sobre/';
      });
      $("#contato").click(function() {
        document.location = '/contato/';
      });

   });

