%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: perso.txt, Template a v 6.03b 2011/12/01 12:00:00 ddr/dd Exp $ -->
  <!-- copyright (c) 1998-2011 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;image_sosa(xxx,yyy)
  <img src="%image_prefix;/sosa.png" width="10" height="10"%sp;
    style="border: none" alt=""%sp;
	title="%if;(yyy>1)[direct ancestor of %s:::xxx] , %end;[*Sosa] yyy"%/>%nn;
%end;

%define;display_sosa(xx)
  %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;

%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 width="wi_he" height="wi_he" src="%image_prefix;/male.png"%sp;
         style="border: none" alt="" title="[M/F]0"%/>%nn;
  %elseif;xx.is_female;
    <img width="wi_he" height="wi_he" src="%image_prefix;/female.png"%sp;
         style="border: none" alt="" title="[M/F]1"%/>%nn;
  %else;
    <span class="highlight">?</span>%nn;
  %end;
  %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;
          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="%prefix;%self.access;;cgl=on"><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;very_short_display_person(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;%nn;
%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;</em>%end;
    %else;
      %if;(on_marriage_date="")<em>, %marriage_place;, </em>
      %else; <em>%on_marriage_date;, %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.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]
%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">[*siblings]</h3>
        <ul>
          %foreach;father.child;
            %apply;display_sibling()
          %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 number %)
              %if;(father.has_parents and father.father.has_parents)
                <td style="text-align: center;font-size: 80%%">|<br%/>8</td>
                <td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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 number %)
              %if;father.has_parents;
                <td colspan="3" style="text-align: center;font-size: 90%%">|<br%/>4</td>
                <td>&nbsp;</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>&nbsp;</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 number %)
            <td colspan="7" style="text-align: center">|<br%/>2</td>
            <td>&nbsp;</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;

%if;has_relations;
  <h3 id="relations" class="highlight">[*relation/relations]1</h3>
  <ul>
    %foreach;relation;
      %if;(has_relation_him and has_relation_her)
        <li>%apply;capitalize(relation_type) :%nl;
          <ul>
            %apply;li_SDC("relation_him")
              %apply;image_MF("relation_him","13")
              %apply;short_display_person("relation_him")
            </li>
            %apply;li_SDC("relation_her")
              %apply;image_MF("relation_her","13")
              %apply;short_display_person("relation_her")
            </li>
          </ul>
        </li>
      %elseif;has_relation_him;
        %apply;li_SDC("relation_him")%apply;capitalize(relation_type) :%sp;
          %apply;image_MF("relation_him","13")
          %apply;short_display_person("relation_him")
        </li>
      %elseif;has_relation_her;
        %apply;li_SDC("relation_her")%apply;capitalize(relation_type) :%sp;
          %apply;image_MF("relation_her","13")
          %apply;short_display_person("relation_her")
        </li>
      %end;
    %end;
    %foreach;related;
      %apply;li_SDC("related")%apply;capitalize(related_type) :%sp;
        %apply;image_MF("related","13")
        %apply;short_display_person("related")
      </li>
    %end;
    %foreach;witness_relation;
      <li style="list-style-type:disc">%nn;
        %if;(witness_relation.marriage_date.year>0)
          <em> %witness_relation.marriage_date.year;</em> :
        %end;
        %apply;witness_relation%with;
          %apply;very_short_display_person("witness_relation.father")%and;
          %apply;very_short_display_person("witness_relation.mother")
        %end;
      </li>%nl;
    %end;
  </ul>
%end;

%if;(not cancel_links and has_linked_pages)
  <table style="float:%right;"><tr><td style="font-size:80%%">
    (<a href="%prefix;m=LINKED;%access;">[linked pages]</a>)
  </td></tr></table>
%end;

%if;((wizard or friend or 
      bvar.no_note_for_visitor="" or bvar.no_note_for_visitor="no") and
     (has_notes or has_linked_page.BNOTE or has_linked_page.NOTE))
  <h3 id="notes" class="highlight">[*note/notes]1</h3>
  <dl><dd>
    %if;(has_linked_page.BNOTE)<p>%apply;capitalize(linked_page.BNOTE).</p>%end;
    %if;(has_notes)%notes;%end;
    %if;(has_linked_page.NOTE)<p>%apply;capitalize(linked_page.NOTE).</p>%end;
  </dd></dl>
%end;

%if;(has_sources or has_linked_page.BIBLIO)
  %if;has_sources;
    <p>
    <em style="font-size:80%%">[*source/sources]1:<br%/>
    %foreach;source;
      - %source_type;: %source;<br%/>
    %end;
    </em>
    </p>
  %end;
  %if;has_linked_page.BIBLIO;<p>%apply;capitalize(linked_page.BIBLIO).</p>%end;
%end;

%if;not cancel_links;
  <table id="links" border="%border;" style="width: 100%%">
    <tr>
      <td style="text-align: %left;">
        <ul>
          <li><a href="%prefix;m=R;%access;"
                 class="highlight">[*relationship computing]</a></li>
          %if;(browsing_with_sosa_ref and sosa_ref.index!=central_index)
            <li><a href="%prefix;em=R;ei=%index;;m=NG;select=input;n=1;%nn;
                   long=on;image=on;spouse=on;et=M" class="highlight">%nn;
                   [*relationship computing::with]</a> %sosa_ref;</li>
            <li><a href="%prefix;em=R;ei=%index;;m=NG;select=input;n=1;%nn;
                   long=on;image=on;spouse=on;et=S" class="highlight">%nn;
                   [*shortest path::with]</a> %sosa_ref;</li>
          %end;
          %if;(not browsing_with_sosa_ref or sosa_ref.index!=central_index)
            <li>%apply;nav_with_sosa_ref%with;<a class="highlight"%sp;
              href="%prefix_no_iz;iz=%self.index;;%self.access;">%self;</a>%end;
            </li>
          %end;
        </ul>
      </td>
      <td style="text-align: %left;">
        <ul>
          %if;has_parents;
            %let;nba;%apply;min(max_anc_level, 5)%in;
            <li><a href="%prefix;m=A;%access;" %nn;
                   class="highlight">[*ancestors]</a>&nbsp;
                <a href="%prefix;m=A;%access;;siblings=on;notes=on;t=T;image=on;%nn;
                   marriage=on;v=%nba;" class="highlight">[*tree] [ancestors]%sp;
                   %apply;togena%with;%nba%end;</a></li>
          %end;
          %if;has_children;
            %let;nbd;%apply;min(max_desc_level, 4)%in;
            <li><a href="%prefix;m=D;%access;" %nn;
                   class="highlight">[*descendants]</a>&nbsp;
                <a href="%prefix;m=D;%access;;siblings=on;notes=on;t=T;image=on;%nn;
                   v=%nbd;" class="highlight">[*tree] [descendants]%sp;
                   %apply;togend%with;%nbd%end;</a></li>
          %end;
          %if;((has_parents and (father.has_parents or mother.has_parents))
            or has_nephews_or_nieces)
            <li>%nn;
              %if;(has_parents and (father.has_parents or mother.has_parents))
                <a href="%prefix;m=C;%access;" %nn;
                   class="highlight">[*cousins (general term)]</a>&nbsp;
              %end;
              %if;has_nephews_or_nieces;
                <a href="%prefix;m=C;v1=1;v2=2;%access;" %nn;
                   class="highlight">[*nephews and nieces]</a>
              %end;
            </li>
          %end;
          %if;has_siblings;
            <li>%nn;
              %foreach;father.child;
                %if;is_sibling_before;
                  <a href="%prefix;%child.access;" class="highlight">%nn;
                    %apply;capitalize(nth([previous sibling],sex))</a>&nbsp;
                %end;
                %if;is_sibling_after;
                  <a href="%prefix;%child.access;" class="highlight">%nn;
                    %apply;capitalize(nth([next sibling],sex))</a>
                %end;
              %end;
            </li>
          %end;
        </ul>
      </td>
      %if;wizard;
        <td style="text-align: %left;">
          <ul>
            <li><a href="%prefix;m=U;%access;"
                   class="highlight" accesskey="U">[*update]</a><br%/>&nbsp;</li>
            <li><a href="%prefix;m=MOD_IND;i=%index;"
                   class="highlight" accesskey="M">[*modify]</a></li>
            %if;has_families;
              %foreach;family;
                <li><a href="%prefix;m=MOD_FAM;i=%family.index;
                    ;ip=%index" class="highlight">
                    [*modify::family/families]0</a>%sp;
                    [with] %spouse.first_name;.%spouse.occ; %spouse.surname;</li>
              %end;
            %end;
          </ul>
        </td>
      %end;
    </tr>
  </table>
%end;

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

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