function GMaps(idPrefix) {
	this.maps = new Array();
	this.markers = new Array();
	this.coords = new Array();
	this.prefix = idPrefix;
	this.opts = {
		zoom: 10,
		mapTypeId: google.maps.MapTypeId.ROADMAP,
		navigationControl: true,
		mapTypeControl: false,
		scaleControl: false
	};

	this.registerNewMap = function(id, lat, lng) {
		var ll=new google.maps.LatLng(lat, lng);
		this.coords[id]=ll;
		
	}

	this.flushMaps = function() {
		for (var id in this.coords) {
			this.maps[id] = new google.maps.Map(document.getElementById(this.prefix+id), this.opts);
			this.maps[id].setCenter(this.coords[id]);
			this.markers[id] = new google.maps.Marker({
				position: this.coords[id],
				map: this.maps[id],
				icon: '/img/markYellow.png'
			});
		}
		
	}
}
