function ModularConfig(){
	this.addProperty = function (sName, vValue) {
		this[sName] = vValue;
		var sFuncName = sName.charAt(0).toUpperCase() + sName.substring(1, sName.length);
		this["get" + sFuncName] = function () { return this[sName] };
		this["set" + sFuncName] = function (vNewValue) {
			this[sName] = vNewValue;
		};
	}
	
	this.addProperty("debug", false);
}

function ModularChatConfig() {
	this.addProperty = function (sName, vValue) {
		this[sName] = vValue;
		var sFuncName = sName.charAt(0).toUpperCase() + sName.substring(1, sName.length);
		this["get" + sFuncName] = function () { return this[sName] };
		this["set" + sFuncName] = function (vNewValue) {
			this[sName] = vNewValue;
		};
	}

	this.addProperty("proxyUrl", "");
	this.addProperty("emailIfNotAvailable", "");
	this.addProperty("modularLogoId", "modular_chat_status");
	this.addProperty("userIP", "nieznany");
	this.addProperty("group", "modular");	
	this.addProperty("chatNoConsultAvail", "Brak wolnych konsultantów");
	this.addProperty("chatConsultAvail", "Porozmawiaj z konsultantem");
}

var modularConf = new ModularConfig();
var modChatConf = new ModularChatConfig();