title: Scrollto no working in Chrome & Opera
body: <p>In chrome &amp; opera no working function scrollto.
  In firefox working. I don't know in what a problem. Thanks for help. </p>
  
  <pre><code>function scroll_to_word(){
   var pos = $('.content .selectHighlight').position();
   $.scrollTo(".selectHighlight", 500, {offset:-50});
   }
  
  $('#search_text').bind('keyup oncnange', function() {
   $('.content').removeHighlight();
   txt = $('#search_text').val();
   if (txt == '') return;
   $('.content').highlight(txt);
   search_count = $('.content span.highlight').size() - 1;
   count_text = search_count + 1;
   search_number = 0;
   $('.content').selectHighlight(search_number);
   if ( search_count &gt;= 0 ) scroll_to_word();
   $('#count').html('Найдено: &lt;b&gt;'+count_text+'&lt;/b&gt;');
   });
  
  $('#clear_button').click(function() {
   $('.content').removeHighlight();
   $('#search_text').val('поиск по странице');
   $('#count').html('');
   });
  </code></pre>