﻿function Hashtable() {this.clear = hashtable_clear;this.containsKey = hashtable_containsKey;this.containsValue = hashtable_containsValue;this.get = hashtable_get;this.isEmpty = hashtable_isEmpty;this.keys = hashtable_keys;this.put = hashtable_put;this.remove = hashtable_remove;this.size = hashtable_size;this.toString = hashtable_toString;this.values = hashtable_values;this.hashtable = new Array();}function hashtable_clear() {this.hashtable = new Array();}function hashtable_containsKey(key) {var exists = false;for (var i in this.hashtable) {if (i == key && this.hashtable[i] != null) {exists = true;break;}}return exists;}function hashtable_containsValue(value) {var contains = false;if (value != null) {for (var i in this.hashtable) {if (this.hashtable[i] == value) {contains = true;break;}}}return contains;}function hashtable_get(key) {return this.hashtable[key];}function hashtable_isEmpty() {return (this.size == 0) ? true : false;}function hashtable_keys() {var keys = new Array();for (var i in this.hashtable) {if (this.hashtable[i] != null)keys.push(i);}return keys;}function hashtable_put(key, value) {if (key == null || value == null) {throw "NullPointerException {" + key + "},{" + value + "}";} else {this.hashtable[key] = value;}}function hashtable_remove(key) {var rtn = this.hashtable[key];this.hashtable[key] = null;return rtn;}function hashtable_size() {var size = 0;for (var i in this.hashtable) {if (this.hashtable[i] != null)size++;}return size;}function hashtable_toString() {var result = "";for (var i in this.hashtable) {if (this.hashtable[i] != null)result += "{" + i + "},{" + this.hashtable[i] + "}\n";}return result;}function hashtable_values() {var values = new Array();for (var i in this.hashtable) {if (this.hashtable[i] != null)values.push(this.hashtable[i]);}return values;}

var hashGoogleMaps = new Hashtable();
hashGoogleMaps.put('M', 'http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=MADRID+Avda.+De+las+Am%C3%A9ricas,+10&sll=41.629702,-0.97935&sspn=0.006383,0.013819&ie=UTF8&ll=40.436512,-3.528221&spn=0.006892,0.013819&z=16&iwloc=A');
hashGoogleMaps.put('V', 'http://maps.google.es/maps?f=q&source=s_q&hl=es&geocode=&q=VALENCIA,+Avenida+de+las+Ferias,+12&sll=39.504869,-0.427179&sspn=0.006987,0.013819&ie=UTF8&ll=39.504869,-0.427179&spn=0.006987,0.013819&z=16');
hashGoogleMaps.put('VA', 'http://maps.google.es/maps?f=q&source=s_q&hl=es&geocode=&q=VALLADOLID+Paseo+de+Zorrilla,+22&sll=39.504869,-0.427179&sspn=0.006987,0.013819&ie=UTF8&ll=41.647134,-4.732533&spn=0.006766,0.013819&z=16');
hashGoogleMaps.put('B', 'http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=BARCELONA+Ctra.+Ca+L%27Alaio+2&sll=41.428313,2.1698&sspn=0.217261,0.4422&g=BARCELONA&ie=UTF8&ll=41.331371,2.083325&spn=0.0068,0.013819&z=16');
hashGoogleMaps.put('Z', 'http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=ZARAGOZA+Feria+Zaragoza+Km+311&sll=41.629702,-0.97935&sspn=0.006383,0.013819&ie=UTF8&z=16');