function PropertyMap() {
 	this.zoom = 12;
 	this.markerHeight = 36;
 	this.markerWidth = 23;
 	
	PropertyMap.prototype.drawMap = function(){
		var map = new GMap2(document.getElementById("organisation-map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setMapType(G_NORMAL_MAP); 
		var point = new GLatLng(_location[0], _location[1]);
		
		var bounds = new GLatLngBounds();
		bounds.extend(point);
		
		var center = bounds.getCenter();
		var mapSize = map.getSize();
		size = new GSize(mapSize.width - this.markerWidth, mapSize.height - this.markerHeight);
	
		// move the center down
		map.setCenter(center, this.zoom);
		
		var pixelCentre = map.fromLatLngToDivPixel(center);
		pixelCentre = new GPoint(pixelCentre.x, pixelCentre.y - this.markerHeight);
		center = map.fromDivPixelToLatLng(pixelCentre);
		
		map.panTo(center);
				
		var marker = new GMarker(point);
		map.addOverlay(marker);
		
	}
	
	PropertyMap.prototype.show = function(){
		if (GBrowserIsCompatible()) {
			this.drawMap();
		}     
	}
}

// render the map
$(document).ready(function(){
	var map = new PropertyMap();
	map.show();
});