XML = function(path) {
	this.data = null;
	this.connection = null;
	try {
		this.connection = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(error) {
		try {
			this.connection = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(error) {
			this.connection = null;
		}
	}
	if(!this.connection && typeof XMLHttpRequest != "undefined") {
		this.connection = new XMLHttpRequest();
	}
	if(this.connection && path) {
		this.load(path);
	}
}

XML.prototype.load = function(path) {
	var ref = this;
	this.connection.open("GET", path, true);
	this.connection.onreadystatechange = function() {
		if(ref.connection.readyState == 4 && ref.connection.responseText) {
			ref.data = ref.connection.responseXML;
			ref.onLoad();
		}
	}
	this.connection.send(null);
}

XML.prototype.onLoad = function() {}


