";
popHTML += "";
var map = new GMap2(document.getElementById("map"));
var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(0,0));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl(),topRight);
map.addControl(new GOverviewMapControl(),
new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(5, 5)));
var center = new GLatLng(32.799000,-86.807300); //new GLatLng(47.391700,-121.570800);
map.setCenter(center,6);
myIcon = new GIcon();
// marker image
myIcon.image ="http://www.autoquotenow.com/images/marker.png";
myIcon.iconSize = new GSize(45, 17);
myIcon.iconAnchor = new GPoint(45, 17);
myIcon.infoWindowAnchor = new GPoint(43,17);
var marker = new GMarker(center, myIcon)
map.addOverlay(marker);
var myEvent = GEvent.addListener(marker,"mouseover", function() {
marker.openInfoWindowHtml(popHTML);
map.panTo(new GLatLng(33.799000,-86.807300)); // GEvent.removeListener(myEvent);
});
var label = "Alabama";
var color = "#88ff00";
var pts = [];
pts[0] = new GLatLng (35.0041,-88.1955);
pts[1] = new GLatLng (34.9918,-85.6068);
pts[2] = new GLatLng (32.8404,-85.1756);
pts[3] = new GLatLng (32.2593,-84.8927);
pts[4] = new GLatLng (32.1535,-85.0342);
pts[5] = new GLatLng (31.7947,-85.1358);
pts[6] = new GLatLng (31.5200,-85.0438);
pts[7] = new GLatLng (31.3384,-85.0836);
pts[8] = new GLatLng (31.2093,-85.1070);
pts[9] = new GLatLng (31.0023,-84.9944);
pts[10] = new GLatLng (30.9953,-87.6009);
pts[11] = new GLatLng (30.9423,-87.5926);
pts[12] = new GLatLng (30.8539,-87.6256);
pts[13] = new GLatLng (30.6745,-87.4072);
pts[14] = new GLatLng (30.4404,-87.3688);
pts[15] = new GLatLng (30.1463,-87.5240);
pts[16] = new GLatLng (30.1546,-88.3864);
pts[17] = new GLatLng (31.8939,-88.4743);
pts[18] = new GLatLng (34.8938,-88.1021);
pts[19] = new GLatLng (34.9479,-88.1721);
pts[20] = new GLatLng (34.9107,-88.1461);
var poly = new GPolygon(pts,"#333399",3,1,color,.1);
polys.push(poly);
labels.push(label);
map.addOverlay(poly);
} else {
alert("Sorry, Google Maps is not compatible with this browser.");
}
}
//]]>