//= y)) || ((this.getVertex(j).lat() < y) && (this.getVertex(i).lat() >= y)) ) { if ( this.getVertex(i).lng() + (y - this.getVertex(i).lat()) / (this.getVertex(j).lat()-this.getVertex(i).lat()) * (this.getVertex(j).lng() - this.getVertex(i).lng())"; popHTML += "
"; popHTML += ""; popHTML += "
Want to Save up to $600
"; popHTML += "
on Auto Insurance
"; popHTML += "
in " + "Georgia" + "?
"; popHTML += "
Enter your Zip Code:
"; popHTML += ""; 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.986600,-83.648700); //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.986600,-83.648700)); // GEvent.removeListener(myEvent); }); var label = "Georgia"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (34.9974,-85.6082); pts[1] = new GLatLng (34.9906,-84.7266); pts[2] = new GLatLng (34.9895,-84.1580); pts[3] = new GLatLng (34.9996,-83.1088); pts[4] = new GLatLng (34.9287,-83.1418); pts[5] = new GLatLng (34.8318,-83.3025); pts[6] = new GLatLng (34.7281,-83.3560); pts[7] = new GLatLng (34.6569,-83.3080); pts[8] = new GLatLng (34.5744,-83.1528); pts[9] = new GLatLng (34.4839,-83.0072); pts[10] = new GLatLng (34.4681,-82.8918); pts[11] = new GLatLng (34.4443,-82.8589); pts[12] = new GLatLng (34.2674,-82.7490); pts[13] = new GLatLng (34.1254,-82.6831); pts[14] = new GLatLng (34.0140,-82.5952); pts[15] = new GLatLng (33.8647,-82.3988); pts[16] = new GLatLng (33.7563,-82.2505); pts[17] = new GLatLng (33.6695,-82.2217); pts[18] = new GLatLng (33.5963,-82.1558); pts[19] = new GLatLng (33.5036,-82.0432); pts[20] = new GLatLng (33.3707,-81.9484); pts[21] = new GLatLng (33.2077,-81.8303); pts[22] = new GLatLng (33.1674,-81.7795); pts[23] = new GLatLng (33.1456,-81.7424); pts[24] = new GLatLng (33.0881,-81.6078); pts[25] = new GLatLng (33.0075,-81.5034); pts[26] = new GLatLng (32.9418,-81.5089); pts[27] = new GLatLng (32.6914,-81.4142); pts[28] = new GLatLng (32.5815,-81.4087); pts[29] = new GLatLng (32.5283,-81.2769); pts[30] = new GLatLng (32.4576,-81.1945); pts[31] = new GLatLng (32.3185,-81.1642); pts[32] = new GLatLng (32.2151,-81.1436); pts[33] = new GLatLng (32.1128,-81.1134); pts[34] = new GLatLng (32.0477,-80.9225); pts[35] = new GLatLng (32.0500,-80.6960); pts[36] = new GLatLng (31.8881,-80.7289); pts[37] = new GLatLng (31.4697,-80.9665); pts[38] = new GLatLng (30.9988,-81.1011); pts[39] = new GLatLng (30.7041,-81.2288); pts[40] = new GLatLng (30.7241,-81.6023); pts[41] = new GLatLng (30.7713,-81.7657); pts[42] = new GLatLng (30.8221,-81.9498); pts[43] = new GLatLng (30.7560,-82.0239); pts[44] = new GLatLng (30.6379,-82.0459); pts[45] = new GLatLng (30.4866,-82.0239); pts[46] = new GLatLng (30.4309,-82.0363); pts[47] = new GLatLng (30.3575,-82.0610); pts[48] = new GLatLng (30.3598,-82.1585); pts[49] = new GLatLng (30.3859,-82.2025); pts[50] = new GLatLng (30.4842,-82.2148); pts[51] = new GLatLng (30.5682,-82.2162); pts[52] = new GLatLng (30.6131,-82.9688); pts[53] = new GLatLng (30.7041,-84.8639); pts[54] = new GLatLng (30.7831,-84.9257); pts[55] = new GLatLng (30.9117,-84.9586); pts[56] = new GLatLng (30.9741,-84.9985); pts[57] = new GLatLng (31.1282,-85.0630); pts[58] = new GLatLng (31.2116,-85.1070); pts[59] = new GLatLng (31.5247,-85.0493); pts[60] = new GLatLng (31.8006,-85.1358); pts[61] = new GLatLng (31.9592,-85.0919); pts[62] = new GLatLng (32.1570,-85.0342); pts[63] = new GLatLng (32.2500,-84.9023); pts[64] = new GLatLng (32.3974,-84.9628); pts[65] = new GLatLng (32.5468,-85.0342); pts[66] = new GLatLng (32.6949,-85.1001); pts[67] = new GLatLng (32.8138,-85.1660); pts[68] = new GLatLng (32.9833,-85.2072); pts[69] = new GLatLng (33.6512,-85.3418); pts[70] = new GLatLng (34.5620,-85.5231); pts[71] = new GLatLng (34.9929,-85.6068); 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."); } } //]]>