<?php global $SEARCH_SPIDER; ?>
<div id="header" class="<?php print $TEXT_DIRECTION; ?>">
<table class="header_table" width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      <table width="100%">
        <tr>
          <td><img src="<?php print $THEME_DIR;?>header.jpg" width="281" height="50" alt="" /></td>
          <td>
            <table width="100%">
              <tr>
                <td colspan="2">
                  <div class="title" style="<?php print $TEXT_DIRECTION=="rtl"?"left":"right" ?>">
                    <?php print_gedcom_title_link(TRUE); ?>
                  </div>
                </td>
		<?php if(empty($SEARCH_SPIDER)) { ?>
                <td align="<?php print $TEXT_DIRECTION=="rtl"?"left":"right" ?>" valign="middle" >
                  <form action="search.php" method="get">
                    <input type="hidden" name="action" value="general" />
                    <input type="hidden" name="topsearch" value="yes" />
                    <input type="text" name="query" accesskey="<?php print $pgv_lang["accesskey_search"]?>" size="12" value="<?php print $pgv_lang['search']?>" onfocus="if (this.value == '<?php print $pgv_lang['search']?>') this.value=''; focusHandler();" onblur="if (this.value == '') this.value='<?php print $pgv_lang['search']?>';" />
                    <input type="submit" name="search" value="&gt;" />
                  </form>
                </td>
		<?php } ?>
              </tr>
              <tr>
                <td valign="top">
                  <b>
                  <a href="<?php print $HOME_SITE_URL; ?>"><?php print $HOME_SITE_TEXT; ?></a>
                  </b>
                </td>
                <td align="center">
                  <b>
                  <?php print_user_links(); ?>
                  </b>
                </td>
		<?php if(empty($SEARCH_SPIDER)) { ?>
                <td align="<?php print $TEXT_DIRECTION=="rtl"?"left":"right" ?>" valign="top" >
                  <?php print_favorite_selector(); ?>
                </td>
		<?php } ?>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
