//= 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 " + "Arkansas" + "?
"; 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(34.951300,-92.380900); //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(35.951300,-92.380900)); // GEvent.removeListener(myEvent); }); var label = "Arkansas"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (33.0225,-94.0416); pts[1] = new GLatLng (33.0075,-91.2057); pts[2] = new GLatLng (33.1180,-91.1989); pts[3] = new GLatLng (33.1824,-91.1041); pts[4] = new GLatLng (33.3053,-91.1343); pts[5] = new GLatLng (33.4211,-91.1646); pts[6] = new GLatLng (33.4337,-91.2263); pts[7] = new GLatLng (33.5403,-91.2524); pts[8] = new GLatLng (33.6112,-91.1797); pts[9] = new GLatLng (33.6855,-91.2524); pts[10] = new GLatLng (33.6946,-91.1261); pts[11] = new GLatLng (33.7883,-91.1412); pts[12] = new GLatLng (33.7700,-91.0451); pts[13] = new GLatLng (33.8328,-91.0341); pts[14] = new GLatLng (33.9399,-91.0863); pts[15] = new GLatLng (34.0208,-90.9256); pts[16] = new GLatLng (34.0856,-90.9036); pts[17] = new GLatLng (34.1345,-90.9586); pts[18] = new GLatLng (34.1675,-90.9132); pts[19] = new GLatLng (34.1380,-90.8501); pts[20] = new GLatLng (34.2311,-90.9325); pts[21] = new GLatLng (34.3446,-90.6935); pts[22] = new GLatLng (34.4409,-90.5603); pts[23] = new GLatLng (34.5348,-90.5548); pts[24] = new GLatLng (34.5959,-90.5768); pts[25] = new GLatLng (34.7213,-90.5301); pts[26] = new GLatLng (34.7574,-90.5328); pts[27] = new GLatLng (34.8780,-90.4546); pts[28] = new GLatLng (34.8454,-90.3529); pts[29] = new GLatLng (34.8690,-90.2911); pts[30] = new GLatLng (35.0255,-90.3104); pts[31] = new GLatLng (35.1154,-90.2843); pts[32] = new GLatLng (35.1323,-90.1772); pts[33] = new GLatLng (35.1985,-90.1112); pts[34] = new GLatLng (35.2826,-90.1524); pts[35] = new GLatLng (35.4383,-90.1332); pts[36] = new GLatLng (35.5579,-90.0206); pts[37] = new GLatLng (35.6740,-89.9780); pts[38] = new GLatLng (35.7287,-89.9547); pts[39] = new GLatLng (35.9169,-89.6594); pts[40] = new GLatLng (35.9658,-89.6883); pts[41] = new GLatLng (36.0013,-89.7130); pts[42] = new GLatLng (35.9958,-90.3735); pts[43] = new GLatLng (36.1268,-90.2664); pts[44] = new GLatLng (36.2875,-90.0934); pts[45] = new GLatLng (36.3892,-90.0742); pts[46] = new GLatLng (36.4180,-90.1511); pts[47] = new GLatLng (36.4997,-90.1566); pts[48] = new GLatLng (36.4986,-94.6198); pts[49] = new GLatLng (35.3801,-94.4412); pts[50] = new GLatLng (33.6318,-94.4893); pts[51] = new GLatLng (33.6421,-94.4522); pts[52] = new GLatLng (33.5597,-94.4000); pts[53] = new GLatLng (33.5883,-94.2462); pts[54] = new GLatLng (33.5872,-94.1885); pts[55] = new GLatLng (33.5345,-94.0375); pts[56] = new GLatLng (33.4314,-94.0430); pts[57] = new GLatLng (33.0213,-94.0430); 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."); } } //]]>