title: 'Object Expected' Javascript error in IE8 when using prototype.js
body: <pre><code>function icPageInit()
  {
      $("icImgDiv" + icAlternate()).setOpacity(0);
      return true;
  }
  window.onload = icPageInit;
  </code></pre>
  
  <p>This piece of Javascript code works fine in Firefox and Chrome, but fails with the error 'Object Expected' in Internet Explorer 8. IE8 says the error occurs on line 3 of the above code.</p>
  
  <p>Does anyone know why this is happening, and/or how to get it working?</p>