// Creates a GoogleMaps location map centred on the gis location provide
// x - latitude
// y - longitude
// title - the name for pin marker
function makeMap(x,y,title) {

    var icon = new GIcon();
    icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
    icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
    icon.iconSize = new GSize(12, 20);
    icon.shadowSize = new GSize(22, 20);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(5, 1);

    var point1= new GPoint(x,y);
    var map = new GMap2(document.getElementById("map"));
   map.setCenter(new GLatLng(y, x), 15);

	map.addControl(new GSmallZoomControl());
	
   // map.centerAndZoom(point1, 6);
   
    var marker1 = new GMarker(point1, icon);
   // GEvent.addListener(marker1, 'click', function() {marker1.openInfoWindowHtml(title);});
    map.addOverlay(marker1);		    
}