title: Google Maps API - info window will not re-open after manually closing
body: <p>I got the following code that works just fine - <a href="http://jsfiddle.net/erez_wn/SYjMv/1/" rel="nofollow">Fiddle</a> . It sets up some markers and uses 1 infowindow for them.<br>
  But when I change the infowindow content to be a div element by changing this:</p>
  
  <pre><code>infowindow.setContent(locations[i][0]);
  infowindow.open(map, marker);
  </code></pre>
  
  <p>With this:</p>
  
  <pre><code>document.getElementById("info").innerHTML=locations[i][0];    
  infowindow.setContent(document.getElementById("info"));
  infowindow.open(map, marker);
  </code></pre>
  
  <p>Something weird happens - infowindow still shows when clicking on markers, UNTIL you decide to close the infowindow by clicking the 'x'. After that the infowindow won't open again when you click on the markers.</p>
  
  <p>Link to the problem fiddle - <a href="http://jsfiddle.net/erez_wn/WJ3FF/" rel="nofollow">here</a> . Any idea what is causing this?</p>
  
  <p>Thanks for any help!</p>