//= 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 " + "Kentucky" + "?
"; 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(37.669000,-84.651400); //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(38.669000,-84.651400)); // GEvent.removeListener(myEvent); }); var label = "Kentucky"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (36.4986,-89.5372); pts[1] = new GLatLng (36.5074,-89.3010); pts[2] = new GLatLng (36.5008,-88.6871); pts[3] = new GLatLng (36.4931,-88.0568); pts[4] = new GLatLng (36.6695,-88.0692); pts[5] = new GLatLng (36.6343,-87.8535); pts[6] = new GLatLng (36.6265,-86.5654); pts[7] = new GLatLng (36.5979,-83.6375); pts[8] = new GLatLng (36.6860,-83.3423); pts[9] = new GLatLng (36.7466,-83.1377); pts[10] = new GLatLng (36.9762,-82.8589); pts[11] = new GLatLng (37.2894,-82.3192); pts[12] = new GLatLng (37.4934,-82.0308); pts[13] = new GLatLng (37.6653,-82.2121); pts[14] = new GLatLng (37.8618,-82.4016); pts[15] = new GLatLng (37.9908,-82.5073); pts[16] = new GLatLng (38.1778,-82.6392); pts[17] = new GLatLng (38.3761,-82.5952); pts[18] = new GLatLng (38.5030,-82.7477); pts[19] = new GLatLng (38.5825,-82.8369); pts[20] = new GLatLng (38.7316,-82.9015); pts[21] = new GLatLng (38.7027,-83.0196); pts[22] = new GLatLng (38.6190,-83.1418); pts[23] = new GLatLng (38.5986,-83.2819); pts[24] = new GLatLng (38.6941,-83.5291); pts[25] = new GLatLng (38.6351,-83.6595); pts[26] = new GLatLng (38.7487,-83.8930); pts[27] = new GLatLng (38.7701,-84.0440); pts[28] = new GLatLng (38.8119,-84.2184); pts[29] = new GLatLng (38.9872,-84.3228); pts[30] = new GLatLng (39.1013,-84.4917); pts[31] = new GLatLng (39.1183,-84.6277); pts[32] = new GLatLng (39.1439,-84.7554); pts[33] = new GLatLng (39.0523,-84.8914); pts[34] = new GLatLng (38.9263,-84.8735); pts[35] = new GLatLng (38.7894,-84.8131); pts[36] = new GLatLng (38.7691,-84.9957); pts[37] = new GLatLng (38.6866,-85.1921); pts[38] = new GLatLng (38.7209,-85.4407); pts[39] = new GLatLng (38.5653,-85.4077); pts[40] = new GLatLng (38.4461,-85.5972); pts[41] = new GLatLng (38.2748,-85.7455); pts[42] = new GLatLng (38.2716,-85.8087); pts[43] = new GLatLng (38.2069,-85.8650); pts[44] = new GLatLng (38.0286,-85.9323); pts[45] = new GLatLng (37.9550,-86.0422); pts[46] = new GLatLng (38.0135,-86.1108); pts[47] = new GLatLng (38.0643,-86.2756); pts[48] = new GLatLng (38.1389,-86.2770); pts[49] = new GLatLng (38.1864,-86.3690); pts[50] = new GLatLng (38.0308,-86.5283); pts[51] = new GLatLng (37.9204,-86.5874); pts[52] = new GLatLng (37.8423,-86.6423); pts[53] = new GLatLng (37.9041,-86.6547); pts[54] = new GLatLng (37.9864,-86.8250); pts[55] = new GLatLng (37.9095,-87.0406); pts[56] = new GLatLng (37.7935,-87.1381); pts[57] = new GLatLng (37.9420,-87.4168); pts[58] = new GLatLng (37.9745,-87.5858); pts[59] = new GLatLng (37.8749,-87.6929); pts[60] = new GLatLng (37.9215,-87.8906); pts[61] = new GLatLng (37.7761,-87.9552); pts[62] = new GLatLng (37.7903,-88.0307); pts[63] = new GLatLng (37.6479,-88.1584); pts[64] = new GLatLng (37.5097,-88.0664); pts[65] = new GLatLng (37.4193,-88.4180); pts[66] = new GLatLng (37.2784,-88.5086); pts[67] = new GLatLng (37.1428,-88.4248); pts[68] = new GLatLng (37.0738,-88.5059); pts[69] = new GLatLng (37.1461,-88.7421); pts[70] = new GLatLng (37.2249,-88.9522); pts[71] = new GLatLng (37.1406,-89.0964); pts[72] = new GLatLng (37.0278,-89.1815); pts[73] = new GLatLng (36.9488,-89.1032); pts[74] = new GLatLng (36.8214,-89.1733); pts[75] = new GLatLng (36.7411,-89.1925); pts[76] = new GLatLng (36.6265,-89.2007); pts[77] = new GLatLng (36.5449,-89.2529); pts[78] = new GLatLng (36.6232,-89.3518); pts[79] = new GLatLng (36.4986,-89.5345); 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."); } } //]]>