<h3 class='sidebar-title'>
  <label for="q"><%= @sidebar.title %></label>
</h3>
<% form_tag({:controller => 'articles',  :action => 'search'}, {:method => 'get', :id => 'sform'}) do %>
  <input type="text" id="live_search" name="q" value="" size="15" />
  <%= image_tag "spinner-blue.gif", :id => 'search_spinner', :style => 'display:none;' %>
<% end %>
<%= observe_field "live_search", :frequency => 1,
    :url => live_search_articles_url,
    :loading => "Element.show('search_spinner')",
    :complete => "Element.hide('search_spinner')",
    :update => "search-results",
    :with => "'q=' + encodeURIComponent($F('live_search'))" -%>

<div id="search-results" class="results"></div>
