
    var map = null;
    var geocoder = null;
    var mgr = null;
    var cont = null;

    var today = new Date() 
    var thisDay = today.getDay();
    var cartervilleMsg;
    var acworthMsg;

	if(thisDay >= 1 && thisDay <= 5) {
	      //cartervilleMsg = "<p class='mapOverlay'><font size='1'><b>Cartersville Urgent Care </b><br/> Hours Today: 8am-7pm</font></p>";
	      acworthMsg = "<p class='mapOverlay'><font size='1'><b>Acworth Immediate Care </b><br/> Hours Today: 8am-8pm</font></p>";
	}
	else if(thisDay == 0) {
	      //cartervilleMsg = "<p class='mapOverlay'><font size='1'><b>Cartersville Urgent Care </b><br/> Closed Today.</font></p>";
	      acworthMsg = "<p class='mapOverlay'><font size='1'><b>Acworth Immediate Care </b><br/> Hours Today: 11am-6pm</font></p>";
	}
	else if(thisDay == 6) {
	      //cartervilleMsg = "<p class='mapOverlay'><font size='1'><b>Cartersville Urgent Care </b><br/> Hours Today: 8am-1pm</font></p>";
	      acworthMsg = "<p class='mapOverlay'><font size='1'><b>Acworth Immediate Care </b><br/> Hours Today: 8am-8pm</font></p>";
	}


    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));

	cont = new GSmallZoomControl();	
	map.addControl(cont);
	map.enableScrollWheelZoom();
        map.setCenter(new GLatLng(34.117000, -84.760000), 11);

        mgr = new MarkerManager(map);





var MyOverlay = function(marker, html, xx, yy) {
  this.marker = marker;
  this.html = html;
  this.xx = xx;
  this.yy = yy;
}
MyOverlay.prototype = new GOverlay();
MyOverlay.prototype.initialize = function(map) {
  var div = document.createElement("div");
  div.className = 'mywindow';
  div.innerHTML = this.html;

  // offsets based on popup div dimensions
  offsetX = this.xx;
  offsetY = this.yy;
  
  div.style.border = '1px solid #0069b7';
  div.style.padding = '3px';
  div.style.position = 'relative';
  div.style.top = (map.fromLatLngToDivPixel(this.marker.getPoint()).y + offsetY) + 'px';
  div.style.left = (map.fromLatLngToDivPixel(this.marker.getPoint()).x + offsetX) + 'px';
  div.style.width = '150px';
  div.style.height= '25px';
  div.style.background = 'white';

  //div.onmouseout = closeOverlay;

  this._map = map;
  this._div = div;

  map.getPane(G_MAP_FLOAT_PANE).appendChild(div);  
}
MyOverlay.prototype.remove = function(){
  this._div.parentNode.removeChild(this._div);
}
MyOverlay.prototype.redraw = function() {
  //haven't had need for this yet
}



    //var cIcon = new GIcon();
    //cIcon.image = "images/carterville.png";
    //cIcon.shadow = "images/carterville_shadow.png";
    //cIcon.iconSize = new GSize(110, 26);
    //cIcon.shadowSize = new GSize(110, 26);
    //cIcon.iconAnchor = new GPoint(13, 13);
    //cIcon.infoWindowAnchor = new GPoint(13, 13);
    //markerOptions1 = { icon:cIcon };
  
    var aIcon = new GIcon();
    aIcon.image = "images/acworth.png";
    aIcon.shadow = "images/acworth_shadow.png";
    aIcon.iconSize = new GSize(130, 26);
    aIcon.shadowSize = new GSize(130, 26);
    aIcon.iconAnchor = new GPoint(116, 13);
    aIcon.infoWindowAnchor = new GPoint(116, 13);
    markerOptions2 = { icon:aIcon };  


	//824 West Ave, Cartesville, GA 30120 
        //var marker1 = new GMarker(new GLatLng(34.15572788834733, -84.81818675994873), markerOptions1);
        //map.addOverlay(marker1);
	//GEvent.addListener(marker1, "click", function() {
	//    window.location = "cartersville.htm";
	//});
        //GEvent.addListener(marker1, "mouseover", function() {
        //    marker1.openInfoWindowHtml("Info");
        //});
	//marker1.bindInfoWindowHtml("Cartersville");

	//21097 NE 27th Court, Aventura, FL 33180- Aventura Neurosurgery
        var marker2 = new GMarker(new GLatLng(34.06345, -84.7225177), markerOptions2);
        map.addOverlay(marker2);
	GEvent.addListener(marker2, "click", function() {
	    window.location = "acworth.htm";
	});
        //GEvent.addListener(marker2, "mouseover", function() {
        //    marker2.openInfoWindow("Info2", {pixelOffset: new GSize(-110,-20)});
        //});
        
          
          
//currentMarker = marker1;
//GEvent.addListener(marker1, "mouseover", function() {
//    if (!this.overlay) {
      // just recording this for use in the closeOverlay function
//	 this.overlay = new MyOverlay(this, cartervilleMsg, 13, 13);
//    }
//    currentMarker = this;
    //map.panTo(new GLatLng(this.getPoint().lat(), this.getPoint().lng()));
//    map.addOverlay(this.overlay);
//});

//GEvent.addListener(marker1, "mouseout", function() {
//    map.removeOverlay(currentMarker.overlay);
//});


currentMarker = marker2;
GEvent.addListener(marker2, "mouseover", function() {
    if (!this.overlay) {
      // just recording this for use in the closeOverlay function
      		this.overlay = new MyOverlay(this, acworthMsg, -140, -47);
    }
    currentMarker = this;
    //map.panTo(new GLatLng(this.getPoint().lat(), this.getPoint().lng()));
    map.addOverlay(this.overlay);
});

GEvent.addListener(marker2, "mouseout", function() {
    map.removeOverlay(currentMarker.overlay);
});


function closeOverlay() {
  if (currentMarker) {
    map.removeOverlay(currentMarker.overlay);
  }
}


        
        
      }
    }