title: Calling thickbox from a js file
body: <p>Hi i am trying to add thick box to a overlay in googlemaps. On my JQuery onload function i call the following function. The map works fine. But when the thick box doesn't seem to be called. This is the line that does work</p>
  
  <pre><code>&lt;a href="test.html?keepThis=true&amp;TB_iframe=true&amp;height=250&amp;width=400" title="add a caption to title attribute / or leave blank" class="thickbox"&gt;Example 1&lt;/a&gt;
  </code></pre>
  
  <p>The whole function</p>
  
  <pre><code>function load(lat, lng, zlevel, userKey, state) {
  
          map = new GMap2(document.getElementById("map"));
          map.disableDoubleClickZoom();
          map.setCenter(new GLatLng(lat, lng), zlevel);
  
          if (state) {
  
              dsp = true;
  
              map.addControl(new GLargeMapControl());
              GEvent.addListener(map, "click", function(overlay, latlng) {
  
                  var zoom = map.getZoom();
                  var display = '&lt;h5 class="header-flag"&gt;Flag&lt;/h5&gt;&lt;p class="maptext"&gt;&lt;a href="#" onclick="javascript:openOverlay(' + latlng.lat() + ',' + latlng.lng() + ',' + zoom + ');"&gt;Click here&lt;/a&gt; to enter your comment - 
  &lt;a href="test.html?keepThis=true&amp;TB_iframe=true&amp;height=250&amp;width=400" title="add a caption to title attribute / or leave blank" class="thickbox"&gt;Example 1&lt;/a&gt;&lt;/p&gt;';
  
                  setTimeout(function() { map.openInfoWindowHtml(latlng, display, { maxWidth: 200 }); }, 0);
              });
          } else {
  
  
          }
  
          mgr = new MarkerManager(map);
          loadMarkers(userKey);
          mgr.refresh();
      }
  </code></pre>