//restricao de dominio
if(self.location.host.indexOf(".terra.")!=-1 || self.location.href.indexOf(".dsv-blog")!=-1 || self.location.href.indexOf(".54.164")!=-1){



function _ajaxC(){
	try{ return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ }
	try{ return new ActiveXObject("Microsoft.XMLHTTP") }catch(e){ }
	try{ return new XMLHttpRequest(); }catch(e){ }
	return false;	
}
function AjaxObject(){
	window._allAjax=(window._allAjax || []);
	this._i=window._allAjax.length;
	this.onData=function(){};
	this.onError=function(){};
	window._allAjax.push(this);
}
AjaxObject.prototype._ld=function(i){
	var obj=window._allAjax[i];
	if(obj.Conn.readyState==4){
		if(obj.Conn.status==200 || (obj.Conn.status==0 && !location.host)){
			obj.onData(obj.Conn.responseXML, obj.Conn.responseText, obj.Conn.getAllResponseHeaders());
		}else{
			obj.onError(obj.Conn.status, obj.Conn.statusText);
		}
	}
}
AjaxObject.prototype.send=function(url, data, method, preventCache){
	this.Conn=_ajaxC();
	if(this.Conn){
		method=(method || "get");
		data=(data || null);
		url=(method.toLowerCase()=="post")? url : url+((data===null)? "" : "?"+data);
		data=(method.toLowerCase()=="post")? data : null;
		preventCache=(preventCache!==undefined)? preventCache : true;
		if(preventCache){
			url+=(url.indexOf("?")==-1)? "?" : "&";
			url+="pvcch="+String(Math.random()).replace(".", "");
		}
		var onLoadStr="var f=function(){ window._allAjax["+this._i+"]._ld("+this._i+"); }";
		eval(onLoadStr);
		this.Conn.onreadystatechange=f;
		this.Conn.open(method.toUpperCase(), url, true);
		this.Conn.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		this.Conn.send(data);
	}else{
		this.onError("0", "XMLHTTP not supported");
	}
}




//restricao de dominio
}
