function mudaFundo(id, acao) {
  if (selecionado != id) {
    if (acao == "Over"){ document.getElementById(id).style.backgroundImage = 'url(images/menu_b.gif)'; }
    if (acao == "Out"){ document.getElementById(id).style.backgroundImage = 'url(images/menu_a.gif)'; }
  }    
}

function marca_menu(id) {
  selecionado = id;
  for (i=0; i< m_size; i++) {
    if (id != i) document.getElementById(i).style.backgroundImage = 'url(images/menu_a.gif)';
  }
}

function muda_conteudo(pag, nome) {
  
  document.getElementById('paginasTitulo').innerHTML = nome;
  document.getElementById('paginasNomer').innerHTML = "Carregando...";
  
  try {
    http = createXMLHTTP();
    http.open("post", "index-2.html", true);
    http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    http.setRequestHeader("Charset", "ISO-8859-1");
    
    http.onreadystatechange = function() {
      if (http.readyState == 4) {
        document.getElementById('paginasNomer').innerHTML = http.responseText;
      }
    }
    
    http.send(Math.ceil(Math.random() * 100000) +'='+ new Date().getTime() +'&d='+ cod +'&i='+ pag +'&n='+ nome);
  
  } catch (eee) {
    
    document.getElementById('paginasNomer').innerHTML = "Erro ao enviar." ;
    
  }
  
}
