// JScript source code

// JavaScript Document

function Http(){
	
	try{this.xmlhttp = new XMLHttpRequest();}
	catch(trymicrosoft){
		try
		{this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}
		catch(othermicrosoft){
			try{this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
			catch(failed){this.xmlhttp = null;}
		}
	}
}
function mostraEntrevista()
{
    var url = "m_conteudoinformativo/ConteudoInformativo.php?idmenuitem=9";
	var div = document.getElementById('mp_entrevistaIntroducaoTexto');
	
	httpConteudoInformativo = null;
	var httpConteudoInformativo = new Http();
	httpConteudoInformativo.xmlhttp.open("GET", url,true);
	httpConteudoInformativo.xmlhttp.onreadystatechange = function(){
		                            div.innerHTML = 'Carregando...<br /><img src="img/carregando.gif" /><br />';
									if(httpConteudoInformativo.xmlhttp.readyState == 4){
										if(httpConteudoInformativo.xmlhttp.status == 200){
		                                    div.innerHTML = httpConteudoInformativo.xmlhttp.responseText;
                                            menu_entrevista(1);
										 }
									 }
								  };
	httpConteudoInformativo.xmlhttp.send(null);
}


function menu_entrevista(id)
{
  if (id==1)
    xid=16;
  else
    if (id==2)
      xid=17;
    else
	  if (id==3)
	    xid=18;
      else
	    if (id==4)
		  xid=19;
        else
		  xid=11;


  /* Recupera Valor para Controle Menus */
  document.getElementById('valorFlash').value = id;
  /*Fim*/
  
  escondeFrameEntrevista('ientrevistacentro');
  mostraCategoriaDica('descricaosub',xid);
}

function mostraFrameEntrevista(frame,url)
{
  // esconde a div
  var div = document.getElementById('categorias');
  div.style.display = "none";
  var divc = document.getElementById('conteudo');
  divc.style.display = "none";

  // mostra frame
  var auxframe = document.getElementById(frame);
  auxframe.src=url;
  auxframe.style.display = "";
}
function escondeFrameEntrevista(frame)
{
  //esconde frame
  var auxframe = document.getElementById(frame);
  auxframe.style.display = "none";

  //mostra div
  var div = document.getElementById('categorias');
  div.style.display = "";
  var divc = document.getElementById('conteudo');
  divc.style.display = "";
}


