<!DOCTYPE html>
<html>
  <head>
    <title> <%= @site.name %><% if @actions && !@actions.empty? %>  - <%= @actions.last.respond_to?(:name) ? @actions.last.name : @actions.last %> <% end %> </title>
    <!--[if lt IE 9]><%= javascript_include_tag 'html5shiv' %><![endif]-->
    <%= stylesheet_link_tag    'common' %>
    <%= stylesheet_link_tag    params[:controller] %>
    <%= javascript_include_tag 'application' %>    

    <%= javascript_include_tag 'common' %>
    <%= javascript_include_tag params[:controller] %>
    <%= csrf_meta_tags %>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  </head>
  <body>
    <!--TODO:首部待规范化-->
    <div id="topbar" class="topanel">
      <div id="top">
        <%= render 'entries/user' %>
        <%= render 'entries/search' %>
      </div>
    </div>
    <header id="headerbg">
      <div class="header">
        <embed src="<%= image_path('common/banner.swf') %>" quality="high" wmode="transparent" style="float:left;" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="898" height="116"></embed>
        <nav id="nav">
          <%= render "entries/navigation" %>
        </nav>
      </div>
    </header>
    <nav id="actions">
      <%= render 'entries/action' %>
    </nav>

    <div id="body">
      <%= yield %>
    </div>
    <div id="bottom">
      <a href="javascript:;" onclick="scrollTo(0,0);">回顶部</a>
    </div>
    <footer id="footer">
      <p><%= link_to 'Mycard Project', :root %></p>
    </footer>
  </body>
</html>
