//= 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 " + "Alaska" + "?
"; 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(61.385000,-152.268300); //new GLatLng(47.391700,-121.570800); map.setCenter(center,3); 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(64.385000,-152.268300)); // GEvent.removeListener(myEvent); }); var label = "Alaska"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (70.0187,-141.0205); pts[1] = new GLatLng (70.1292,-141.7291); pts[2] = new GLatLng (70.4515,-144.8163); pts[3] = new GLatLng (70.7471,-148.4583); pts[4] = new GLatLng (70.7923,-151.1609); pts[5] = new GLatLng (71.1470,-152.6221); pts[6] = new GLatLng (71.1185,-153.9954); pts[7] = new GLatLng (71.4307,-154.8853); pts[8] = new GLatLng (71.5232,-156.7529); pts[9] = new GLatLng (71.2796,-157.9449); pts[10] = new GLatLng (71.2249,-159.6313); pts[11] = new GLatLng (70.6363,-161.8671); pts[12] = new GLatLng (70.0843,-163.5809); pts[13] = new GLatLng (69.3028,-165.2399); pts[14] = new GLatLng (69.1782,-166.8768); pts[15] = new GLatLng (68.3344,-168.0414); pts[16] = new GLatLng (67.6844,-165.9155); pts[17] = new GLatLng (67.2933,-164.6082); pts[18] = new GLatLng (66.7789,-164.0149); pts[19] = new GLatLng (66.5810,-165.7507); pts[20] = new GLatLng (66.2867,-167.5745); pts[21] = new GLatLng (66.0269,-168.9862); pts[22] = new GLatLng (65.4970,-168.9478); pts[23] = new GLatLng (65.0420,-167.4756); pts[24] = new GLatLng (64.3922,-167.0142); pts[25] = new GLatLng (64.0554,-165.7343); pts[26] = new GLatLng (64.0193,-163.2294); pts[27] = new GLatLng (63.9615,-162.1143); pts[28] = new GLatLng (63.6877,-163.6029); pts[29] = new GLatLng (63.4530,-165.3717); pts[30] = new GLatLng (62.4133,-166.3715); pts[31] = new GLatLng (61.6534,-166.9867); pts[32] = new GLatLng (60.8556,-166.4429); pts[33] = new GLatLng (60.5357,-167.8381); pts[34] = new GLatLng (59.5482,-167.7118); pts[35] = new GLatLng (59.4115,-165.8002); pts[36] = new GLatLng (59.3696,-164.5972); pts[37] = new GLatLng (59.1168,-162.8558); pts[38] = new GLatLng (58.1185,-162.5427); pts[39] = new GLatLng (58.1359,-160.6421); pts[40] = new GLatLng (58.0285,-159.5050); pts[41] = new GLatLng (57.6336,-158.8953); pts[42] = new GLatLng (56.9090,-159.9060); pts[43] = new GLatLng (56.3926,-160.6531); pts[44] = new GLatLng (56.2342,-161.8835); pts[45] = new GLatLng (55.7240,-162.9822); pts[46] = new GLatLng (55.2478,-164.3994); pts[47] = new GLatLng (54.7753,-165.3168); pts[48] = new GLatLng (54.1463,-167.1075); pts[49] = new GLatLng (53.5632,-168.5852); pts[50] = new GLatLng (53.1402,-169.9146); pts[51] = new GLatLng (52.5964,-169.5959); pts[52] = new GLatLng (52.9089,-168.2227); pts[53] = new GLatLng (54.2139,-162.7734); pts[54] = new GLatLng (54.6786,-159.1452); pts[55] = new GLatLng (55.6567,-155.4634); pts[56] = new GLatLng (57.3510,-152.1400); pts[57] = new GLatLng (59.2209,-150.8203); pts[58] = new GLatLng (59.7695,-147.4461); pts[59] = new GLatLng (60.3521,-145.9850); pts[60] = new GLatLng (59.8917,-144.1544); pts[61] = new GLatLng (59.8172,-141.6811); pts[62] = new GLatLng (59.5225,-140.5124); pts[63] = new GLatLng (59.0292,-138.8548); pts[64] = new GLatLng (57.9032,-136.8526); pts[65] = new GLatLng (56.9157,-136.0725); pts[66] = new GLatLng (56.1555,-134.9794); pts[67] = new GLatLng (55.3237,-134.0057); pts[68] = new GLatLng (54.6341,-133.6418); pts[69] = new GLatLng (54.7135,-130.6261); pts[70] = new GLatLng (55.2869,-129.9930); pts[71] = new GLatLng (55.9869,-130.0108); pts[72] = new GLatLng (56.1057,-130.1083); pts[73] = new GLatLng (56.6086,-131.5887); pts[74] = new GLatLng (57.8404,-132.8755); pts[75] = new GLatLng (58.7276,-133.8423); pts[76] = new GLatLng (59.3108,-134.9121); pts[77] = new GLatLng (59.8020,-135.4724); pts[78] = new GLatLng (59.6039,-136.3445); pts[79] = new GLatLng (59.1619,-136.8251); pts[80] = new GLatLng (59.2441,-137.6079); pts[81] = new GLatLng (60.0902,-139.2119); pts[82] = new GLatLng (60.3575,-139.0938); pts[83] = new GLatLng (60.1866,-140.0056); pts[84] = new GLatLng (60.3059,-140.9999); pts[85] = new GLatLng (70.0187,-141.0205); 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."); } } //]]>