window.DES = 
{
	E : function(value)
	{
	    var obj;
	    if(typeof(value) == "string") { obj = document.getElementById(value); }
	    else if(typeof(value) == "object") { obj = value; }
		obj.css = function(value) { this.style.cssText = value; };
		return obj;
	},
	
	AJAX : function(path, loaded)
	{  			
		var isReady = true;
		var ajaxRequest;
		try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e)
		{
			try { ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e)
			{
				try { ajaxRequest = new XMLHttpRequest(); }
				catch (e) { isReady = false; }
			}
		}
		if(isReady)
		{
		
			ajaxRequest.onreadystatechange = function()
			{
				
				if(ajaxRequest.readyState == 4)
				{
				  
				    if(typeof(loaded) == "function") { 				    	

				    	loaded(ajaxRequest.responseText);  //,path
				    } 
					else { DES.E(loaded).innerHTML = ajaxRequest.responseText; }
				}
			}
			ajaxRequest.open("GET", path, true);
			ajaxRequest.send(null);
		}
		return isReady;
	}
};
