function placeHQ() {
	var baseIcon = new GIcon();
	baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	baseIcon.iconSize = new GSize(20, 20);
	baseIcon.shadowSize = new GSize(0, 0);
	baseIcon.iconAnchor = new GPoint(8, 8);
	baseIcon.infoWindowAnchor = new GPoint(0, 0);
	baseIcon.infoShadowAnchor = new GPoint(0, 0);
	var letteredIcon = new GIcon(baseIcon);
	letteredIcon.image = "http://www.bharatcuisine.com/images/star.gif";
	markerOptions = { icon:letteredIcon };
	var bmarker = new GMarker(new GLatLng(39.052433,-77.110333), markerOptions);	
	GEvent.addListener(bmarker, "click", function() {
	 	bmarker.openInfoWindowHtml("<strong>Bharat Cuisine</strong></br>12101 Nebel St. </br>Rockville, MD 20852</br>Phone: 301.770.0360</br>Directions: [<a href='http://maps.google.com/maps?daddr=12101 Nebel St Rockville, MD 20852&saddr=' target='_blank'>To Here</a> - <a href='http://maps.google.com/maps?saddr=12101 Nebel St Rockville, MD 20852&daddr=' target='_blank'>From Here</a>]");
	});
	//http://maps.google.com/maps?daddr=&39.052433,-77.110333saddr=4605 48th st nw washington dc 20016
	map.addOverlay(bmarker);
}

function bcLoad(wdow) {
	if (GBrowserIsCompatible()) {
	    	map = new GMap2(document.getElementById("map_canvas"));
	    	map.setCenter(new GLatLng(39.052433,-77.110333), 14);  
		map.addControl(new GLargeMapControl()); 
		placeHQ(map);
		return map;
	} else {
		alert("Not compatible");
	}
}

function centerMap(map, address) {
  geocoder = new GClientGeocoder();
  if (geocoder) {
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        alert(address + " not found");
      } else {
        map.setCenter(point, 14);
        
      }
    }
  );
  }
}

