<!-- Start of header.thtml -->
    <div id="gl_container">
        <div id="gl_header">
            <div class="header-flag-n-search">
<?php global $_USER; if (isset($_USER['uid']) && $_USER['uid'] > 1) { ?>
                        <a href="{site_url}/usersettings.php?mode=edit">
                            <img src="{layout_url}/images/myaccount.png" alt="{lang_myaccount}" title="{lang_myaccount}"{xhtml}></a>                        <a href="{site_url}/users.php?mode=logout">
                            <img src="{layout_url}/images/logout.png" alt="{lang_logout}" title="{lang_logout}"{xhtml}></a>&nbsp;
<?php } else { ?>
                        <a href="{site_url}/users.php?mode=new">
                            <img src="{layout_url}/images/newuser.png" alt="{lang_newuser}" title="{lang_newuser}"{xhtml}></a>                        <a href="{site_url}/users.php?mode=login">
                            <img src="{layout_url}/images/login.png" alt="{lang_login}" title="{lang_login}"{xhtml}></a>&nbsp;
<?php } ?>
                <form method="get" action="{site_url}/search.php">
                    <div>
                        <input id="header-textbox" type="text" name="query" maxlength="255" value="Search" title="Search" onfocus="if (this.value=='Search')this.value='';" onblur="if(this.value=='')this.value='Search';"{xhtml}><input type="hidden" name="type" value="all"><input type="hidden" name="mode" value="search"{xhtml}>
                    </div>
                </form>
            </div> <!-- end of header-flag-n-search  -->
            {logo_block}
        </div> <!-- end of gl_header -->

        <div id="gl_menu">
            <ul>
                {menu_elements}
            </ul>
        </div> <!-- end of gl_menu -->

        <div id="gl_wrapper">
            <div id="{gl_content}">
                <div class="welcomeanddate-text">
                    <span class="gl_user-menu">
<?php global $_USER; if (isset($_USER['uid']) && $_USER['uid'] > 1) { ?>
                        <a href="{site_url}/users.php?mode=logout">{lang_logout}</a><br{xhtml}>
                        <a href="{site_url}/usersettings.php?mode=edit">{lang_myaccount}</a>
<?php } else { ?>
                        <a href="{site_url}/users.php?mode=login">{lang_login}</a><br{xhtml}>
                        <a href="{site_url}/users.php?mode=new">{lang_newuser}</a>
<?php } ?>
                    </span>
                    <p>
                        <a href="{site_url}">{welcome_msg_jp}</a><br{xhtml}>
                        {datetime}
                    </p>
                </div>
<!-- START OF CONTENT AREA -->
                <a name="content-start" id="content-start"></a><!--for screenreaders -->
                {content}
<!-- End of header.thtml -->