";
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(42.237300,-71.531400); //new GLatLng(47.391700,-121.570800);
map.setCenter(center,7);
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(42.637300,-71.531400)); // GEvent.removeListener(myEvent);
});
var label = "Massachusetts";
var color = "#88ff00";
var pts = [];
pts[0] = new GLatLng (42.0003,-72.7789);
pts[1] = new GLatLng (42.0330,-72.7405);
pts[2] = new GLatLng (42.0330,-72.3779);
pts[3] = new GLatLng (42.0228,-71.7984);
pts[4] = new GLatLng (42.0085,-71.8011);
pts[5] = new GLatLng (42.0197,-71.3850);
pts[6] = new GLatLng (41.8961,-71.3837);
pts[7] = new GLatLng (41.8982,-71.3411);
pts[8] = new GLatLng (41.8358,-71.3370);
pts[9] = new GLatLng (41.8245,-71.3493);
pts[10] = new GLatLng (41.7816,-71.3342);
pts[11] = new GLatLng (41.7529,-71.2628);
pts[12] = new GLatLng (41.6719,-71.1914);
pts[13] = new GLatLng (41.6616,-71.1351);
pts[14] = new GLatLng (41.6124,-71.1433);
pts[15] = new GLatLng (41.5939,-71.1310);
pts[16] = new GLatLng (41.4973,-71.1214);
pts[17] = new GLatLng (41.3149,-71.0266);
pts[18] = new GLatLng (41.1590,-70.8316);
pts[19] = new GLatLng (41.1662,-69.9225);
pts[20] = new GLatLng (41.3201,-69.7948);
pts[21] = new GLatLng (41.8133,-69.7398);
pts[22] = new GLatLng (42.1939,-70.0337);
pts[23] = new GLatLng (42.2173,-70.5144);
pts[24] = new GLatLng (42.4133,-70.6984);
pts[25] = new GLatLng (42.6420,-70.3647);
pts[26] = new GLatLng (42.8286,-70.4759);
pts[27] = new GLatLng (42.8760,-70.6133);
pts[28] = new GLatLng (42.8619,-70.8440);
pts[29] = new GLatLng (42.8890,-70.9154);
pts[30] = new GLatLng (42.8075,-71.0651);
pts[31] = new GLatLng (42.8226,-71.1337);
pts[32] = new GLatLng (42.7873,-71.1859);
pts[33] = new GLatLng (42.7369,-71.1832);
pts[34] = new GLatLng (42.7470,-71.2189);
pts[35] = new GLatLng (42.7400,-71.2560);
pts[36] = new GLatLng (42.6986,-71.2985);
pts[37] = new GLatLng (42.7127,-71.9151);
pts[38] = new GLatLng (42.7309,-72.5441);
pts[39] = new GLatLng (42.7450,-73.2541);
pts[40] = new GLatLng (42.7460,-73.2664);
pts[41] = new GLatLng (42.5460,-73.3406);
pts[42] = new GLatLng (42.2671,-73.4436);
pts[43] = new GLatLng (42.1349,-73.4917);
pts[44] = new GLatLng (42.0880,-73.5081);
pts[45] = new GLatLng (42.0483,-73.4985);
pts[46] = new GLatLng (42.0452,-73.1841);
pts[47] = new GLatLng (42.0371,-72.8146);
pts[48] = new GLatLng (41.9962,-72.8160);
pts[49] = new GLatLng (42.0024,-72.7803);
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.");
}
}
//]]>