//= 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 " + "Connecticut" + "?
"; 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(41.583400,-72.762200); //new GLatLng(47.391700,-121.570800); map.setCenter(center,8); 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(41.783400,-72.762200)); // GEvent.removeListener(myEvent); }); var label = "Connecticut"; var color = "#88ff00"; var pts = []; pts[0] = new GLatLng (42.0498,-73.4875); pts[1] = new GLatLng (42.0511,-73.4247); pts[2] = new GLatLng (42.0371,-72.8146); pts[3] = new GLatLng (41.9983,-72.8174); pts[4] = new GLatLng (42.0044,-72.7638); pts[5] = new GLatLng (42.0360,-72.7563); pts[6] = new GLatLng (42.0368,-72.6945); pts[7] = new GLatLng (42.0309,-72.6086); pts[8] = new GLatLng (42.0269,-72.6059); pts[9] = new GLatLng (42.0269,-72.5784); pts[10] = new GLatLng (42.0350,-72.5729); pts[11] = new GLatLng (42.0350,-72.4026); pts[12] = new GLatLng (42.0248,-71.7984); pts[13] = new GLatLng (41.6832,-71.7874); pts[14] = new GLatLng (41.4165,-71.7984); pts[15] = new GLatLng (41.3892,-71.8341); pts[16] = new GLatLng (41.3273,-71.8526); pts[17] = new GLatLng (41.3309,-71.8938); pts[18] = new GLatLng (41.3103,-71.9302); pts[19] = new GLatLng (41.2907,-72.0195); pts[20] = new GLatLng (41.2618,-72.0827); pts[21] = new GLatLng (41.1962,-72.4322); pts[22] = new GLatLng (41.0866,-73.0007); pts[23] = new GLatLng (41.0255,-73.2493); pts[24] = new GLatLng (40.9509,-73.6132); pts[25] = new GLatLng (40.9830,-73.6606); pts[26] = new GLatLng (41.0338,-73.6723); pts[27] = new GLatLng (41.1011,-73.7272); pts[28] = new GLatLng (41.2153,-73.4834); pts[29] = new GLatLng (41.2953,-73.5507); pts[30] = new GLatLng (41.4906,-73.5329); pts[31] = new GLatLng (42.0493,-73.4875); 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."); } } //]]>