<div id="both">

<div class="blue">
Search results:
</div>
<div class="articles">
<br />


<div class="blue" onclick="Element.toggle('div_search_pages'); return false;"><a href="#">Pages &raquo;</a></div>
<br />

<div id="div_search_pages">
<% for page in @page_name_mark_term %>
<a href="<%= url_for(:controller => 'page', :action => 'show', :id => page) %>">
<div class="articles">
<p><%= page.name %></p>
<p><%= excerpt(page.body_html,@search_text,8) %></p>
</div>
</a>
<% end %>
</div>

<div class="blue" onclick="Element.toggle('div_search_tags'); return false;"><a href="#">Tags &raquo;</a></div>
<br />

<div id="div_search_tags">
<% for tag in @tag_name_mark_term %>
<a href="<%= url_for(:controller => 'tags', :action => 'show', :id => tag) %>">
<div class="articles">
<p><%= tag.name %></p>
<p><%= excerpt(tag.description,@search_text,8) %></p>
</div>
</a>
<% end %>
</div>

<div class="blue" onclick="Element.toggle('div_search_users'); return false;"><a href="#">Users &raquo;</a></div>
<br />

<div id="div_search_users">
<% for user in @user_name_mark_term %>
<a href="<%= url_for(:controller => 'accounts', :action => 'show', :id => user) %>">
<div class="articles">
<p><%= user.name %></p>
<p><%= user.email %></p>
<p><%= user.first_name %></p>
<p><%= user.last_name %></p>
<p><%= excerpt(user.description,@search_text,8) %></p>
</div>
</a>
<% end %>
</div>

<div class="blue" onclick="Element.toggle('div_search_files'); return false;"><a href="#">Files &raquo;</a></div>
<br />

<div id="div_search_files">
<% for file in @file_name_mark_term %>
<a href="<%= url_for(:controller => 'file', :action => 'show', :id => file) %>">
<div class="articles">
<p><%= file.name %></p>
<p><%= excerpt(file.description,@search_text,8) %></p>
<p><%= excerpt(file.file,@search_text,8) %></p>
</div>
</a>
<% end %>
</div>

<div class="blue" onclick="Element.toggle('div_search_feeds'); return false;"><a href="#">Feeds &raquo;</a></div>
<br />

<div id="div_search_feeds">
<% for feed in @feed_name_mark_term %>
<a href="<%= url_for(:controller => 'feeds', :action => 'show', :id => feed) %>">
<div class="articles">
<p><%= feed.title %></p>
<p><%= feed.url %></p>
<p><%= excerpt(feed.description,@search_text,8) %></p>
</div>
</a>
<% end %>
</div>


</div>

</div>