// *
// * @author José Ricardo M Castro - josericardomcastro@gmail.com
// *
// * 
// *


function openAjax() {

	var ajax;
	
	try{
		ajax = new XMLHttpRequest(); // XMLHttpRequest para browsers decentes, como: Firefox, Safari, dentre outros.
	}catch(ee){
		try{
			ajax = new ActiveXObject("Msxml2.XMLHTTP"); // Para o IE da MS
		}catch(e){
			try{
				ajax = new ActiveXObject("Microsoft.XMLHTTP"); // Para o IE da MS
			}catch(E){
				ajax = false;
			}
		}
	}
	return ajax;
}


function inserirTickers() {

	if(document.getElementById) {
		var ajax = openAjax();
		ajax.open("GET", "news/xml.php" , true); 
		ajax.onreadystatechange = function() {
			if(ajax.readyState == 1) { 
				
			}
			if(ajax.readyState == 4) { 
				if(ajax.status == 200) {
					
				} else {
					alert("Problemas ao carregar o documento!");
				}
			}
		}
		ajax.send(null); // submete
		
	}
	
	
}
