";
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(38.511100,-96.800500); //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(39.511100,-96.800500)); // GEvent.removeListener(myEvent);
});
var label = "Kansas";
var color = "#88ff00";
var pts = [];
pts[0] = new GLatLng (40.0034,-102.0506);
pts[1] = new GLatLng (40.0034,-102.0506);
pts[2] = new GLatLng (36.9927,-102.0438);
pts[3] = new GLatLng (36.9982,-94.6211);
pts[4] = new GLatLng (38.8803,-94.6046);
pts[5] = new GLatLng (39.0789,-94.6143);
pts[6] = new GLatLng (39.1971,-94.6184);
pts[7] = new GLatLng (39.1673,-94.7255);
pts[8] = new GLatLng (39.2759,-94.8793);
pts[9] = new GLatLng (39.5612,-95.0990);
pts[10] = new GLatLng (39.7283,-94.8807);
pts[11] = new GLatLng (39.8286,-94.8930);
pts[12] = new GLatLng (39.8823,-94.9342);
pts[13] = new GLatLng (39.8971,-95.0098);
pts[14] = new GLatLng (39.8760,-95.0922);
pts[15] = new GLatLng (39.9445,-95.2213);
pts[16] = new GLatLng (40.0087,-95.3036);
pts[17] = new GLatLng (40.0024,-102.0506);
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.");
}
}
//]]>