/* 
	GE JS API v1.0
*/

tGEApp = function(Opts) {

	this.Images_HttpRoot = "/images", 
	this.Images_HttpWHRoot = "/images", 
	
	this.CSS_HttpRoot = "/css", 
	this.CSS_HttpWHRoot = "/css", 
	
	this.Scripts_HttpRoot = "/scripts", 
	this.Scripts_HttpWHRoot = "/scripts", 
	
	this.ParseURL =  function(URL) {
		var Res = { URL: URL };
		Res.Scheme = URL.match(/(.*):\/\//i)[1];
		/*
//		Res.Host = URL.match(/:\/\/(.*)\//i)[1];
		Res.Path = URL.substr(/:\/\/(.*)\/(.*)/i);
		
		var QueryMatch = URL.match(/\/\?(.*)\#/i, 1);
		if (QueryMatch) {
			Res.Query = QueryMatch[1];
		}
		
		Res.Hash = URL.match(/\#(.*)/i, 1)[1];
		*/
		return Res;
	};
	
	this.Init = function(Params) {
		/*
		var URLInfo;
		var AppURL;
		if (Params != undefined) {
			if (Params.HttpRoot != undefined) {
				AppURL = Params.HttpRoot;
			}
		} else {
			AppURL = document.location.toString();
		}
		URLInfo = this.ParseURL(AppURL);
		alert(URLInfo.Path);
		*/
		return true;
	};
	
	// [Assign Props]
	if (Opts) {
		for (var Prop in Opts) {
			this[Prop] = Opts[Prop];
		}
	}
	// END [Assign Props]
			
	return this;
	
}