// AJinx
// (c) 2009-10 Gecko Tribe, LLC
// By Antone Roundy

function AJinxObj(e,p) {
	this.de=document.getElementById(e);
	this.ao=false;
	var _self=this;
	
	this.AJinxListen=function() {
		if (this.ao.readyState==4) {
			this.de.innerHTML=this.ao.responseText;
			_self=null;
		}
	}
	
	if (this.de) {
		if (window.XMLHttpRequest) {
			try { this.ao=new XMLHttpRequest(); }
			catch(e) { this.ao=false; }
		} else if (window.ActiveXObject) {
			try { this.ao=new ActiveXObject("Microsoft.XMLHTTP"); }
			catch(e) { this.ao=false; }
		}

		if (this.ao) {
			this.ao.onreadystatechange=function() { _self.AJinxListen(); }
			this.ao.open('GET',p,true);
			this.ao.send(null);
		}
	}
}

function ajinx(e,p) {
	var temp=new AJinxObj(e,p);
	return false;
}

