//= 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 " + "Tennessee" + "?
"; 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(35.744900,-86.748900); //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(36.744900,-86.748900)); // GEvent.removeListener(myEvent); }); var label = "Tennessee"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (36.6739,-88.0678); pts[1] = new GLatLng (36.6354,-87.8522); pts[2] = new GLatLng (36.6023,-83.6787); pts[3] = new GLatLng (36.5946,-81.9402); pts[4] = new GLatLng (36.6144,-81.9209); pts[5] = new GLatLng (36.6111,-81.6518); pts[6] = new GLatLng (36.3295,-81.7163); pts[7] = new GLatLng (36.3516,-81.7973); pts[8] = new GLatLng (36.2974,-81.9072); pts[9] = new GLatLng (36.1212,-82.0308); pts[10] = new GLatLng (36.1024,-82.1255); pts[11] = new GLatLng (36.1434,-82.1475); pts[12] = new GLatLng (36.1323,-82.2450); pts[13] = new GLatLng (36.1168,-82.3521); pts[14] = new GLatLng (36.0702,-82.4167); pts[15] = new GLatLng (35.9669,-82.5389); pts[16] = new GLatLng (35.9702,-82.6076); pts[17] = new GLatLng (36.0602,-82.6378); pts[18] = new GLatLng (35.9925,-82.7751); pts[19] = new GLatLng (35.9169,-82.8177); pts[20] = new GLatLng (35.8623,-82.9042); pts[21] = new GLatLng (35.7755,-83.0017); pts[22] = new GLatLng (35.7131,-83.2393); pts[23] = new GLatLng (35.5635,-83.4961); pts[24] = new GLatLng (35.5501,-83.6938); pts[25] = new GLatLng (35.5233,-83.8284); pts[26] = new GLatLng (35.5065,-83.8847); pts[27] = new GLatLng (35.4014,-84.0248); pts[28] = new GLatLng (35.2905,-84.0276); pts[29] = new GLatLng (35.2322,-84.1113); pts[30] = new GLatLng (35.2624,-84.2294); pts[31] = new GLatLng (35.2198,-84.2926); pts[32] = new GLatLng (34.9884,-84.3201); pts[33] = new GLatLng (34.9996,-90.3131); pts[34] = new GLatLng (35.1233,-90.2843); pts[35] = new GLatLng (35.1379,-90.1758); pts[36] = new GLatLng (35.1985,-90.1112); pts[37] = new GLatLng (35.2849,-90.1524); pts[38] = new GLatLng (35.4372,-90.1346); pts[39] = new GLatLng (35.5568,-90.0192); pts[40] = new GLatLng (35.7343,-89.9547); pts[41] = new GLatLng (35.8579,-89.7638); pts[42] = new GLatLng (35.9180,-89.6635); pts[43] = new GLatLng (35.9947,-89.7130); pts[44] = new GLatLng (36.0902,-89.6759); pts[45] = new GLatLng (36.1279,-89.5894); pts[46] = new GLatLng (36.1856,-89.6484); pts[47] = new GLatLng (36.2343,-89.7006); pts[48] = new GLatLng (36.2531,-89.5331); pts[49] = new GLatLng (36.2996,-89.6210); pts[50] = new GLatLng (36.3494,-89.5784); pts[51] = new GLatLng (36.3406,-89.5180); pts[52] = new GLatLng (36.4964,-89.5345); pts[53] = new GLatLng (36.5107,-89.3051); pts[54] = new GLatLng (36.4986,-88.1667); pts[55] = new GLatLng (36.4997,-88.0692); pts[56] = new GLatLng (36.6871,-88.0637); 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."); } } //]]>