var xmlHttp;

// CRIAÇÃO DO OBJETO ==========================================
function createXMLHttprequest(){
if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();	
}
}//fim da função
//=============================================================




//EXIBE EVENTO =================================================================================================================
function ExibeEvento(ide){

	
	 $("#linha_eventos").hide('blind','normal');
	 //$("#ajax_eve").show();
	   
	 $("#ret_evento").load("view_evento.php?ide="+ide);
	 $("#ret_evento").show();
	 
	
	/*
	createXMLHttprequest();
	
	var id  = ide;
	var url = "view_evento.php?ide="+id;
	
	EscondeEventos();
	setTimeout(" ApagaLoader()",1000);
	
	xmlHttp.onreadystatechange =  RespExibeEvento;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	*/
	
	}
	
//=============================================================================================================================

//EXIBE EVENTO ==============================================
function RespExibeEvento(){
	if(xmlHttp.readyState == 4){
		if(xmlHttp.status == 200){
		   setTimeout(" ExibeLoader()",1000);
		   
		}
	}
}


//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function ExibeLoader(){
	//document.getElementById("ajax").style.display="inline";
	document.getElementById("ret_evento").style.display="inline";
	document.getElementById("ret_evento").innerHTML = xmlHttp.responseText;
  }
//=============================================================
//APAGA LOADER =================================================
function ApagaLoader(){
	
	document.getElementById("ajax").style.display="none";
  }
//=============================================================


//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function EscondeEventos(){
	
	document.getElementById("linha_eventos").style.display="none";
	document.getElementById("ajax").style.display="inline";
  }
//=============================================================

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%








