title: Prototype focusFirstElement() causes form to 'disappear' in IE
body: <p>Strange bug I'm getting. I have a login form that is hidden by default, once a user clicks on an observed element, the element containing the form slides down (using Effect.BlidnDown in Scriptaculous)</p>
  
  <p>Here is the function, which is part of the 'Interface' object:</p>
  
  <pre><code>revealLoginForm: function() {
      $('a_login').blur();
      if (!$('hform').visible()) {
          Effect.BlindDown('hform', {
              duration: 0.4,
              afterFinish: function() {
                  $('f_login').focusFirstElement();
              }
          });
      } else {
          $('f_login').focusFirstElement();
      }
  },
  </code></pre>
  
  <p>The event observation:</p>
  
  <pre><code> Event.observe('a_login', 'click', Interface.revealLoginForm);
  </code></pre>
  
  <p>And the HTML:</p>
  
  <pre><code>&lt;a id='a_login' href='javascript:void(0);'&gt;Login to My Account&lt;/a&gt;
  ....
  &lt;div id='hform' style='display:none;'&gt;
  &lt;form id='f_login' action='...' method='post' name='sidelogin'&gt;
  &lt;table cellspacing='0' class='login'&gt;
  &lt;tr&gt;
  &lt;th&gt;Login ID:&lt;/th&gt;&lt;td&gt;&lt;input style='padding:2px;' type='text' size='18' name='enc_loginname' /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;th&gt;Password:&lt;/th&gt;&lt;td&gt;&lt;input style='padding:2px;' type='password' size='18' name='enc_password' /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;th&gt;&lt;/th&gt;&lt;td&gt;&lt;input type='submit' class='submit' value='Login &amp;raquo;' /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If I disable the  $('f_login').focusFirstElement(); command in revealLoginForm(), the form does not disappear. What's strange is, the other call to this function does not adversely affect the element, it only seems to happen when called within the afterFinish callback to the Effect.BlindDown function.</p>
  
  <p>Any ideas? It would be nice to have the first element of this form selected once the form has appeared. This works fine in Firefox.. it's just IE (Im using IE7) that's causing problems (go figure...)</p>