title: Google Maps Api v3 custom InfoWindow - “google is not defined” error
body: <p>trying to create custom infowindows in my application that is based on google maps.</p>
  
  <p>problem is that whatever i use this or some other example, in forefox's firebug i'm getting error</p>
  
  <p>google is not defined
  InfoBox.prototype = new google.maps.OverlayView(); </p>
  
  <p>can you help me how to solve this, i can not continue my work without custom infowindows.....
   and i include the following script files in my page</p>
  
  
  
  <pre><code>&lt;script src="http://www.google.com/jsapi" type="text/javascript" language="javascript"&gt;&lt;/script&gt; 
  
  &lt;script type="text/javascript"&gt;
   var script = '&lt;script type="text/javascript" src="../Scripts/markerclusterer';
   var script1 = '&lt;script type="text/javascript" src="../Scripts/infobox';
   if (document.location.search.indexOf('packed') !== -1) {
       script += '_packed';
   }
   if (document.location.search.indexOf('compiled') !== -1) {
       script += '_compiled';
   }
   script += '.js"&gt;&lt;' + '/script&gt;'; script1 += '.js"&gt;&lt;' + '/script&gt;';
   document.write(script);
   document.write(script1);
  &lt;/script&gt;
  </code></pre>