title: google maps api v3 - open infowindow from an external click
body: <p>So i have a V3 map which is initialised like this:</p>
  
  <pre><code>function init() {
          var mapCenter = new google.maps.LatLng(51.5081289,-0.128005);
          var map = new google.maps.Map(document.getElementById('map'), {
            'zoom': 6,
            'center': mapCenter,
            'mapTypeId': google.maps.MapTypeId.ROADMAP, 
            panControl: false,
            mapTypeControl: false,
            zoomControl: true,
            zoomControlOptions: {
                  style: google.maps.ZoomControlStyle.SMALL,
                  position: google.maps.ControlPosition.LEFT_TOP
              },
          });
  </code></pre>
  
  <p>and a load of markers that look like this:</p>
  
  <pre><code>var marker25837500 = new google.maps.Marker({
                map: map, 
                pop_title: 'blah blah',                                                                                                 
                pop_wind: 'more blah',
                        zIndex: 999,
                icon: 'images/map_icons/s6.png'
              }); 
              google.maps.event.addListener(marker25837500, 'click', onMarkerClick);
  </code></pre>
  
  <p>and lastly i have a function to open the infowindow on he click of each maker:</p>
  
  <pre><code>var infoWindow = new google.maps.InfoWindow;
  
  var onMarkerClick = OpenInfoWindow;
  
  function OpenInfoWindow() {
            var marker = this;
            infoWindow.setContent('&lt;h3&gt;' + marker.pop_title + '&lt;/h3&gt;' +
                                           marker.pop_body);
  
            infoWindow.open(map, marker);
          };
          google.maps.event.addListener(map, 'click', function() {
            infoWindow.close();
          }); 
  </code></pre>
  
  <p>My question is, what do i need to do to make a particular marker (say marker25837500) show its infowindow when a  inside the page is clicked - perhaps something like:</p>
  
  <pre><code>&lt;div id="marker25837500"&gt;click to see infoWindow!&lt;/div&gt;
  </code></pre>
  
  <p>I'm sure it's easy but i just can see my way though it!</p>
  
  <p>Thanks</p>