title: Programmatically Open Balloons in Google Earth Enterprise Client
body: <p>I have done a decent amount of work with the Google Earth plugin and its easy to open a balloon using the api and javascript.  However I can't seem to figure out how to open another placemark's balloon programmatically using KML and javascript in the Google Earth Enterprise client.</p>
  
  <p>I am rendering the placemark's balloons with html in the CDATA of the Balloon KML with two links.  The goal is that the two links will close the current balloon and open another placemark's balloon accordingly.</p>
  
  <p>Here is the html the balloon is rendering (just a table):</p>
  
  <pre><code>&lt;BalloonStyle&gt;
      &lt;bgColor&gt;ffdfdfdf&lt;/bgColor&gt;
      &lt;text&gt;
        &lt;![CDATA[
           &lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;
            &lt;b&gt;&lt;font size="+1.5"&gt;&lt;a id='prevMonth' href="#"&gt;Last Month&lt;/a&gt;&lt;center&gt;$[Month]        &lt;/center&gt;&lt;a id='nextMonth' href="#"&gt;Next Month&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;
            &lt;div id="content" align = "center"&gt;
            &lt;table border = "0" width="450"&gt;&lt;tr bgcolor = "#005497"&gt;&lt;th colspan="2"&gt;&lt;em&gt;&lt;b&gt;&lt;font color="#D9D9DB"&gt;Details&lt;/b&gt;&lt;/em&gt;&lt;/th&gt;&lt;/tr&gt;
              &lt;tr bgcolor = "#ffffff"&gt;&lt;td width="150"&gt;&lt;b&gt;County&lt;/b&gt;&lt;/td&gt;&lt;td width="300"&gt;$[Details]&lt;/td&gt;&lt;/tr&gt;
              &lt;tr bgcolor = "#ffffff"&gt;&lt;td width="150"&gt;&lt;b&gt;Segment&lt;/b&gt;&lt;/td&gt;&lt;td width="300"&gt;$[Segment]&lt;/td&gt;&lt;/tr&gt;
              ....
            &lt;/table&gt;
           &lt;/div&gt;
           &lt;/body&gt;
          &lt;/html&gt;
         ]]&gt;
     &lt;/text&gt;
  &lt;/BalloonStyle&gt;
  </code></pre>
  
  <p>I have tried setting the <code>href</code> of the <code>&lt;a&gt;</code> tags to the ids of another placemark:</p>
  
  <pre><code>&lt;a id='prevMonth' href='#differentPlacemarkID'&gt;Last Month&lt;/a&gt;
  </code></pre>
  
  <p>also tried this</p>
  
  <pre><code>&lt;script&gt; 
       function openUp(){ 
          window.open('kmzFile.kmz#differentPlacemarkID');
       }
  &lt;/script&gt;
  &lt;a onclick='openUp();'&gt;Last Month&lt;/a&gt;
  </code></pre>
  
  <p>and that centers the globe around the correct placemark but won't open the balloon.</p>
  
  <p>Any help would be greatly appreciated! Thanks!</p>