  // Check to see if this browser can run the Google API
  if (GBrowserIsCompatible()) {

    var to_html = '';
    var from_html = '';
//var point = new GLatLng(-33.870640,151.20647); //market st
var point = new GLatLng(-33.796526102182156,151.180522441864); //great link to find location http://www.putyourlightson.net/projects/coordinates
var marker = new GMarker(point);

    // Create Parking icon
    var icon = new GIcon();
		//icon.image = "http://192.168.0.22/cmsme/_ebr/parking.png";
    icon.image = "http://www.ebr.com.au/cmsme/_ebr/parking.png";
    icon.iconSize = new GSize(21, 21);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(5, 1);

    // functions that open the directions forms
    function tohere() {
    marker.openInfoWindowHtml(to_html);
    }
    function fromhere(i) {
    marker.openInfoWindowHtml(from_html);
    }

    // Display the map, with some controls and set the initial location
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
    map.setCenter(point, 16);
 
    // Set up office location marker with info window
var address = 'Suite 3, Level 3, South Tower 1-5 Railway Street, Chatswood NSW 2067';
var html = 'EBR<br>Suite 3, Level 3, South Tower<br>1-5 Railway Street, Chatswood NSW 2067<br><a href="http://www.ebr.com.au/">www.ebr.com.au</a>';

    // The info window version with the "to here" form open
    to_html = html + '<strong>Directions: To here</strong> - <a href="javascript:fromhere()">From here</a>' +
       '<br />Start address:<form action="http://maps.google.com/maps" method="get">' +
       '<input type="text" size="40" maxlength="40" name="saddr" id="saddr" value="" /><br />' +
       '<input value="Get Directions" type="submit" />' +
       '<input type="hidden" name="daddr" value="' + address +
       '" />';

    // The info window version with the "from here" form open
    from_html = html + '<strong>Directions:</strong> <a href="javascript:tohere()">To here</a> - <strong>From here</strong>' +
       '<br />End address:<form action="http://maps.google.com/maps" method="get">' +
       '<input type="text" size="40" maxlength="40" name="daddr" id="daddr" value="" /><br />' +
       '<input value="Get Directions" type="submit" />' +
       '<input type="hidden" name="saddr" value="' + address +
       '" />';

   // The inactive version of the direction info
    //html = html + '<strong>Directions:</strong> <a href="javascript:tohere()">To here</a> - <a href="javascript:fromhere()">From here</a>';

    GEvent.addListener(marker, "click", function() {
      map.setCenter(point, 16)
      marker.openInfoWindowHtml(html);
    });
    map.addOverlay(marker);

//// Mark the parking lot
//var park = new GLatLng(-33.8715,151.20625);
//var parking = new GMarker(park, icon);
//    GEvent.addListener(parking, 'click', function() {
//      map.setCenter(point, 16)
//      parking.openInfoWindowHtml("Parking is available in the<br>QVB Parking station (on<br>York Street behind the<br>QVB building).");
//    });
//    map.addOverlay(parking);
  }