%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: perso.txt, Template f v 6.06d 2012/11/29 16:00:00 ddr/dd Exp $ -->
  <!-- copyright (c) 1998-2012 INRIA -->
  <title>%nn;
    %if;has_public_name;
      %if;has_qualifiers;%public_name; %qualifier;
      %else;%public_name; %surname;%end;
    %else;
      %if;has_qualifiers;%first_name; %qualifier;
      %else;%first_name; %surname;%end;
    %end;
  </title>
  <meta name="robots" content="none"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <meta http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png"%/>
%include.css;
  <style type="text/css"><!--
  --></style>
%base_header;
</head>

%define;include_file(file)
  %include.file;
%end;

%define;image_sosa(xxx,yyy)
  <img src="%image_prefix;/sosa.png" width="10" height="10"%sp;
    style="border: none" alt=""%sp;
    title="%if;(yyy=1)%else;[direct ancestor of %s:::xxx], %end;[*Sosa] yyy"%/>%nn;
%end;

%define;display_sosa(xx)
  %if;(bvar.display_sosa="" or bvar.display_sosa="yes")
    %if;xx.has_sosa;
      %if;not cancel_links;<a href="%prefix;%xx.sosa_link;">%end;
      %apply;image_sosa%with;%sosa_ref.first_name_key_strip;%sp;
                             %sosa_ref.surname_key_strip;
                        %and;%xx.sosa;%end;
      %if;not cancel_links;</a>%end;%sp;
    %end;
  %end;
%end;

%define;image_MF(xx,wi_he)
  %if;(wizard and not cancel_links and not xx.is_restricted)
    <a href="%prefix;m=MOD_IND;i=%xx.index;">%end;
  %if;xx.is_male;
    <img src="%image_prefix;/male.png" title="[M/F]0"%sp;
  %elseif;xx.is_female;
    <img src="%image_prefix;/female.png" title="[M/F]1"%sp;
  %else;
    <img src="%image_prefix;/sexunknown.png" title="?"%sp;
  %end;
         width="wi_he" height="wi_he" style="border: none" alt=""%/>%nn;
  %if;(wizard and not cancel_links and not xx.is_restricted)</a>%end;
  %sp;
%end;

%define;li_SD(xx)
  <li class="%if;xx.has_parents;goway%else;noway%end;">%nn;
%end;

%define;li_SDC(xx)
  %if;xx.has_families;
    %reset_count;
    %foreach;family;
      %if;(nb_children>0)%incr_count;%end;
    %end;
  %end;
  <li class="%if;xx.has_families;%if;(count!=0)desc%else;nodesc%end;%else;nospou%end;">%nn;
%end;

%define;display_arrows()
  %if;not cancel_links;
    <table style="float: %right;" border="%border;"><tr><td>
      %if;has_referer;
        <a href="%referer;"><img style="border-width: thin" alt="" title="&lt;&lt;"%sp;%nn;
          src="%image_prefix;/left.png"%wid_hei;left.png;%/></a>
      %end;
      <a href="%prefix;"><img style="border-width: thin" alt="" title="^^"%sp;
        src="%image_prefix;/up.png"%wid_hei;up.png;%/></a>
      <a href="%url;cgl=on" target="_blank"><img style="border-width: thin"%sp;
        src="%image_prefix;/right.png"%wid_hei;right.png; alt="" title="[cancel GeneWeb links]"%/></a>
    </td></tr></table>
  %end;
%end;

%define;tothegen(xx)
  [to the %s generation:::xx]%nn;
%end;

%define;togena(xx)
  %if;(xx = 1)[specify::generation/generations]0%nn;
  %elseif;(xx = 2)[to the parents]%nn;
  %elseif;(xx = 3)[to the grandparents]%nn;
  %elseif;(xx = 4)[to the great-grandparents]%nn;
  %else;
    %apply;tothegen%with;
      %apply;nth([nth (generation)], xx)
    %end;
  %end;
%end;

%define;togend(xx)
  %if;(xx = 0)[specify::generation/generations]0%nn;
  %elseif;(xx = 1)[to the children]%nn;
  %elseif;(xx = 2)[to the grandchildren]%nn;
  %elseif;(xx = 3)[to the great-grandchildren]%nn;
  %else;
    %apply;tothegen%with;
      %apply;nth([nth (generation)], xx)
    %end;
  %end;
%end;

%define;short_display_person(xx)
  %apply;display_sosa("xx")
  %if;(xx.index=central_index)<b>%xx;</b>%else;
    %if;(cancel_links or xx.is_restricted)%xx;
    %else;<a href="%prefix;%xx.access;">%xx;</a>%end;
  %end;%sp;
  %xx.title;%xx.dates;%if;xx.birthday; ([happy birthday to you!])%end;
%end;

%define;age_at_birth_of(xxx)
  [age at %s birth date:::xxx]%sp;
%end;

%define;display_vertical(xx)
  %if;(xx.has_birth_date or xx.has_birth_place or
       xx.has_baptism_date or xx.has_baptism_place or xx.is_dead or xx.is_buried or
       xx.is_cremated or (xx.has_consanguinity and bvar.show_consang!="no") or
       xx.has_occupation or xx.has_linked_page.OCCU !="")
    <ul>
      %if;(xx.index!=central_index)
        <li>
          %apply;image_MF("xx","13")
          %apply;display_sosa("xx")
          %if;(cancel_links or xx.is_restricted)%xx;
          %else;<a href="%prefix;%xx.access;">%xx;</a>%end;%sp;
        </li>%nl;
        %if;xx.has_nobility_titles;
          %foreach;xx.nobility_title;
            <li>%apply;capitalize(nobility_title)</li>%nl;
          %end;
        %end;
      %end;
      %if;xx.has_birth_date;
        <li>%apply;capitalize(nth([born],xx.sex)) %xx.on_birth_date;
        %if;xx.birthday; ([happy birthday to you!])%end;
        %if;xx.has_birth_place; - %xx.birth_place;%end;</li>%nl;
      %else;
        %if;xx.has_birth_place;
          <li>%apply;capitalize(nth([born],xx.sex)) - %xx.birth_place;</li>%nl;
        %end;
      %end;
      %if;xx.has_baptism_date;
        <li>%apply;capitalize(nth([baptized],xx.sex)) %xx.on_baptism_date;
        %if;xx.has_baptism_place; - %xx.baptism_place;%end;</li>%nl;
      %else;
        %if;xx.has_baptism_place;
          <li>%apply;capitalize(nth([baptized],xx.sex)) - %xx.baptism_place;</li>%nl;
        %end;
      %end;
      %if;xx.computable_age;
        <li>[*age] : %xx.age;</li>%nl;
      %end;
      %if;xx.is_dead;
        <li>%apply;capitalize(xx.died)
        %if;xx.has_death_date; %xx.on_death_date;%end;
        %if;xx.has_death_place; - %xx.death_place;%end;
        %if;(xx.has_linked_page.DEATH !="") %xx.linked_page.DEATH;%end;
        %if;xx.computable_death_age;, [age at death:] %xx.death_age;%end;</li>%nl;
        %if;xx.is_buried;
          <li>%apply;capitalize(nth([buried],xx.sex))
          %if;xx.has_burial_date; %xx.on_burial_date;%end;
          %if;xx.has_burial_place; - %xx.burial_place;%end;</li>%nl;
        %end;
        %if;xx.is_cremated;
          <li>%apply;capitalize(nth([cremated],xx.sex))
          %if;xx.has_cremation_date; %xx.on_cremation_date;%end;
          %if;xx.has_cremation_place; - %xx.cremation_place;%end;</li>%nl;
        %end;
      %end;
      %if;xx.has_occupation;
        <li>%apply;capitalize(xx.occupation)</li>%nl;
      %end;
      %if;(xx.has_linked_page.OCCU)
        <li>%apply;capitalize(xx.linked_page.OCCU)</li>%nl;
      %end;
      %if;(xx.has_consanguinity and bvar.show_consang!="no")
        <li>[*consanguinity] : %xx.consanguinity;</li>%nl;
      %end;
    </ul>
  %else;&nbsp;%end;
%end;

%define;display_horizontal(xx)
  %if;(xx.index!=central_index)
    %apply;display_sosa("xx")
    %if;(cancel_links or xx.is_restricted)%xx;
    %else;<a href="%prefix;%xx.access;">%xx;</a>%end;%sp;
    %if;xx.has_nobility_titles;
      %foreach;xx.nobility_title;, %nobility_title;%end;
    %end;
  %end;
  <span style="font-size: 90%%">%nn;
    %if;has_parents;
      %if;(xx.index=father.index or xx.index=mother.index)
        %if;(has_birth_date and xx.has_birth_date)%sp;
          (<acronym title="%apply;age_at_birth_of(central_person)">%xx_age_at_birth</acronym>)%end;
      %end;
    %end;
    %if;xx.has_birth_date;, %apply;nth([born],xx.sex) %xx.on_birth_date;
      %if;xx.birthday; ([happy birthday to you!])%end;
      %if;xx.has_birth_place; - %xx.birth_place;%end;
    %else;
      %if;xx.has_birth_place;, %apply;nth([born],xx.sex) - %xx.birth_place;%end;
    %end;
    %if;xx.has_baptism_date;, %apply;nth([baptized],xx.sex) %xx.on_baptism_date;
      %if;xx.has_baptism_place; - %xx.baptism_place;%end;
    %else;
      %if;xx.has_baptism_place;, %apply;nth([baptized],xx.sex) - %xx.baptism_place;%end;
    %end;
    %if;xx.computable_age;, [age] : %xx.age; %end;
    %if;xx.is_dead;, %xx.died;
      %if;xx.has_death_date; %xx.on_death_date;%end;
      %if;xx.has_death_place; - %xx.death_place;%end;
      %if;xx.computable_death_age; [age at death:] %xx.death_age;%end;
      %if;xx.is_buried; , %apply;nth([buried],xx.sex)%sp;
        %if;xx.has_burial_date; %xx.on_burial_date;%end;
        %if;xx.has_burial_place; - %xx.burial_place;%end;
      %end;
      %if;xx.is_cremated; , %apply;nth([cremated],xx.sex)%sp;
        %if;xx.has_cremation_date; %xx.on_cremation_date;%end;
        %if;xx.has_cremation_place; - %xx.cremation_place;%end;
      %end;
    %end;
    %if;xx.has_occupation;, %apply;capitalize(xx.occupation)%end;
    %if;(xx.has_consanguinity and bvar.show_consang!="no"),%sp;
      [consanguinity] : %xx.consanguinity;%end;
  </span>
%end;

%define;married_to(masc, date_place)
  %if;masc;
    %if;are_married;[*married%t to:::date_place]0%nn;
    %elseif;are_not_married;[*relationship%t to:::date_place]0%nn;
    %elseif;are_engaged;[*engaged%t to:::date_place]0%nn;
    %elseif;is_no_sexes_check;[*relationship%t to:::date_place]0%nn;
    %elseif;is_no_mention;date_place [*with]%nn;
    %end;
  %else;
    %if;are_married;[*married%t to:::date_place]1%nn;
    %elseif;are_not_married;[*relationship%t to:::date_place]1%nn;
    %elseif;are_engaged;[*engaged%t to:::date_place]1%nn;
    %elseif;is_no_sexes_check;[*relationship%t to:::date_place]1%nn;
    %elseif;is_no_mention;date_place [*with]%nn;
    %end;
  %end;
%end;

%define;long_married(xx)
  %apply;married_to%with;%xx.is_male%and;
    %if;(marriage_place="")
      %if;(on_marriage_date="")
      %else; <em>%on_marriage_date;
        %if;wedding_birthday; ([happy birthday to them!])%end;
        </em>%end;
    %else;
      %if;(on_marriage_date="")<em>, %marriage_place;, </em>
      %else; <em>%on_marriage_date;
        %if;wedding_birthday; ([happy birthday to them!])%end;
        , %marriage_place, </em>%end;
    %end;
  %end;
%end;

%define;display_date_marriage_parent(xx)
  %foreach;xx.mother.family;
    %if;(spouse.access=xx.father.access)
      %if;(marriage_date.year!="")<em>-&nbsp;%marriage_date.prec;
        %marriage_date.year;&nbsp;-</em>%else;&nbsp;%end;
    %end;
  %end;
%end;

%define;witness_relation(xxx,yyy)
  [*witness at marriage of %s and %s:::xxx:yyy]
%end;

%define;display_sibling()
  %apply;li_SDC("child")
    %if;(child.has_image and child.index!=central_index)
      <table>
        <tr>
          <td style="vertical-align: middle">
            <a href="%child.image_html_url;"><img src="%child.image_url;"%sp;
              %child.image_small_size; style="border: none" alt="" title="[image/images]0"%/></a>
          </td>
          <td style="vertical-align: middle">
    %end;
    %apply;image_MF("child","13")
    %apply;short_display_person("child")
    %if;child.has_families;
      %foreach;child.family;
        %if;(family_cnt!=1)
          <br%/><img src="%image_prefix;/1pixel.png" width="13" height="13" alt="" title=""%/>
          <em>%child;%child.title;%child.dates;</em>
        %end;
        <em> %apply;long_married("child")</em>
        %apply;image_MF("spouse","13")
        %apply;short_display_person("spouse")
      %end;
    %end;
    %if;(child.has_image and child.index!=central_index)
          </td>
        </tr>
      </table>
    %end;
  </li>
%end;

%define;list_half_siblings()
  <ul>
    %apply;li_SD("spouse")
      %if;spouse.has_image;
        <table border="%border;">
          <tr>
            <td style="vertical-align: middle">
              [with]
              %apply;image_MF("spouse","13")
              %apply;short_display_person("spouse")
            </td>
            <td style="vertical-align: middle">
              <a href="%spouse.image_html_url;"><img src="%spouse.image_url;"%sp;
                %spouse.image_small_size; style="border: none" alt="" title="[image/images]0"%/></a>
            </td>
          </tr>
        </table>
      %else;
        [with]
        %apply;image_MF("spouse","13")
        %apply;short_display_person("spouse")
      %end;
      %if;has_children;
        <ul>
          %foreach;child;
            %apply;display_sibling()
          %end;
        </ul>
      %end;
    </li>
  </ul>
%end;

%define;display_shared_parent(xxx)
  [*on %s's side:::xxx]
%end;

%define;nav_with_sosa_ref(xxx)
  [*navigation with %t as Sosa reference:::xxx]%nn;
%end;

<body%body_prop;>
%let;central_index;%index;%in;
%let;central_person;%first_name_key_strip;%sp;%surname_key_strip;%in;
%message_to_wizard;

<div style="float: %left;">
  %apply;image_MF("self","13")
</div>

%apply;display_arrows()

<h1 class="highlight" style="text-align: center">
  %if;has_public_name;
    %if;has_qualifiers;%public_name; <em>%qualifier;</em>
    %else;%public_name; %surname;%end;
  %else;
    %if;has_qualifiers;%first_name; <em>%qualifier;</em>
    %else;
      %if;cancel_links;%first_name; %surname;
      %else;
        <a href="%prefix;m=P;v=%first_name_key;">%first_name;</a>
        <a href="%prefix;m=N;v=%surname_key;">%surname;</a>
      %end;
    %end;
  %end;
</h1>

%if;(has_sosa or has_qualifiers or has_aliases or has_nobility_titles or
     has_public_name or has_surnames_aliases or has_first_names_aliases or
     has_linked_page.HEAD)
  <table style="width: 100%%" border="%border;" cellspacing="0" cellpadding="0">
    <tr>
      <td style="text-align: center">
        %if;has_sosa;
          %apply;display_sosa("self")
          <em>[*Sosa] :
          %if;cancel_links;%sosa;
          %else;<a href="%prefix;%sosa_link;">%sosa;</a>%end;
          </em><br%/>
        %end;
        %foreach;qualifier;
          %if;not is_first;
            %if;has_public_name;%public_name; %qualifier;
            %else;%first_name; %qualifier;%end;<br%/>
          %end;
        %end;
        %foreach;alias;
          <em><strong>%alias;</strong></em><br%/>
        %end;
        %if;has_nobility_titles;
          <em>
          %foreach;nobility_title;
            %if;not is_first;,
            %end;
            %nobility_title;
          %end;
          </em><br%/>
        %end;
        %if;has_linked_page.HEAD;%linked_page.HEAD;<br%/>%end;
        %if;(has_public_name or has_qualifiers)
           <em>(%if;cancel_links;%first_name; %surname;
               %else;
                 <a href="%prefix;m=P;v=%first_name_key;">%first_name;</a>
                 <a href="%prefix;m=N;v=%surname_key;">%surname;</a>%nn;
               %end;)</em><br%/>
        %end;
        %foreach;surname_alias;
          <em>(%first_name; %surname_alias;)</em><br%/>
        %end;
        %foreach;first_name_alias;
          <em>(%first_name_alias; %surname;)</em><br%/>
        %end;
      </td>
    </tr>
  </table>
  <p></p>
%end;

%if;has_image;
  <table border="%border;"><tr><td><a
    href="%image_html_url;"><img src="%image_url;"
          %image_size; style="border: none"
          alt="" title="[image/images]0"%/></a></td><td>
%end;

%apply;display_vertical("self")

%if;has_image;</td></tr></table>%end;

%if;has_parents;
  %if;(father.has_image or mother.has_image)
    <div id="parents" style="text-align: center">
      <table border="%border;" width="90%%">
        <tr>
          <td style="text-align: %right;;vertical-align: middle">
            %if;father.has_image;
              <a href="%father.image_html_url;"><img %father.image_small_size;%sp;
                 src="%father.image_url;" style="border: none" alt="" title="[image/images]0"%/></a>
            %else;&nbsp;%end;
          </td>
          <td style="text-align: center;vertical-align: top">
            <h3 class="highlight">[*parents]</h3>
            %if;(has_birth_date and (father.has_birth_date or mother.has_birth_date))
              <table border="%border;">
                <tr>
                  <td colspan="3" style="text-align: center">%apply;age_at_birth_of(central_person)</td>
                </tr>
                <tr>
                  <td style="text-align: %right;" width="50%%">%nn;
                    %if;father.has_birth_date;%father_age_at_birth;&nbsp;%else;&nbsp;%end;</td>
                  <td style="text-align: center">|</td>
                  <td style="text-align: %left;" width="50%%">%nn;
                    %if;mother.has_birth_date;&nbsp;%mother_age_at_birth;%else;&nbsp;%end;</td>
                </tr>
              </table>
            %end;
          </td>
          <td style="text-align: %left;;vertical-align: middle">
            %if;mother.has_image;
              <a href="%mother.image_html_url;"><img %mother.image_small_size;%sp;
                 src="%mother.image_url;" style="border: none" alt="" title="[image/images]0"%/></a>
            %else;&nbsp;%end;
          </td>
        </tr>
        <tr>
          <td style="text-align: %left;;vertical-align: top">
            %apply;display_vertical("father")
          </td>
          <td>
            %foreach;father.family;
              %if;(spouse.access=mother.access)
                %apply;long_married("father")
                %if;are_divorced;<br%/>[divorced]0%divorce_date;%end;
                %if;are_separated;<br%/>[separated]0%end;
              %end;
            %end;
          </td>
          <td style="text-align: %left;;vertical-align: top">
            %apply;display_vertical("mother")
          </td>
        </tr>
      </table>
    </div>
  %else;
    <h3 id="parents" class="highlight">[*parents]</h3>
    <ul>
      %apply;li_SD("father")
        %apply;image_MF("father","13")
        %apply;display_horizontal("father")
        <br%/>
        %foreach;father.family;
          %if;(spouse.access=mother.access)<em style="font-size: 90%%">%nn;
            %apply;long_married("father")</em>
          %end;
        %end;
      </li>
      %apply;li_SD("mother")
        %apply;image_MF("mother","13")
        %apply;display_horizontal("mother")
        %foreach;father.family;
          %if;(spouse.access=mother.access)
            %if(are_divorced or are_separated)
              <br%/>
              <em style="font-size: 90%%">%nn;
              %if;are_divorced;[divorced]0%divorce_date;%end;
              %if;are_separated;[separated]0%end;</em>
            %end;
          %end;
        %end;
      </li>
    </ul>
  %end;
%end;

%if;has_families;
  <h3 id="families" class="highlight">[*marriage/marriages]1%sp;
   %if;(max_desc_level>0)
     [and::child/children]1%end;
   %if;(max_desc_level>1)
     <span style="font-size: 90%%">, [the grandchildren]</span>%end;
   %if;(max_desc_level>2)
     <span style="font-size: 80%%">, [the great-grandchildren]</span>%end;
  </h3>
  <ul>
    %foreach;family;
      %apply;li_SD("spouse")
        %if;spouse.has_image;
          <table border="%border;">
            <tr>
              <td style="vertical-align: middle">
                 <a href="%spouse.image_html_url;"><img %spouse.image_small_size;%sp;
                    src="%spouse.image_url;" style="border: none"%sp;
                    alt="" title="[image/images]0"%/></a>
              </td>
              <td style="vertical-align: middle">
        %end;
        %apply;long_married("self")%sp;
        %apply;image_MF("spouse","13")
        %apply;display_horizontal("spouse")
        <span style="font-size: 90%%">%nn;
          %if;spouse.has_parents;<em> ([parents] :
            %apply;image_MF("spouse.father","13")
            %apply;short_display_person("spouse.father")
            &nbsp;&amp;&nbsp;
            %apply;image_MF("spouse.mother","13")
            %apply;short_display_person("spouse.mother"))</em>
          %end;
        </span>
        %if;has_witnesses;
          ([witness/witnesses]w :
          %foreach;witness;
            %if;not is_first;, %end;
            %apply;image_MF("witness","13")
            %apply;short_display_person("witness")%nl;
          %end;
        )%end;
        %nl;
        %if;((wizard or friend or 
              bvar.no_note_for_visitor="" or bvar.no_note_for_visitor="no") and
              has_comment) (%comment;)%end;
        %if;are_divorced;, [divorced]0%divorce_date;%end;
        %if;are_separated;, [separated]0%end;
        %if;spouse.has_image;
              </td>
            </tr>
          </table>
        %end;
        %if;has_children;
          %nl;
          , [having as children]0
          <ul>
            %foreach;child;
              %apply;li_SDC("child")
                %if;child.has_image;
                  <table border="%border;">
                    <tr>
                      <td style="vertical-align: middle">
                        <a href="%child.image_html_url;"><img %child.image_small_size;%sp;
                          src="%child.image_url;" style="border: none"%sp;
                          alt="" title="[image/images]0"%/></a>
                      </td>
                      <td style="vertical-align: middle">
                %end;
                %apply;image_MF("child","13")
                %apply;short_display_person("child")
                %if;child.has_families;
                  %foreach;child.family;
                    %if;(family_cnt!=1)
                      <img width="13" height="13"%sp;
                        src="%image_prefix;/1pixel.png"  alt="" title=""%/>%sp;
                      <em>%child;%child.title;%child.dates;</em>%end;
                    <em>&nbsp;%apply;long_married("child")</em>
                    %apply;image_MF("spouse","13")
                    %apply;short_display_person("spouse")
                    %if;are_divorced; [divorced]0%divorce_date;%end;
                    %if;are_separated; [separated]0%end;
                    %if;(nb_children!=0)
                      &nbsp;[having as children]0
                      %if;(child.has_image and family_cnt=1)</td></tr></table>%end;%nl;
                      <div style="font-size: 90%%">
                        <ul>
                          %foreach;child;
                            %apply;li_SDC("child")
                              %apply;image_MF("child","11")
                              %apply;short_display_person("child")
                              %if;child.has_families;
                                %foreach;child.family;
                                  %if;(family_cnt!=1)
                                    <br%/><img width="10" height="10"%sp;
                                            src="%image_prefix;/1pixel.png" alt="" title=""%/>
                                    <em>%child;%child.title;%child.dates;</em>%nl;%end;
                                  <em>&nbsp;%apply;long_married("child")</em>
                                  %apply;image_MF("spouse","11")
                                  %apply;short_display_person("spouse")
                                  %if;are_divorced; [divorced]0%divorce_date;%end;
                                  %if;are_separated; [separated]0%end;
                                  %if;(nb_children!=0)
                                    &nbsp;[having as children]0 :
                                    <div style="font-size: 90%%">%nn;
                                      %foreach;child;
                                        %if;(child_cnt!=1) , %end;
                                          %apply;image_MF("child","10")
                                          %apply;short_display_person("child")
                                      %end;
                                    </div>
                                  %end;
                                %end;
                              %end;
                            </li>
                          %end;
                        </ul>
                      </div>
                    %else;
                      %if;(child.has_image and family_cnt=1)
                        </td></tr></table>
                      %else;<br%/>%nl;%end;
                    %end;
                  %end;
                %else;
                  %if;child.has_image;</td></tr></table>%nl;%end;
                %end;
              </li>
            %end;
          </ul>
        %end;
        %if;(evar_opt="from" and wizard)<em>(%origin_file;)</em><br%/>%nl;%end;
      </li>
    %end;
  </ul>
%end;

%if;has_siblings;
  <table id="siblings" style="width: 100%%" border="%border;">
    <tr>
      <td style="text-align: %left;;vertical-align: top">
        <h3 class="highlight">%nn;
          %if;(bvar.full_siblings="" or bvar.full_siblings="yes")
            [*full siblings]%nn;
          %else;
            [*siblings]%nn;
          %end;
        </h3>
        <ul>
          %foreach;father.child;
            %if;((bvar.full_siblings="" or bvar.full_siblings="yes")
              or child.index!=central_index)
              %apply;display_sibling()
            %end;
          %end;
        </ul>
      </td>
    </tr>
  </table>
%end;

%if;has_parents;
  %if;(father.nb_families>1 or mother.nb_families>1)
    %reset_count;
    %foreach;father.family;
      %if;(spouse.index!=mother.index)
        %if;(nb_children>0)%incr_count;%end;
      %end;
    %end;
    %foreach;mother.family;
      %if;(spouse.index!=father.index)
        %if;(nb_children>0)%incr_count;%end;
      %end;
    %end;
    %if;(count!=0)
      <h3 id="half_siblings" class="highlight">[*half-siblings]</h3>
      <table border="%border;" width="100%%">
        <tr>
          %foreach;parent;
            %if;(parent.nb_families>1)
              <td width="50%%">
                %apply;display_shared_parent%with;
                  %apply;image_MF("parent","13")
                  %apply;short_display_person("parent")%end;
              </td>
            %end;
          %end;
        </tr>
        <tr>
          %if;(father.nb_families>1)
            <td style="vertical-align: top">
              %foreach;father.family;
                %if;(spouse.index!=mother.index)
                  %apply;list_half_siblings()
                %end;
              %end;
            </td>
          %end;
          %if;(mother.nb_families>1)
            <td style="vertical-align: top">
              %foreach;mother.family;
                %if;(spouse.index!=father.index)
                  %apply;list_half_siblings()
                %end;
              %end;
            </td>
          %end;
        </tr>
      </table>
    %end;
  %end;
%end;

%if;has_parents;
<div style="text-align: center">
  <table id="ancestors" border="1">
    <tr>
      <td style="vertical-align: top">
        <table border="%border;" style="text-align: center"%sp;
               cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="16" style="text-align: center">
              <h3 class="highlight">[*ancestors]</h3>
            </td>
          </tr>

          %if;(max_anc_level>3)
            <tr>
              %( line 1 : up to 8 great-grandparents %)
              <td rowspan="4" style="text-align: center;vertical-align: middle">
                <h3 class="highlight" style="font-size: 80%%">%nn;
                  [*the great-grandparents]</h3></td>
              %if;(father.has_parents and father.father.has_parents)
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("father.father.father","10")
                  %apply;short_display_person("father.father.father")</td>
                <td>&nbsp;</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("father.father.mother","10")
                  %apply;short_display_person("father.father.mother")</td>
              %else;
                <td colspan="3" rowspan="4">&nbsp;</td>
              %end;
              <td>&nbsp;</td>
              %if;(father.has_parents and father.mother.has_parents)
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("father.mother.father","10")
                  %apply;short_display_person("father.mother.father")</td>
                <td>&nbsp;</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("father.mother.mother","10")
                  %apply;short_display_person("father.mother.mother")</td>
              %else;
                <td colspan="3" rowspan="4">&nbsp;</td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.father.has_parents)
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("mother.father.father","10")
                  %apply;short_display_person("mother.father.father")</td>
                <td>&nbsp;</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("mother.father.mother","10")
                  %apply;short_display_person("mother.father.mother")</td>
              %else;
                <td colspan="3" rowspan="4">&nbsp;</td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.mother.has_parents)
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("mother.mother.father","10")
                  %apply;short_display_person("mother.mother.father")</td>
                <td>&nbsp;</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;image_MF("mother.mother.mother","10")
                  %apply;short_display_person("mother.mother.mother")</td>
              %else;
                <td colspan="3" rowspan="4">&nbsp;</td>
              %end;
            </tr>

            <tr>
              %( line 2 : up to 8 vertical lines with numbers and marriage dates %)
              %if;(father.has_parents and father.father.has_parents)
                <td style="text-align: center;font-size: 80%%">|<br%/>8</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;display_date_marriage_parent("father.father")</td>
                <td style="text-align: center;font-size: 80%%">|<br%/>9</td>
              %end;
              <td>&nbsp;</td>
              %if;(father.has_parents and father.mother.has_parents)
                <td style="text-align: center;font-size: 80%%">|<br%/>10</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;display_date_marriage_parent("father.mother")</td>
                <td style="text-align: center;font-size: 80%%">|<br%/>11</td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.father.has_parents)
                <td style="text-align: center;font-size: 80%%">|<br%/>12</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;display_date_marriage_parent("mother.father")</td>
                <td style="text-align: center;font-size: 80%%">|<br%/>13</td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.mother.has_parents)
                <td style="text-align: center;font-size: 80%%">|<br%/>14</td>
                <td style="text-align: center;font-size: 80%%">%nn;
                  %apply;display_date_marriage_parent("mother.mother")</td>
                <td style="text-align: center;font-size: 80%%">|<br%/>15</td>
              %end;
            </tr>

            <tr>
              %( line 3: up to 4 horizontal lines %)
              %if;(father.has_parents and father.father.has_parents)
                <td align="%right;">%nn;
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td align="%left;">%nn;
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
              <td>&nbsp;</td>
              %if;(father.has_parents and father.mother.has_parents)
                <td align="%right;">%nn;
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td align="%left;">%nn;
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.father.has_parents)
                <td align="%right;">%nn;
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td align="%left;">%nn;
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.mother.has_parents)
                <td align="%right;">%nn;
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td align="%left;">%nn;
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
            </tr>

            <tr>
              %( line 4 : up to 4 vertical lines %)
              %if;(father.has_parents and father.father.has_parents)
                <td colspan="3" style="text-align: center">|</td>
              %end;
              <td>&nbsp;</td>
              %if;(father.has_parents and father.mother.has_parents)
                <td colspan="3" style="text-align: center">|</td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.father.has_parents)
                <td colspan="3" style="text-align: center">|</td>
              %end;
              <td>&nbsp;</td>
              %if;(mother.has_parents and mother.mother.has_parents)
                <td colspan="3" style="text-align: center">|</td>
              %end;
            </tr>
          %end;

          %if;(max_anc_level>2)
            <tr>
              %( line 5 : up to 4 grandparents %)
              <td rowspan="4" style="text-align: center;vertical-align: middle">
                <h3 class="highlight" style="font-size: 90%%">%nn;
                  [*the grandparents]</h3></td>
              %if;father.has_parents;
                <td colspan="3" style="text-align: center;font-size: 90%%">%nn;
                  %apply;image_MF("father.father","11")
                  %apply;short_display_person("father.father")</td>
                <td>&nbsp;</td>
                <td colspan="3" style="text-align: center;font-size: 90%%">%nn;
                  %apply;image_MF("father.mother","11")
                  %apply;short_display_person("father.mother")</td>
              %else;
                <td colspan="7" rowspan="4">&nbsp;</td>
              %end;
              <td>&nbsp;</td>
              %if;mother.has_parents;
                <td colspan="3" style="text-align: center;font-size: 90%%">%nn;
                  %apply;image_MF("mother.father","11")
                  %apply;short_display_person("mother.father")</td>
                <td>&nbsp;</td>
                <td colspan="3" style="text-align: center;font-size: 90%%">%nn;
                  %apply;image_MF("mother.mother","11")
                  %apply;short_display_person("mother.mother")</td>
              %else;
                <td colspan="7" rowspan="4">&nbsp;</td>
              %end;
            </tr>

            <tr>
              %( line 6 : up to 4 vertical lines with numbers and marriage dates %)
              %if;father.has_parents;
                <td colspan="3" style="text-align: center;font-size: 90%%">|<br%/>4</td>
                <td style="text-align: center;font-size: 90%%">%nn;
                  %apply;display_date_marriage_parent("father")</td>
                <td colspan="3" style="text-align: center;font-size: 90%%">|<br%/>5</td>
              %end;
              <td>&nbsp;</td>
              %if;mother.has_parents;
                <td colspan="3" style="text-align: center;font-size: 90%%">|<br%/>6</td>
                <td style="text-align: center;font-size: 90%%">%nn;
                  %apply;display_date_marriage_parent("mother")</td>
                <td colspan="3" style="text-align: center;font-size: 90%%">|<br%/>7</td>
              %end;
            </tr>

            <tr>
              %( line 7 : up to 2 horizontal lines %)
              %if;father.has_parents;
                <td colspan="3" align="%right;">%nn;
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td colspan="3" align="%left;">%nn;
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
              <td>&nbsp;</td>
              %if;mother.has_parents;
                <td colspan="3" align="%right;">%nn;
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td colspan="3" align="%left;">%nn;
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
            </tr>

            <tr>
              %( line 8 : up to 2 vertical lines %)
              %if;father.has_parents;
                <td colspan="7" style="text-align: center">|</td>
              %end;
              <td>&nbsp;</td>
              %if;mother.has_parents;
                <td colspan="7" style="text-align: center">|</td>
              %end;
            </tr>
          %end;

          <tr>
            %( line 9 : 2 parents %)
            <td rowspan="4" style="text-align: center;vertical-align: middle">
              <h3 class="highlight">[*the parents]</h3></td>
            <td colspan="7" style="text-align: center">%nn;
              %apply;image_MF("father","13")
              %apply;short_display_person("father")</td>
            <td>&nbsp;</td>
            <td colspan="7" style="text-align: center">%nn;
              %apply;image_MF("mother","13")
              %apply;short_display_person("mother")</td>
          </tr>

          <tr>
            %( line 10 : 2 vertical lines with numbers and marriage date %)
            <td colspan="7" style="text-align: center">|<br%/>2</td>
            <td style="text-align: center;">%nn;
              %apply;display_date_marriage_parent("self")</td>
            <td colspan="7" style="text-align: center">|<br%/>3</td>
          </tr>

          <tr>
            %( line 11 : 2 horizontal lines %)
            <td colspan="7" align="%right;">%nn;
              <hr dir="ltr" width="50%%" align="%right;"%/></td>
            <td><hr width="100%%"%/></td>
            <td colspan="7" align="%left;">%nn;
              <hr dir="ltr" width="50%%" align="%left;"%/></td>
          </tr>

          <tr>
            %( line 12 : 1 vertical line %)
            <td colspan="15" style="text-align: center">|</td>
          </tr>

          <tr>
            %( line 13 : 1 person %)
            <td>&nbsp;</td>
            <td colspan="15" style="text-align: center">%nn;
              %apply;image_MF("self","13")
              %apply;short_display_person("self")</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
%end;

%apply;include_file("templx/relations")
%apply;include_file("templx/linked_pages")
%apply;include_file("templx/notes")
%apply;include_file("templx/sources")
%apply;include_file("templx/links")

%if;(evar_opt="misc")%misc_names;%end;

%base_trailer;
%copyright;
</body>
</html>