//= 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 " + "South Carolina" + "?
"; 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.819100,-80.906600); //new GLatLng(47.391700,-121.570800); map.setCenter(center,7); 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.219100,-80.906600)); // GEvent.removeListener(myEvent); }); var label = "South Carolina"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (32.0488,-80.7001); pts[1] = new GLatLng (32.0453,-80.8978); pts[2] = new GLatLng (32.1105,-81.1134); pts[3] = new GLatLng (32.2058,-81.1423); pts[4] = new GLatLng (32.3846,-81.1821); pts[5] = new GLatLng (32.4576,-81.1986); pts[6] = new GLatLng (32.5283,-81.2769); pts[7] = new GLatLng (32.5838,-81.4087); pts[8] = new GLatLng (32.6926,-81.4183); pts[9] = new GLatLng (32.8242,-81.4746); pts[10] = new GLatLng (32.9465,-81.5117); pts[11] = new GLatLng (33.0098,-81.5034); pts[12] = new GLatLng (33.0777,-81.6010); pts[13] = new GLatLng (33.1238,-81.7122); pts[14] = new GLatLng (33.2065,-81.8289); pts[15] = new GLatLng (33.3443,-81.9319); pts[16] = new GLatLng (33.4830,-82.0280); pts[17] = new GLatLng (33.5860,-82.1475); pts[18] = new GLatLng (33.6878,-82.2437); pts[19] = new GLatLng (33.7609,-82.2437); pts[20] = new GLatLng (33.8305,-82.3576); pts[21] = new GLatLng (33.9308,-82.5018); pts[22] = new GLatLng (33.9650,-82.5471); pts[23] = new GLatLng (34.0947,-82.6625); pts[24] = new GLatLng (34.1664,-82.7216); pts[25] = new GLatLng (34.3434,-82.7930); pts[26] = new GLatLng (34.4647,-82.8905); pts[27] = new GLatLng (34.4760,-82.9893); pts[28] = new GLatLng (34.5281,-83.0855); pts[29] = new GLatLng (34.6581,-83.3121); pts[30] = new GLatLng (34.7326,-83.3588); pts[31] = new GLatLng (34.8318,-83.2983); pts[32] = new GLatLng (34.9276,-83.1459); pts[33] = new GLatLng (34.9996,-83.1047); pts[34] = new GLatLng (35.0817,-82.7779); pts[35] = new GLatLng (35.2075,-82.3920); pts[36] = new GLatLng (35.1974,-82.2203); pts[37] = new GLatLng (35.1480,-81.0379); pts[38] = new GLatLng (35.0446,-81.0324); pts[39] = new GLatLng (35.1019,-80.9322); pts[40] = new GLatLng (34.9344,-80.7811); pts[41] = new GLatLng (34.8194,-80.7948); pts[42] = new GLatLng (34.8048,-79.6756); pts[43] = new GLatLng (34.2016,-78.9560); pts[44] = new GLatLng (33.7951,-78.4836); pts[45] = new GLatLng (33.6489,-78.7871); pts[46] = new GLatLng (33.2019,-79.0837); pts[47] = new GLatLng (32.7607,-79.4476); pts[48] = new GLatLng (32.5225,-79.8116); pts[49] = new GLatLng (32.3556,-80.1508); pts[50] = new GLatLng (32.2012,-80.4240); pts[51] = new GLatLng (32.0500,-80.7001); 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."); } } //]]>