function ConfigHandler()
{
	this.sections = new Object();
}

ConfigHandler.prototype.getSection = function(sectionName, parseFunction, configPath)
{
	var cacheKiller = "?ck=" + new Date().getTime()
	var configPath = (configPath) ? configPath : "config.xml";
	configPath += cacheKiller;
	//TODO:check if exists if so use existing Object
	var section = null;
	var self = this;
	XMLLoader(configPath, createSectionObject);
	function createSectionObject(xmlRequest)
	{
		var xmlDoc = xmlRequest.responseXML;
		section = xmlDoc.getElementsByTagName(sectionName)[0];//top level sections only
		self.sections[sectionName] = section;
		parseFunction(section);
	}
}
