var _Dict_js_ = true;
function Dict()
{
	this.length = 0;
	this.items = new Array();
	/*for (var i = 0; i < arguments.length; i += 2) {
		if (typeof(arguments[i + 1]) != 'undefined') {
			this.items[arguments[i]] = arguments[i + 1];
			this.length++;
		}
	}*/
	
	this.removeItem = function(in_key)
	{
		var tmp_value;
		if (typeof(this.items[in_key]) != 'undefined') {
			this.length--;
			var tmp_value = this.items[in_key];
			delete this.items[in_key];
		}
	   
		return tmp_value;
	}

	this.getItem = function(in_key) {
		if (in_key.substring(0,__GATO__.length)==__GATO__){
			in_key = in_key.substring(__GATO__.length);
		}
		if (typeof(this.items[in_key]) == 'undefined') 
			return "";
		return this.items[in_key];
	}

	this.setItem = function(in_key, in_value, in_abbr)
	{
		if (typeof(in_value) != 'undefined') {
			if (typeof(this.items[in_key]) == 'undefined') {
				this.length++;
			}
			if (typeof(in_abbr) != 'undefined' && in_key == 13) {  // Para el caso DFL => in_key == 13
				this.items[in_key] = in_abbr;
			}else{
				this.items[in_key] = in_value;
			}
		}
		return in_value;
	}

	this.hasItem = function(in_key)
	{
		return typeof(this.items[in_key]) != 'undefined';
	}
}
//EOF
