MapObject.prototype.setType = function($in){this.type = $in;}
MapObject.prototype.getType = function(){return this.type;}
		
MapObject.prototype.setKeyword = function($in){this.keywordArr.push($in);}
MapObject.prototype.setKeywordArray = function($in){
	for (var i=0; i<$in.length; i++) {
		this.keywordArr.push($in[i]);
	}
}
MapObject.prototype.containsKeyword = function($in){
	for (var i=0; i<this.keywordArr.length; i++) {
		if (this.keywordArr[i] == $in) {
			return true;
		}
	}
	return false;
}

MapObject.prototype.setMarker = function($in){this.marker = $in;}
MapObject.prototype.getMarker = function(){return this.marker;}

function MapObject($json) {
	this.type = $json.TYPE;
	this.marker = createMapPoint($json);	
	
	this.keywordArr = new Array();
	this.setKeywordArray($json.KWRDARR);
}
