function CougarAjax() {
	
}

CougarAjax.prototype.connect = function() {
	
}

CougarAjax.prototype.get = function(url, callback) {
	var xmlHttp; 
	
	xmlHttp = this.createRequest();
	
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4){
			callback(xmlHttp.responseText);
		}
	}
	
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null); 
	return xmlHttp;
}

CougarAjax.prototype.createRequest = function() {
	var xmlHttp; 
	
	try{
		// Opera 8.0+, Firefox, Safari
		xmlHttp = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				//alert("Could not initiali");
				return false;
			}
		}
	}
	
	return xmlHttp;
}

if (!cougar) var cougar = new Object();
cougar.ajax = new CougarAjax();
