//= 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 " + "Nevada" + "?
"; 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(38.702659,-115.795898); //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(39.702659,-115.795898)); // GEvent.removeListener(myEvent); }); var label = "Nevada"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (41.9922,-120.0037); pts[1] = new GLatLng (42.0003,-117.9602); pts[2] = new GLatLng (42.0003,-117.0264); pts[3] = new GLatLng (42.0003,-115.7300); pts[4] = new GLatLng (41.9952,-114.0436); pts[5] = new GLatLng (38.2856,-114.0546); pts[6] = new GLatLng (36.1955,-114.0491); pts[7] = new GLatLng (36.1334,-114.0985); pts[8] = new GLatLng (36.1068,-114.1260); pts[9] = new GLatLng (36.0891,-114.1150); pts[10] = new GLatLng (36.0313,-114.1534); pts[11] = new GLatLng (36.0136,-114.2468); pts[12] = new GLatLng (36.0624,-114.3292); pts[13] = new GLatLng (36.1024,-114.3237); pts[14] = new GLatLng (36.1434,-114.3896); pts[15] = new GLatLng (36.1290,-114.5105); pts[16] = new GLatLng (36.1467,-114.5215); pts[17] = new GLatLng (36.1556,-114.5654); pts[18] = new GLatLng (36.1334,-114.6204); pts[19] = new GLatLng (36.1157,-114.6863); pts[20] = new GLatLng (36.0979,-114.7742); pts[21] = new GLatLng (36.0580,-114.7357); pts[22] = new GLatLng (36.0447,-114.7522); pts[23] = new GLatLng (35.9691,-114.7412); pts[24] = new GLatLng (35.8980,-114.7028); pts[25] = new GLatLng (35.8757,-114.6588); pts[26] = new GLatLng (35.8579,-114.7083); pts[27] = new GLatLng (35.8267,-114.6973); pts[28] = new GLatLng (35.8089,-114.7192); pts[29] = new GLatLng (35.6618,-114.6973); pts[30] = new GLatLng (35.6037,-114.6478); pts[31] = new GLatLng (35.5814,-114.6863); pts[32] = new GLatLng (35.5233,-114.6533); pts[33] = new GLatLng (35.5054,-114.6863); pts[34] = new GLatLng (35.4070,-114.6149); pts[35] = new GLatLng (35.3218,-114.5929); pts[36] = new GLatLng (35.1783,-114.5737); pts[37] = new GLatLng (35.1199,-114.6094); pts[38] = new GLatLng (35.1109,-114.6368); pts[39] = new GLatLng (35.0929,-114.6368); pts[40] = new GLatLng (35.0750,-114.6039); pts[41] = new GLatLng (35.0480,-114.6259); pts[42] = new GLatLng (35.0345,-114.6478); pts[43] = new GLatLng (35.0030,-114.6423); pts[44] = new GLatLng (35.1334,-114.8016); pts[45] = new GLatLng (37.2303,-117.5153); pts[46] = new GLatLng (39.0000,-120.0009); pts[47] = new GLatLng (41.9942,-119.9982); 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."); } } //]]>