try{
xmlhttp = new XMLHttpRequest();

}catch(ee){
	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
		
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		
		}catch(E){
			xmlhttp = false;
		}
	}
}

function abre(arquivo,metodo){
	xmlhttp.open('GET',arquivo,true);
	xmlhttp.onreadystatechange=content;
	xmlhttp.send(null);
}

function content(){

	var div			 = document.createElement('div');
	var divContent	 = document.getElementById('content');
	var layerLoading = document.createElement('div');
			
	if( (xmlhttp.readyState==1)||(xmlhttp.readyState==2)||(xmlhttp.readyState==3) ){
		
		div.className = 'layerTransparent';
		div.style.position = 'absolute';
		div.style.top = '250px';
		div.style.left = '50%';
		div.innerHTML = div.textContent = "<center><img src='img/loader.gif'></center><p style='margin:5px;'>Loading...</p>";
		divContent.appendChild(div);
			
	}else if( (xmlhttp.readyState==4)&&(xmlhttp.status==200) ){
		divContent.innerHTML = divContent.textContent = xmlhttp.responseText;		
	}
}