code: function(text)
  	{
  		if (text != null)
  		{
  			var lines = text.split('\n');
  			
  			for (var i = 0; i < lines.length; i++)
  			{
  				if (lines[i].charAt(0) != '#')
  				{
  					var index = lines[i].indexOf('=');
  					
  					if (index > 0)
  					{
  						var key = lines[i].substring(0, index);
  						var idx = lines[i].length;
  						
  						if (lines[i].charCodeAt(idx - 1) == 13)
  						{
  							idx--;
  						}
  						
  						var value = lines[i].substring(index + 1, idx);
  						
  						if (this.resourcesEncoded)
  						{
  							value = value.replace(/\\(?=u[a-fA-F\d]{4})/g,"%");
  							mxResources.resources[key] = unescape(value);
  						}
  						else
  						{
  							mxResources.resources[key] = value;
  						}
  					}
  				}
  			}
  		}
  	}
docs: Function: parse
  
  Parses the key, value pairs in the specified
  text and stores them as local resources.