title: Prototype: Covert this visibility checking script to prototype syntax?
body: <p>How do I convert this small script to Prototype:</p>
  
  <p>Basically I need to check if an element is visible or not, I do with jquery this way: <code>$('id_element').is(':visible');</code> but I dont know how to do it similar with Prototype.</p>
  
  <pre><code>&lt;div id="myDiv" style="display:none"&gt;A Div&lt;/div&gt;
  &lt;script&gt;
  if(document.getElementById('myDiv').style.display == 'none') alert('visible');
  else alert('hidden');
  &lt;/script&gt;
  </code></pre>
  
  <p>Thank you!</p>