function setLiveBkgd() {
	
	myHeight = document.getElementById("container").offsetHeight;
	document.getElementById("largemap").style.height = myHeight + 'px';
	document.getElementById("main").style.height = (myHeight - 502 - 200) + 'px';
	map.checkResize();
}

onload = function () {
	if(document.body.getAttribute('class') == 'live') {
		setLiveBkgd();

	}
}

var mapCentred = 0;

function plotAddress(map, geocoder, address, html) {
        
        
        zoom = 7;
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              //alert(address + " not found");
              
            } else {
              
              
              
              if(mapCentred == 0) {
				  map.setCenter(point, zoom);
				  map.panDirection(0, -0.5);
              }
              
              var marker = new GMarker(point);
              map.addOverlay(marker);
              
              
              if(mapCentred == 0) {
				  marker.openInfoWindowHtml(html);
				  mapCentred = 1;
              }
              
              GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml(html);
			  });
              
            }
          }
        );
    }