var golfMAP = new Class({

		initialize: function(pid, options, pointers, markers, counter, icon)
					{
						this.setOptions({ }, options);
						this.pointers = pointers;
						this.markers = markers;
						this.counter = counter;
						this.icon = icon;					
					},
			
		addMarker: function(point, icon, title, html, map )
		{
			var marker = new GMarker(point,{'icon': icon, 'title': title});
			GEvent.addListener(marker, "mouseover", function() { marker.openInfoWindowHtml(html); });
			map.addOverlay(marker);
		},
		
		isArray: function(a)
		{
		 	return isObject(a) && a.constructor == Array;
		},	
		isObject: function(a)
		{
			return(a && typeof a == 'object') || isFunction(a);
		},
		isFunction: function(a)
		{
			return typeof a == 'function';
		}
})

golfMAP.implement(new Options,new Events);