var map = null;
var geocoder = null;

function showCompanyMap(divMap) {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById(divMap));
    geocoder = new GClientGeocoder();
    showAddress("3650 Victoria Park Avenue, Suite 301, Toronto");
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());		
  }
}

function showAddress(address) {
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
          map.setCenter(point, 14);
          var marker = new GMarker(point);
          map.addOverlay(marker);
          marker.openInfoWindowHtml("<span style='font-family: Arial Helvetica, Sans-Serif;font-size:0.9em;color:#000000;'>" + 
			                        "<strong><br />Sun & Partners</strong><br />" + address + "</span>");
      }
    );
  }
}

