-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<title>::title_html::</title>
-::if(is_old_version)::<meta name="robots" content="noindex,nofollow"/>::end::
-<meta name="description" content="::description_html_tag::" />
-<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
-::if(has_host_css)::<link rel="stylesheet" href="/_global.css" type="text/css" title="Standard"/>::end::
-::if(has_page_css)::<link rel="stylesheet" href="/::page_html_tag::/styles.css::if(is_old_version)::?version=::old_version::::end::" type="text/css" title="Standard"/>::end::
-</head><body>
-
-<h1>::title_html::</h1>
-
-::if(redirected)::
-<p id="redirected"><em>(Redirected from <a href="/::original_page_html_tag::?no_redirect=1">::original_page_html::</a>)</em></p>
-::end::
-
-::if(is_old_version)::
-<div id="old_version">
-<p>You are seeing an old version of this page.</p>
+::if(navigation)::<div id="navigation_space_div"></div>::end::::if(redirected)::<p id="redirected"><em>(Redirected from <a href="/::original_page_html_tag::?no_redirect=1">::original_page_html::</a>)</em></p>::end::::if(is_old_version)::<div id="old_version"><p>You are seeing an old version of this page.</p>
<ul>
<li> Go to the <a href="/::page_html_tag::">live version</a> of this page.</li>
<li> See other <a href="/::page_html_tag::/history">old versions</a> of this page.</li>
<li> <a href="/_bin/restore_form.cmo?page=::page_url::&version=::old_version::">Restore</a> this version live.</li>
::end::
</ul>
-</div>
-::end::
-
-::table(sections)::
-::if(has_divname)::<div id="::divname_html_tag::">::end::::if(can_edit)::<p class="edit_link">[<a href="/::page_html_tag::/edit#::ordering::" title="Edit this section">edit</a>]</p>::end::<a name="::sectionname_html_tag::"></a><h2>::sectionname_html::</h2>
+</div>::end::<div id="content_div">
+::table(sections)::::if(has_div)::<div::if(has_divname):: id="::divname_html_tag::"::end::::if(has_divclass):: class="::divclass_html_tag::"::end::::if(has_jsgo):: onclick="go('/::jsgo_html_tag::')"::end::>::end::::if(can_edit)::<p class="edit_link">[<a href="/::page_html_tag::/edit#::ordering::" title="Edit this section">edit</a>]</p>::end::::if(has_sectionname)::<a name="::linkname_html_tag::"></a><h2><span>::sectionname_html::</span></h2>::end::
::content::
-::if(has_divname)::</div>::end::::end::
+::if(has_div)::</div>::end::::end::
+</div>
<ul id="topmenu" class="menu">
::if(can_edit)::
-<li class="first"> <a href="/::page_html_tag::/edit"><strong>Edit this page</strong></a> </li>
+<li class="first edit_li"> <a href="/::page_html_tag::/edit"><strong>Edit this page</strong></a> </li>
::end::
-<li ::if(can_edit)::::else::class="first"::end::> <a href="/">Home page</a> </li>
-<li> <a href="/_sitemap">Sitemap</a> </li>
+<li class="::if(can_edit)::::else::first ::end::home_li"> <a href="/">Home page</a> </li>
+<li class="sitemap_li"> <a href="/_sitemap">Sitemap</a> </li>
::if(can_edit)::
-<li> <a href="/_recent">Recent changes</a> </li>
-<li> <a href="/::page_html_tag::/history">Versions of this page</a> </li>
+<li class="recent_li"> <a href="/_recent">Recent changes</a> </li>
+<li class="versions_li"> <a href="/::page_html_tag::/history">Versions of this page</a> </li>
::end::
</ul>
+<div id="menu_div">
<ul id="bottommenu" class="menu">
-<li class="first"> <a href="/">Home page</a> </li>
-::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+<li id="index_li" class="first"> ::if(is_homepage)::::else::<a href="/">::end::<span>Home page</span>::if(is_homepage)::::else::</a>::end:: </li>
+::table(sitemenu)::<li id="::id::_li"> ::if(is_linked)::<a href="/::url_html_tag::">::end::<span>::label_html::</span>::if(is_linked)::</a>::end:: </li>
::end::
-<li> <a href="/_sitemap">Sitemap</a> </li>
+<li id="sitemap_li"> <a href="/_sitemap"><span>Sitemap</span></a> </li>
</ul>
<ul id="editmenu" class="menu">
-<li class="first"> ::if(user_logged_in):: ::username_html:: <a href="/_logout">(logout)</a> ::else:: <a href="/_login">Create account or log in</a> ::end:: </li>
+
+<li class="first login_li"> ::if(user_logged_in):: ::username_html:: (<a href="/_userprefs">prefs</a>, <a href="/_logout">logout</a>) ::else:: <a href="/_login">::if(create_account_anon)::Create account or log in::else::Site administration::end::</a> ::end:: </li>
+
::if(can_edit)::
-<li> <a href="/::page_html_tag::/edit"><strong>Edit this page</strong></a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
-<li> <a href="/::page_html_tag::/history">Versions of this page</a> </li>
-<li> <a href="/_images">Images</a> </li>
-<li> <a href="/_files">Files</a> </li>
-<li> <a href="/::page_html_tag::/editcss">Edit stylesheet for this page</a> </li>
-<li> <a href="/_bin/edit_sitemenu.cmo">Edit site menu</a> </li>
+<li class="edit_li"> <a href="/::page_html_tag::/edit"><strong>Edit this page</strong></a> </li>
+<li class="recent_li"> <a href="/_recent">Recent changes</a> </li>
+<li class="versions_li"> <a href="/::page_html_tag::/history">Versions of this page</a> </li>
+<li class="wlh_li"> <a href="/_bin/what_links_here.cmo?page=::page_url::">What links here?</a> </li>
+<li class="stylesheet_li"> <a href="/::page_html_tag::/editcss">Edit stylesheet</a> </li>
+<li class="rename_li"> <a href="/::page_html_tag::/rename">Rename page</a> </li>
+<li class="new_li"> <a href="/_bin/new_page_form.cmo">New page</a> </li>
+<li class="images_li"> <a href="/_images">Images</a> </li>
+<li class="files_li"> <a href="/_files">Files</a> </li>
+::if(has_stats)::
+<li class="stats_li"> <a href="/::page_html_tag::/stats">Stats</a> </li>
+::end::
::end::
+
+<li class="maillist_li"> <a href="/_bin/page_email_form.cmo?page=::page_url::">Send email if this page changes</a> </li>
+
+::if(mailing_list)::
+<li class="maillist_li"> <a href="/_bin/mailing_list_form.cmo">Join our mailing list</a> </li>
+::end::
+
::if(can_manage_users)::
-<li> <a href="/_users">Manage users</a> </li>
+<li class="invite_li"> <a href="/_bin/invite_user_form.cmo">Invite someone to join</a> </li>
::end::
+
::if(can_edit)::
-<li> <a href="/_bin/admin/admin.cmo">Server administration</a> </li>
+<li> <a href="/_bin/host_menu.cmo">Sitewide settings</a> </li>
::end::
+
</ul>
+</div>
+::if(navigation)::
+<div id="navigation_div">
+<h2>Navigation</h2>
+::if(has_what_links_here)::
+<h3><a href="/_bin/what_links_here.cmo?page=::page_url::">What links here</a></h3>
+<ul>
+::table(what_links_here)::<li><a href="/::page::">::title_html::</a></li>::end::
+</ul>
+::end::
+::if(user_logged_in)::
+::if(has_recently_visited)::
+<h3><a href="/_bin/recently_visited.cmo">Recently visited</a></h3>
+<ul>
+::table(recently_visited)::<li><a href="/::page::">::title_html::</a></li>::end::
+</ul>
+::end::
+::end::
+</div>
+::end::
+
+::if(search_box)::
+<form method="get" action="/_search">
+<div id="search_div">
+<input name="q" value=""/><input type="submit" value="Search"/>
+</div>
+</form>
+::end::
+
+::if(branding)::
+<div id="branding_div">
+<h2>::if(is_homepage)::::else::<a href="/">::end::<span>::brand_html::</span>::if(is_homepage)::::else::</a>::end::</h2>
+::if(has_brand_tagline)::<p id="brand_tagline">::if(is_homepage)::::else::<a href="/">::end::<span>::brand_tagline_html::</span>::if(is_homepage)::::else::</a>::end::</p>::end::
+::if(has_brand_description)::<p id="brand_description">::brand_description_html::</p>::end::
+</div>
+::end::
+
+::if(has_pagebug)::::pagebug::::end::
+
+<div id="footer_div">
<hr/>
<ul id="footer" class="menu">
<li class="first"> Last change: ::last_modified_date_html:: </li>
-<li> <a href="/copyright">Copyright © 2004</a> </li>
-<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
+<li> <a href="/copyright">Copyright © ::year::</a> </li>
+::if(has_feedback_email)::
+<li> <a href="/_bin/send_feedback_form.cmo?page=::page_url::">Send feedback</a> </li>
+::end::
+<li> Powered by <a href="::powered_by_url_html_tag::">::powered_by_name_html::</a> </li>
</ul>
+</div>
</body>
</html>
\ No newline at end of file