//= 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 " + "Arizona" + "?
"; 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(33.771200,-111.387700); //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(34.771200,-111.387700)); // GEvent.removeListener(myEvent); }); var label = "Arizona"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (36.9993,-112.5989); pts[1] = new GLatLng (37.0004,-110.8630); pts[2] = new GLatLng (37.0004,-109.0475); pts[3] = new GLatLng (31.3325,-109.0503); pts[4] = new GLatLng (31.3325,-111.0718); pts[5] = new GLatLng (32.4935,-114.8126); pts[6] = new GLatLng (32.5184,-114.8099); pts[7] = new GLatLng (32.5827,-114.8044); pts[8] = new GLatLng (32.6246,-114.7992); pts[9] = new GLatLng (32.6700,-114.7474); pts[10] = new GLatLng (32.7457,-114.7014); pts[11] = new GLatLng (32.7342,-114.6176); pts[12] = new GLatLng (32.7422,-114.5819); pts[13] = new GLatLng (32.7584,-114.5393); pts[14] = new GLatLng (32.8167,-114.5095); pts[15] = new GLatLng (32.8450,-114.4696); pts[16] = new GLatLng (32.9107,-114.4817); pts[17] = new GLatLng (32.9741,-114.4803); pts[18] = new GLatLng (33.0317,-114.5256); pts[19] = new GLatLng (33.0259,-114.6094); pts[20] = new GLatLng (33.0317,-114.6588); pts[21] = new GLatLng (33.0904,-114.7096); pts[22] = new GLatLng (33.2065,-114.6849); pts[23] = new GLatLng (33.2846,-114.7220); pts[24] = new GLatLng (33.3546,-114.6973); pts[25] = new GLatLng (33.4051,-114.7258); pts[26] = new GLatLng (33.4120,-114.6533); pts[27] = new GLatLng (33.5016,-114.5888); pts[28] = new GLatLng (33.5317,-114.5599); pts[29] = new GLatLng (33.6306,-114.5187); pts[30] = new GLatLng (33.6786,-114.5297); pts[31] = new GLatLng (33.7083,-114.4940); pts[32] = new GLatLng (33.7609,-114.5036); pts[33] = new GLatLng (33.8157,-114.5284); pts[34] = new GLatLng (33.8545,-114.5325); pts[35] = new GLatLng (33.9285,-114.5380); pts[36] = new GLatLng (33.9530,-114.5235); pts[37] = new GLatLng (34.0049,-114.4748); pts[38] = new GLatLng (34.0299,-114.4308); pts[39] = new GLatLng (34.0891,-114.4363); pts[40] = new GLatLng (34.1357,-114.3526); pts[41] = new GLatLng (34.1720,-114.2908); pts[42] = new GLatLng (34.2044,-114.2255); pts[43] = new GLatLng (34.2595,-114.1685); pts[44] = new GLatLng (34.2572,-114.1301); pts[45] = new GLatLng (34.3037,-114.1397); pts[46] = new GLatLng (34.3664,-114.2276); pts[47] = new GLatLng (34.4012,-114.2633); pts[48] = new GLatLng (34.4534,-114.3388); pts[49] = new GLatLng (34.4930,-114.3608); pts[50] = new GLatLng (34.5292,-114.3811); pts[51] = new GLatLng (34.5959,-114.4377); pts[52] = new GLatLng (34.6547,-114.4569); pts[53] = new GLatLng (34.7506,-114.5297); pts[54] = new GLatLng (34.8172,-114.5847); pts[55] = new GLatLng (34.8724,-114.6341); pts[56] = new GLatLng (34.9490,-114.6313); pts[57] = new GLatLng (35.0342,-114.6351); pts[58] = new GLatLng (35.1019,-114.6451); pts[59] = new GLatLng (35.1233,-114.6190); pts[60] = new GLatLng (35.1716,-114.5682); pts[61] = new GLatLng (35.3364,-114.5984); pts[62] = new GLatLng (35.4506,-114.6643); pts[63] = new GLatLng (35.5780,-114.6753); pts[64] = new GLatLng (35.6171,-114.6547); pts[65] = new GLatLng (35.6528,-114.6918); pts[66] = new GLatLng (35.7053,-114.7028); pts[67] = new GLatLng (35.8050,-114.7093); pts[68] = new GLatLng (35.8679,-114.6602); pts[69] = new GLatLng (35.9836,-114.7426); pts[70] = new GLatLng (36.0891,-114.7536); pts[71] = new GLatLng (36.1124,-114.6794); pts[72] = new GLatLng (36.1423,-114.6327); pts[73] = new GLatLng (36.1301,-114.4872); pts[74] = new GLatLng (36.1445,-114.3690); pts[75] = new GLatLng (36.0746,-114.3038); pts[76] = new GLatLng (36.0602,-114.3172); pts[77] = new GLatLng (36.0163,-114.2451); pts[78] = new GLatLng (36.0402,-114.1438); pts[79] = new GLatLng (36.0979,-114.1150); pts[80] = new GLatLng (36.1101,-114.1274); pts[81] = new GLatLng (36.1190,-114.1054); pts[82] = new GLatLng (36.1989,-114.0463); pts[83] = new GLatLng (36.3638,-114.0450); pts[84] = new GLatLng (37.0001,-114.0508); 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."); } } //]]>