title: Convert jQuery to Prototype (small code)?
body: <p>I have a site that runs n Vivvo CMS. It is based mainly on Prototype. I would like to implement on site this function, but is jQuery based. Allthough i use jQuery.noconflict, it still doesn't run.</p>
  
  <p>I would like to convert the code below from jQuery to Prototype, can anyone help me?</p>
  
  <pre><code>$(document).ready(function(){
   $(window).scroll(function(){
    // get the height of #wrap
    var h = $('#wrap').height();
    var y = $(window).scrollTop();
    if( y &gt; (h*.25) &amp;&amp; y &lt; (h*.75) ){
     // if we are show keyboardTips
     $("#tips").fadeIn("slow");
    } else {
     $('#tips').fadeOut('slow');
    }
   });
  });
  </code></pre>
  
  <p>Thank you.</p>