//= 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 " + "Mississippi" + "?
"; 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.767300,-89.681200); //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.767300,-89.681200)); // GEvent.removeListener(myEvent); }); var label = "Mississippi"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (35.0041,-90.3049); pts[1] = new GLatLng (35.0075,-88.1955); pts[2] = new GLatLng (34.8882,-88.0994); pts[3] = new GLatLng (34.7044,-88.1241); pts[4] = new GLatLng (33.6661,-88.2573); pts[5] = new GLatLng (31.8939,-88.4756); pts[6] = new GLatLng (30.8657,-88.4180); pts[7] = new GLatLng (30.1594,-88.3850); pts[8] = new GLatLng (30.0905,-88.8327); pts[9] = new GLatLng (30.2104,-89.1870); pts[10] = new GLatLng (30.1570,-89.4919); pts[11] = new GLatLng (30.1796,-89.5757); pts[12] = new GLatLng (30.3326,-89.6457); pts[13] = new GLatLng (30.5232,-89.7748); pts[14] = new GLatLng (30.6663,-89.8531); pts[15] = new GLatLng (30.9988,-89.7377); pts[16] = new GLatLng (30.9988,-91.6287); pts[17] = new GLatLng (31.0341,-91.5601); pts[18] = new GLatLng (31.1106,-91.6273); pts[19] = new GLatLng (31.1658,-91.5916); pts[20] = new GLatLng (31.2304,-91.6589); pts[21] = new GLatLng (31.2656,-91.6452); pts[22] = new GLatLng (31.2609,-91.5436); pts[23] = new GLatLng (31.3724,-91.5271); pts[24] = new GLatLng (31.4099,-91.5161); pts[25] = new GLatLng (31.5071,-91.5120); pts[26] = new GLatLng (31.5692,-91.4502); pts[27] = new GLatLng (31.6230,-91.5147); pts[28] = new GLatLng (31.6253,-91.3966); pts[29] = new GLatLng (31.7936,-91.3513); pts[30] = new GLatLng (31.8589,-91.2744); pts[31] = new GLatLng (31.9755,-91.1673); pts[32] = new GLatLng (32.0267,-91.0767); pts[33] = new GLatLng (32.1198,-91.0767); pts[34] = new GLatLng (32.1942,-91.0437); pts[35] = new GLatLng (32.2221,-91.0107); pts[36] = new GLatLng (32.3150,-90.9132); pts[37] = new GLatLng (32.3742,-91.0313); pts[38] = new GLatLng (32.4263,-91.0217); pts[39] = new GLatLng (32.4634,-91.0986); pts[40] = new GLatLng (32.6070,-91.0080); pts[41] = new GLatLng (32.5746,-91.1096); pts[42] = new GLatLng (32.6394,-91.1536); pts[43] = new GLatLng (32.7226,-91.1426); pts[44] = new GLatLng (32.7873,-91.1426); pts[45] = new GLatLng (32.8519,-91.1536); pts[46] = new GLatLng (32.8796,-91.1206); pts[47] = new GLatLng (32.9257,-91.2195); pts[48] = new GLatLng (32.9995,-91.2085); pts[49] = new GLatLng (33.0444,-91.2016); pts[50] = new GLatLng (33.1192,-91.2016); pts[51] = new GLatLng (33.1835,-91.1041); pts[52] = new GLatLng (33.3397,-91.1536); pts[53] = new GLatLng (33.4223,-91.1646); pts[54] = new GLatLng (33.4337,-91.2291); pts[55] = new GLatLng (33.5414,-91.2524); pts[56] = new GLatLng (33.6135,-91.1838); pts[57] = new GLatLng (33.6878,-91.2524); pts[58] = new GLatLng (33.6969,-91.1261); pts[59] = new GLatLng (33.7883,-91.1426); pts[60] = new GLatLng (33.7700,-91.0437); pts[61] = new GLatLng (33.8339,-91.0327); pts[62] = new GLatLng (33.8795,-91.0657); pts[63] = new GLatLng (33.9434,-91.0876); pts[64] = new GLatLng (33.9889,-90.9998); pts[65] = new GLatLng (34.0253,-90.9229); pts[66] = new GLatLng (34.0891,-90.9009); pts[67] = new GLatLng (34.1345,-90.9668); pts[68] = new GLatLng (34.1709,-90.9119); pts[69] = new GLatLng (34.1345,-90.8501); pts[70] = new GLatLng (34.2277,-90.9338); pts[71] = new GLatLng (34.2833,-90.8267); pts[72] = new GLatLng (34.3434,-90.6921); pts[73] = new GLatLng (34.3774,-90.6509); pts[74] = new GLatLng (34.3978,-90.6152); pts[75] = new GLatLng (34.4432,-90.5589); pts[76] = new GLatLng (34.5179,-90.5740); pts[77] = new GLatLng (34.5880,-90.5823); pts[78] = new GLatLng (34.7506,-90.5356); pts[79] = new GLatLng (34.7913,-90.5136); pts[80] = new GLatLng (34.8780,-90.4532); pts[81] = new GLatLng (34.8476,-90.3543); pts[82] = new GLatLng (34.8702,-90.2911); pts[83] = new GLatLng (35.0041,-90.3062); 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."); } } //]]>