images/map.png', origin: new google.maps.Point(0,0) }; var infowindow = new google.maps.InfoWindow(); for (i = 0; i < locations.length; i++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map, url: locations[i][4], title: locations[i][0] }); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent('

' + locations[i][0] + '


Go to Location
'); infowindow.open(map, marker); } })(marker, i)); }