<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
   <meta name="description" content="<%= @page.meta_descs if @page %>" />
   <meta name="keywords" content="<%= @page.meta_tags if @page %>" />
      <title><%= @page_title || config_value('site_title') %></title>
      <%= theme_stylesheet_link_tag 'screen', :media => 'screen'  %>
      <%= theme_stylesheet_link_tag 'print', :media => 'print'  %>
      <%= theme_stylesheet_link_tag 'handheld', :media => 'handheld'  %>
      <%= stylesheet_link_tag "overlay" %>
      <%= javascript_include_tag :defaults %>
      <%= javascript_include_tag "behaviour", "weed", "overlay" %>
      <% if @page %>
      <script type="text/javascript">
      <%= @page.behaviour %>
      </script>
      <% end %>
      <%= auto_discovery_link_tag(:rss, {:controller => "admin/feeds", :action => "rss"}) %>
      <%= auto_discovery_link_tag(:atom, {:controller => "admin/feeds", :action => "atom"}) %>
   </head>
   <body>
   
   <div id="container">
<div id="logo">
	<%= theme_image_tag("logo.gif", :size => '180x88') %>
</div>
<div id="top">
<%= theme_image_tag("top.gif", :size => '493x') %>
</div>
<div id="sidebar">
	
	<h2>Feeds</h2>
	<p>
	<ul>
	<li><a href="<%= url_for :controller => 'admin/feeds', :action => 'rss' %>"><%= theme_image_tag('feed-icon', :border => 0) %> RSS</a></li>
	<li><a href="<%= url_for :controller => 'admin/feeds', :action => 'atom' %>"><%= theme_image_tag('feed-icon', :border => 0) %> Atom</a></li>
	</ul>
	</p>

	<% if session[:user_id] %>
	<h2>Admin</h2>
	<p>
	<ul id="admin">
	<li><%= link_to_remote('Overlay', { :update => "boxcontent", :loading => "showLoader()", :complete => "showBox()", :url => {:controller => 'admin/page', :action => 'overlay', :id => @page.id } }, { :href => url_for(:action => 'show', :id => @page.id ) } ) if @page %></li>
	<li><%= link_to_remote('Overlay', { :update => "boxcontent", :loading => "showLoader()", :complete => "showBox()", :url => {:controller => 'admin/tags', :action => 'overlay', :id => @tag.id } }, { :href => url_for(:action => 'show', :id => @tag.id ) } ) if @tag %></li>
	<li><%= link_to("Edit this", :controller => "admin/page", :action => "fedit", :id => @page.id) if @page %></li>
	<li><%= link_to("Admin", :controller => "admin") %></li>
	<li><%= link_to("Logout", :controller => "admin/login", :action => "logout") %></li>
	</ul>
	</p>
	<% end %>
	
	<h2>Tags</h2>
		<p>
		<%= render_component :action => "tags" %>
	</p>

</div>
<div id="body">
<%= @content_for_layout %>
</div>

<div id="menu" title="Navigation">
<%= render_component :action => "menu" %>
</div>

</div>
</html>
</body>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 	 
