function CUnityConfig()
{
	this.width = 800;
	this.height = 600;	
	
	this.backgroundColor = "000000";
	this.borderColor = "000000";
	this.textColor = "FFFFFF";
	this.disableFullscreen = "true";

	this.logoImage = "images/logo.png";
	this.progressbarImage = "images/progressbar.png";
	this.progressbarFrameImage = "images/progressframe.png";
	
	this.logo = "images/inception.png";
	this.language = "en";
	this.territory = "us";
	this.terms = "";
	this.privacy = "";
	this.support = "";
	
	this.set = function(width, height)
	{
		this.width = width;
		this.height = height;
	}
	
	this.setLanguage = function(territory, language, logo, logoImage, terms, privacy, support)
	{
		this.territory = territory; 
		this.language = language;
		this.logo = logo;
		this.logoImage = logoImage;
		this.terms = terms;
		this.privacy = privacy;
		this.support = support;
	}
}

function CConfig()
{
	this.domain = "";
	this.url = "";
	this.fb_api_key = null;
	this.fb_app = false;
	
	this.unity = new CUnityConfig();
	
	this.set = function(domain, path, fb_api_key, fb_app)
	{
		this.domain = domain;
		this.path = path;
		this.url = domain+path;
		this.fb_api_key = fb_api_key;
		this.fb_app = fb_app;
	}
}

var c = new CConfig();

