(function(){var Table=this.Table=function(){this.length=0;var keys=[],values=[];this.set=function(key,value){var index=keys.indexOf(key);if(index==-1){var length=keys.length;keys[length]=key;values[length]=value;this.length++}else{values[index]=value}return this};this.get=function(key){var index=keys.indexOf(key);return(index==-1)?null:values[index]};this.erase=function(key){var index=keys.indexOf(key);if(index!=-1){this.length--;keys.splice(index,1);return values.splice(index,1)[0]}return null};this.each=this.forEach=function(fn,bind){for(var i=0,l=this.length;i<l;i++){fn.call(bind,keys[i],values[i],this)}}};if(this.Type){new Type("Table",Table)}})();