%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: perso.txt,v 5.10 2007/06/12 11:48:24 ddr Exp $ -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 2012/05/17 geneweb-6.04 templ=templm --> 
  <title>%first_name; %surname;</title>
  <meta name="robots" content="none"%/>
  <meta http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png"%/>
  %include.css;
  <style type="text/css">
    %if;(evar.wide = "on")
      .fam1, .fam2, .person_content {width: 99%%;}
      .image_sheet {font-size: 89%%;}
    %else;
       .fam1, .fam2, .person_content {width: 49%%; min-width: 300px;}
       .image_sheet {font-size: 71%%;}
    %end;
  </style>
  %base_header;
</head>

%( <!-- Begin define --> %)
  %define;letter(xx)
    %apply;nth%with;
      /A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z
    %and;xx%end;
  %end;

  %define;link_dates(xx)
    %if;(wizard and not cancel_links)
      <a href="%prefix;m=MOD_IND;i=%xx.index;"
      title="[modify::person/persons]0" target="_blank">%nn;
      %if;(xx.dates != "")
        %xx.dates;%nn;
      %else;&nbsp;-&nbsp;%nn;
      %end;%nn;
      </a>%nn;
    %else;
      %xx.dates;%nn;
    %end;
  %end;

  %define;link_marriage()
    %if;(wizard and not cancel_links)
      <a href="%prefix;m=MOD_FAM;i=%family.index;;ip=%index;"
      title="[modify::family/families]0" target="_blank">&amp;%marriage_date.year;%sp;</a>
    %elseif;(on_marriage_date != "")
      &amp;%marriage_date.year;%sp;
    %else;
      &amp;%sp;
    %end;
  %end;

  %define;link_name(xx)
    %if;(cancel_links or xx.is_restricted)
      %xx;%nn;
    %else;
      <a href="%prefix;%xx.access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;">%xx;</a>%nn;
    %end;
  %end;

  %define;link_child_name()
    %if;(cancel_links or xx.is_restricted)
      %child_name;%nn;
    %else;
      <a href="%prefix;%access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;">%child_name;</a>%nn;
    %end;
  %end;

  %define;link_image(xx)
    <a target="blank" class="image"
      href="%xx.image_html_url;">
      <img src="%xx.image_url;" alt="[image/images]0"%/>
    </a>
  %end;

  %define;symbol2(xx)
    %if;(xx.has_siblings)
      &diams;%nn;
    %elseif;(xx.has_parents)
      &loz;%nn;
    %else;
      -%nn;
    %end;
  %end;
  
  %define;symbol1(xx)
    %if;(xx.has_sosa)
      <span class="color_sosa">%sp;%apply;symbol2("xx")%sp;</span>%nn;
    %else;
      %sp;%apply;symbol2("xx")%sp;
    %end;
  %end;
  
  %define;somebody(xx)
    %apply;link_name("xx")
    %xx.title;
    %apply;link_dates("xx")
  %end;

  %define;child_long_info(curlev, maxlev)
    %apply;link_child_name()
    %child.title;
    %apply;link_dates("child")
    %if;(has_families)
      %if;(evar.image="on")
        %foreach;family;
            %if;(evar.spouse != "off")  
              <div class="image_sheet" style="font-size: 80%%;">
                  %if;(spouse.has_image)%apply;link_image("spouse")<br%/>%end;
                  %apply;somebody("spouse")
              </div>
            %end;
            %if;(curlev < maxlev)
              %if;(has_children)
                %foreach;child;
                  <div class="image_sheet" style="font-size: 75%%;margin-left: 8%%; border: dashed 1px %highlight;;">
                    %if;(child.has_image)%apply;link_image("child")<br%/>%end;
                    %apply;child_long_info(curlev+1, maxlev)
                  </div>
                %end;
              %end;
            %end;
        %end;
      %else;
        %foreach;family;
          %if;(evar.spouse != "off")
            <small>
              %apply;link_marriage()
              %apply;somebody("spouse")
            </small>
          %end;
          %if;(curlev < maxlev)
            %if;(has_children)
              <ol>
              %foreach;child;
                <li class=%if;(has_sosa)"border_sosa"%else;"border_family_%has_families; border_sex_%sex;"%end;>%apply;child_long_info(curlev+1, maxlev)</li>
              %end;
              </ol>
            %end;
          %end;
        %end;
      %end;
    %end;
  %end;

  %define;children_list()
    %if;has_children;
      %if;(evar.image="on")
        %foreach;child;
            <div class="image_sheet ">
                %if;(has_image)%apply;link_image("self")<br%/>%end;
                %apply;child_long_info(0, evar.maxlev)
            </div>
        %end;
      %else;
        <ol>
        %foreach;child;
          <li class=%if;(has_sosa)"border_sosa"%else;"border_family_%has_families; border_sex_%sex;"%end;>
            %apply;child_long_info(0, evar.maxlev)
          </li>
        %end;
        </ol>
      %end;
    %end;
  %end;

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

  %define;type_marriage()
     %if;are_married;[*married]
     %elseif;are_not_married;[*not married]
     %elseif;are_engaged;[*engaged]
     %elseif;is_no_sexes_check;[*not married]
     %elseif;is_no_mention;~
     %end;
  %end;

  %define;marriage_date_place()
    %if;(marriage_place = "")
      %if;(on_marriage_date = "")
      %else; <em>%on_marriage_date;</em>%nn;
      %end;
    %else;
      %if;(on_marriage_date = "")<em>, %marriage_place;</em>%nn;
      %else; <em>%on_marriage_date;, %marriage_place;</em>%nn;
      %end;
    %end;
  %end;

  %define;content_marriage(xx)
    %if;has_witnesses;
      %if;cancel_links;
         ; [witness/witnesses]w :%sp;%nn;
      %else;
           ; <a href="%prefix;spouse=on;m=RLM;%nn;
          %reset_count;%nn;
          %incr_count;%nn;
          i%count;=%xx.index;;%nn;
          t%count;=%apply;capitalize(nth([husband/wife],xx.sex));%nn;
          %foreach;witness;%nn;
            %incr_count;%nn;
            i%count;=%witness.index;;%nn;
            t%count;=%expr(count-1);%nn;
          %end;
          %incr_count;%nn;
          i%count;=%spouse.index;;%nn;
          t%count;=%apply;capitalize(nth([husband/wife],spouse.sex));%nn;
          " title="[relationship computing]"><em>[witness/witnesses]w :%sp;</em></a>%nn;
      %end;
      %foreach;witness;
        %if;not is_first;, %end;
        %apply;somebody("witness")%nn;
        %( <!-- Begin personalization mickroue --> %)
        %if;(witness.has_qualifiers and witness.title=", <em>Cousin</em>")
            <a target="blank" href="http://gw.geneanet.org/index.php3?b=%witness.qualifier&amp;lang=fr;m=N;v=%surname;" title="Arbre en ligne sur Geneanet">@</a>%nn;
        %end;%nn;
        %( <!-- End personalization mickroue --> %)
      %end;%nn;
    %end;
    %if;has_comment; (%comment;)%end;
    %if;are_divorced;, [divorced]0%divorce_date;%end;
    %if;are_separated;, [separated]0%end; 
  %end;

  %define;content_family(xx,yy)
     %if;(evar.image="on")
       <div class="image_sheet">
          %if;(xx.has_image)%apply;link_image("xx")<br%/>%end;
          %apply;somebody("xx")
       </div>
       <div class="image_sheet">%apply;link_marriage()</div>
       <div class="image_sheet" style="clear:right;">
          %if;(yy.has_image)%apply;link_image("yy")<br%/>%end;
          %apply;somebody("yy")
       </div>
     %else;
      %apply;link_marriage()
      %apply;somebody("yy")
     %end;
    <br style="clear: both;"%/>
     %apply;type_marriage()
     %apply;marriage_date_place()
     %apply;content_marriage("xx")
    <br%/>
     %apply;children_list()
  %end;

  %define;long_disp_anc_families()
    %foreach;father.family;
      <ul>
      %if;(spouse.index != mother.index)
         <li class="small">
            (x%family_cnt; [father/mother]0)
             %apply;content_family("father","spouse")
         </li>
      %else;
        <li>
          %apply;content_family("father","spouse")
        </li>
      %end;
      </ul> 
    %end;
    %foreach;mother.family;
      %if;(spouse.index != father.index)
       <ul>
        <li class="small">
          (x%family_cnt; [father/mother]1)
          %apply;content_family("mother","spouse")
        </li>
       </ul>
      %end;
    %end;
  %end;

  %define;parents(xx,yy)
    %foreach;xx.parent;
      yy%apply;symbol1("parent")
        %apply;link_name("parent")
        %apply;link_dates("parent")
        <br%/>
    %end;
  %end;

  %define;anc_families()
    %if;has_parents;
    <div class="fam2">
      <div class="ancestors">
        <h3>[*parents]%if;(father.has_parents or mother.has_parents), [the grandparents]%end;</h3>
          %if;father.has_parents;<small>%apply;parents("father","&nbsp;&nbsp;&nbsp;&nbsp;")</small>%end;
          %apply;parents("self","")
          %if;mother.has_parents;<small>%apply;parents("mother","&nbsp;&nbsp;&nbsp;&nbsp;")</small>%end;
      </div>
      %if;has_siblings;
      <div class="siblings">
          <h3>[*siblings]</h3>
          <ol>
          %foreach;father.child;
              <li class=%if;(has_sosa)"border_sosa"%else;"border_family_%has_families; border_sex_%sex;"%end;>
              %if;is_self;
                <em>%child_name;</em>
              %else;
                 %apply;link_child_name()
              %end;
              %apply;link_dates("child")
              </li>
          %end;
          </ol>
      </div>
      %end;
    </div>
    %elseif;(wizard and not cancel_links and first_name != "?" and surname != "?")
       <div class="fam2"><a class="button" href="%prefix;m=ADD_PAR;ip=%index;" title="[add::parents] (L)" accesskey="L" target="_blank">[*add::parents] (L)</a></div>
    %end;
  %end;

  %define;relation_computing()
      %if;cancel_links;
          %apply;capitalize(relation_type) :%nn;
      %else;
          <a href="%prefix;spouse=on;m=RLM;%nn;
           %reset_count;
           %nn;
           %if;has_relation_him;
            %incr_count;
            i%count;=%relation_him.index;;%nn;
            t%count;=*;%nn;
           %end;
           %incr_count;
           i%count;=%index;;%nn;
           t%count;=0;%nn;
           %nn;
           %if;has_relation_her;
            %incr_count;
            i%count;=%relation_her.index;;%nn;
            t%count;=*;%nn;
           %end;
           %nn;
          " title="[relationship computing]">%apply;capitalize(relation_type) :</a>%nn;
      %end;
  %end;

  %define;related_computing()
      %if;cancel_links;
          %apply;capitalize(related_type) :%nn;
      %else;
          <a href="%prefix;spouse=on;m=RLM;%nn;
          %reset_count;
          %incr_count;
          i%count;=%related.index;;%nn;
          t%count;=%related_type;;%nn;
          %nn;
          %incr_count;
          i%count;=%index;;%nn;
          t%count;=0;%nn;
          %incr_count;
          %nn;
          " title="[relationship computing]">%apply;capitalize(related_type) :</a>%nn;
      %end;
  %end;

  %define;witness_computing()
      %if;cancel_links;
          [*witness at marriage of %s and %s:::x:y] :%nn;
      %else;  
          <a href="%prefix;spouse=on;m=RLM;%nn;
          %reset_count;%nn;
        %foreach;witness_relation;
          %incr_count;%nn;
          i%count;=%witness_relation.father.index;;%nn;
          t%count;=%count;;%nn;
          
          %incr_count;%nn;
          i%count;=%witness_relation.mother.index;;%nn;
          t%count;=%count;;%nn;
        %end;  
          %incr_count;%nn;
          i%count;=%index;;%nn;
          t%count;=0;%nn;
          " title="[relationship computing]">[*witness at marriage of %s and %s:::x:y] :</a>%nn;
      %end;
      %reset_count;
  %end;

  %define;navsosa(xx)
    [*navigation with %t as Sosa reference:::xx].
  %end;
  
  %define;age_at(xx)
    [age at %s birth date:::xx]%nn;
  %end;

  %define;v_linked_page(gwf)
    %if;(bvar.var_t_gwf = "")
      gwf%nn;
    %else;
      %bvar.var_t_gwf;%nn;
    %end;
  %end;

  %define;display_images_him_her(xx, yy, zz, hhim, hher)
    %if;(has_linked_page.xxyy and spouse.has_linked_page.xxyy)
      %if;(evar.image = "on" and (bvar.no_image_for_visitor != "yes" or friend or wizard))
        <li class="image_sheet">
          <a target="blank" class="image" href="%prefix;m=IMH;s=%hhim.first_name_key_val;_%hhim.surname_key_val;_%hhim.occ;_%hher.first_name_key_val;_%hher.surname_key_val;_%hher.occ;_xxyy.%bvar.var_img_ext;">
            <img src="%prefix;m=IM;s=%hhim.first_name_key_val;_%hhim.surname_key_val;_%hhim.occ;_%hher.first_name_key_val;_%hher.surname_key_val;_%hher.occ;_xxyy.%bvar.var_img_ext;" alt="[*image/images]0"%/>%nn;
          </a>
          %if;(nb_families > 1)&amp;%marriage_date.year;<br%/>%end;
          %linked_page.xxyy;
          <br%/>
        </li>
      %else;
        <li>
          %if;(nb_families > 1)&amp;%marriage_date.year; - %end;
          %linked_page.xxyy;
          %if;(not cancel_links)
            %sp;-%sp;
            <a target="blank"
             href="%prefix;m=IMH;s=%hhim.first_name_key_val;_%hhim.surname_key_val;_%hhim.occ;_%hher.first_name_key_val;_%hher.surname_key_val;_%hher.occ;_xxyy.%bvar.var_img_ext;">
              [*see]
            </a>
          %end;
        </li>
      %end;
    %end;
    %if;(wizard and not cancel_links)
      %incr_count;
      %apply;add_in_sorted_list%with;
        %expr(1000 + count)%and;
        %if;("yy" = "A")&amp;%marriage_date.year;%end;%and;
        %if;(bvar.var_text != "")
          <a href="%prefix;m=MOD_NOTES;f=images:xxyy;base=%base.name;;text=%[%[%hhim.first_name_key;/%hhim.surname_key;/%hhim.occ;/%bvar.var_text; %]%] x %[%[%hher.first_name_key;/%hher.surname_key;/%hher.occ;/%bvar.var_text; %]%];file=%hhim.first_name_key_val;_%hhim.surname_key_val;_%hhim.occ;_%hher.first_name_key_val;_%hher.surname_key_val;_%hher.occ;_xxyy" title="images:xxyy">%apply;v_linked_page("xxyy")</a>
        %else;
         <a href="%prefix;m=MOD_NOTES;f=images:xxyy;base=%base.name;;text=*%zz_date.year;&nbsp;:&nbsp;%[%[%hhim.first_name_key;/%hhim.surname_key;/%hhim.occ;/%hhim;%]%] x %[%[%hher.first_name_key;/%hher.surname_key;/%hher.occ;/%hher;%]%];file=%hhim.first_name_key_val;_%hhim.surname_key_val;_%hhim.occ;_%hher.first_name_key_val;_%hher.surname_key_val;_%hher.occ;_xxyy" title="images:xxyy">%apply;v_linked_page("xxyy")</a>
        %end; 
      %end;
    %end;
  %end;

  %define;display_images_marriage(xx, yy, zz)
    %if;(is_male)
       %apply;display_images_him_her("xx","yy","zz","self","spouse")
    %else;
       %apply;display_images_him_her("xx","yy","zz","spouse","self")
    %end;
  %end;

  %define;display_images_person(xx, yy, zz)
    %if;(has_linked_page.xxyy)
      %if;(evar.image = "on" and (bvar.no_image_for_visitor != "yes" or friend or wizard))
        <li class="image_sheet">
            <a target="blank" class="image"
             href="%prefix;m=IMH;s=%first_name_key_val;_%surname_key_val;_%occ;_xxyy.%bvar.var_img_ext;">
              <img src="%prefix;m=IM;s=%first_name_key_val;_%surname_key_val;_%occ;_xxyy.%bvar.var_img_ext;"
               alt="[*image/images]0"%/>
            </a>
            <br%/>
          %linked_page.xxyy;
        </li>
      %else;
        <li>
          %linked_page.xxyy;
          %if;(not cancel_links)
            %sp;-%sp;
            <a target="blank" 
             href="%prefix;m=IMH;s=%first_name_key_val;_%surname_key_val;_%occ;_xxyy.%bvar.var_img_ext;">
             [*see]0</a>
          %end;
        </li>
      %end;
    %end;
    %if;(wizard and not cancel_links)
      %incr_count;
      %apply;add_in_sorted_list%with;
        %expr(1000 + count)%and;
        %if;("yy" = "A")
          %if;("xx" = "BIRTH")&deg;%zz_date.year;%end;
          %if;("xx" = "DEATH")
            %if;(bvar.death_symbol != "")%bvar.death_symbol;%else;&dagger;%end;
            %zz_date.year;
          %end;
          %if;("zz" = "other")- - -%end;
        %end;%and;
        %if;(bvar.var_text != "")
          <a href="%prefix;m=MOD_NOTES;f=images:xxyy;base=%base.name;;text=%[%[%first_name_key;/%surname_key;/%occ;/%bvar.var_text;%]%];file=%first_name_key_val;_%surname_key_val;_%occ;_xxyy;" title="images:xxyy">%apply;v_linked_page("xxyy")</a>
        %elseif;("xx" = "OTHER")
          <a href="%prefix;m=MOD_NOTES;f=images:xxyy;base=%base.name;;text=*&nbsp;%[%[%first_name_key;/%surname_key;/%occ;/%self;%]%];file=%first_name_key_val;_%surname_key_val;_%occ;_xxyy;" title="images:xxyy">%apply;v_linked_page("xxyy")</a>
        %else;
          <a href="%prefix;m=MOD_NOTES;f=images:xxyy;base=%base.name;;text=*%zz_date.year;&nbsp;:&nbsp;%[%[%first_name_key;/%surname_key;/%occ;/%self;%]%];file=%first_name_key_val;_%surname_key_val;_%occ;_xxyy;" title="images:xxyy">%apply;v_linked_page("xxyy")</a>
        %end;
      %end;
    %end;
  %end;

  %define;display_images(xx, yy, zz, curlev, maxlev)
    %if;(curlev < maxlev)
      %if;("xx" = "MARRIAGE")
        %if;(has_linked_page.xxyy and spouse.has_linked_page.xxyy or wizard)
          %apply;display_images_marriage("xx", "yy", "zz")  
        %end;
      %elseif;(has_linked_page.xxyy or wizard)
        %apply;display_images_person("xx", "yy", "zz")
      %end;
      %apply;display_images%with;
        xx%and;
        %apply;letter(curlev + 2)%and;
        zz%and;
        %expr(curlev + 1)%and;
        %maxlev;
      %end;
    %end;
  %end;
  
  %define;max_anc_v(vv)
    %if;(max_anc_level + 1 < vv)%expr(max_anc_level + 1)%else;vv%end;%nn;
  %end;

  %define;max_desc_v(vv)
    %if;(max_desc_level < vv)%max_desc_level;%else;vv%end;%nn;
  %end;
  
  %define;nav_with_sosa_ref(xx)
    [*navigation with %t as Sosa reference:::xx]
  %end;

%( <!-- End define --> %)

<body%body_prop; id="perso">%nn;
%message_to_wizard;
%( <!-- Begin display menu --> %)
  %if;not cancel_links;
    <div class="menu">
      %if;wizard;
        <span><a href="%prefix;m=U;%access;">[*update]</a>
          <span class="s_menu">
            <a href="%prefix;m=MOD_IND;i=%index;" target="_blank">[*modify::person/persons]0 </a>
            %if;(nb_families = 1)
              %foreach;family;
                <a href="%prefix;m=MOD_FAM;i=%family.index;;ip=%index;" target="_blank">[*modify::family/families]0</a>
              %end;
            %end;
            <a href="%prefix;m=ADD_FAM;ip=%index;" target="_blank">[*add::family/families]0</a>
            <a href="%prefix;m=SND_IMAGE;i=%index;">[*send::image/images]0</a>
            <a href="%prefix;m=MRG;i=%index;">[*merge]0 (oc=%occ;)</a>
          </span>
        </span>
      %end;
      %if;has_parents;
        <span><a href="%prefix;m=A;%access;">%nn;
          %foreach;ancestor_level;
            %if;(level = max_anc_level)
              %number_of_ancestors;
            %end;
          %end; [*ancestors]</a>
          <span class="s_menu">
            <a href="%prefix;m=A;t=T;v=%apply;max_anc_v(5);image=on;marriage=on;%access;">[*tree]</a>
            <a href="%prefix;m=A;t=F;v=%expr(max_anc_level+1);i=%index;">[*surnames list]</a>
            <a href="%prefix;m=A;t=F;v=%apply;max_anc_v(5);%access;;opt=fam;cousins=on">[*family/families]0</a>
            <a href="%prefix;m=A;t=N;v=%apply;max_anc_v(8);%access;">[*short display]</a>
            <a href="%prefix;m=A;t=G;v=%apply;max_anc_v(5);siblings=on;spouse=on;parents=on;alias=on;rel=on;witn=on;comm=on;notes=on;src=on;%access;">[*long display]</a>
          </span>
        </span>
      %end;
      %if;has_children;
        <span><a href="%prefix;m=D;%access;">%nn;
          %foreach;descendant_level;
             %if;(level = max_desc_level)
               %number_of_descendants;
             %end;
          %end; [*descendants]</a>
          <span class="s_menu">
            <a href="%prefix;m=D;t=T;v=%apply;max_desc_v(4);image=on;%access">[*tree]</a>
            <a href="%prefix;m=D;t=A;v=%max_desc_level;;%access">d’Aboville</a>
            <a href="%prefix;m=D;t=L;v=%apply;max_desc_v(3);alwsurn=yes;alias=on;rel=on;spouse=on;parents=on;witn=on;comm=on;notes=on;src=on;%access;">[*long display]</a>
          </span>
        </span>
      %end;
      <span><a href="%prefix;m=R;%access;">[*relationship computing]</a>
        <span class="s_menu">
          %if;(sosa_ref.index != "" and sosa_ref.index != index)
            <a href="%prefix;em=R;ei=%sosa_ref.index;;i=%index;;et=M;spouse=on" title="%self; …[*relationship]… %sosa_ref;">[*relationship] … [Sosa] 1</a>
            <a href="%prefix;em=R;ei=%index;;m=NG;n=1;t=PN;spouse=on;image=on;bd=;color=;et=S" title="%self; …[*shortest path]… %sosa_ref;">[*shortest path]</a>
          %end;
          %if;(father.has_siblings or mother.has_siblings)
            <a href="%prefix;%access;;m=C;v1=2;v2=1">[*uncles and aunts]</a>
          %end;
          %if;has_nephews_or_nieces;
            <a href="%prefix;%access;;m=C;v1=1;v2=2">[*nephews and nieces]</a>
          %end;
        </span>
      </span>
    </div>
    <div class="menu2">
      %if;(evar.wide="on")
         <a href="%prefix;%access;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;" title="[visualize/show/hide/summary]0">&middot;|&middot;</a>
      %else;
        <a href="%prefix;%access;;wide=on;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;" title="[visualize/show/hide/summary]0">&divide;</a>
      %end;
      %if;(bvar.no_image_for_visitor != "yes" or friend or wizard)
        %if;(evar.image="on")
          <a style="text-decoration:line-through;"
           href="%prefix;%access;;wide=%evar.wide;;maxlev=%evar.maxlev;;spouse=%evar.spouse;;"
           title="- [image/images]1">img</a>
        %else;
          <a href="%prefix;%access;;wide=%evar.wide;;maxlev=%evar.maxlev;;spouse=%evar.spouse;;image=on;" title="+ [image/images]1">img</a>
        %end;
      %end;
      <a style="text-decoration:line-through;" href="%prefix;%access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;;cgl=on" title="[cancel GeneWeb links]">@</a>
      %if;has_referer;
        <a href="%referer;" title="[back]">&lt;&lt;</a>
      %end;
        <a href="%prefix;" title="[visualize/show/hide/summary]3">^^</a>
    </div>
  %end;
%( <!-- End display menu --> %)

<div class="person_content">
%( <!-- Begin display image, person --> %)
  <div class = "person">
    <h1 class="background_sex_%sex;%if;(has_sosa) h1_border_sosa%end;">  
      %if;(has_public_name or has_qualifiers)
        %self;
      %elseif;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;
      <small>%apply;link_dates("self")</small>
    </h1>
    %if;has_image;
    <div>
     <a target="blank" href="%image_html_url;">
       <img style="width:150px; border: 0; clear: both;" src="%image_url;" alt="[image/images]0"%/>
     </a>
    </div>
    %end;
    <p class="data1">
      %if;has_sosa;
        <em>%nn;
          %if;cancel_links;[*Sosa] : %sosa;
          %else;<a href="%prefix;m=A;t=D;i=%sosa_ref.index;;i1=%index;;l=%max_desc_level;">[*Sosa] : %sosa;</a>%nn;
          %end;
        </em>
        <br%/>
      %end;
      %if;has_qualifiers;
        %foreach;qualifier;
          %( <!-- Begin personalization mickroue --> %)
            %if;is_first;
              %if;(title=", <em>Cousin</em>")
                <strong><a target="blank" href="http://gw.geneanet.org/index.php3?b=%qualifier&amp;lang=fr;m=N;v=%surname;" title="Arbre en ligne sur Geneanet">Arbre en ligne</a></strong><br%/>
              %end;
            %end;
          %( <!-- End personalization mickroue --> %)
          %if;not is_first;
            %if;has_public_name;%public_name; %qualifier;
            %else;%first_name; %qualifier;
            %end;
            <br%/>
          %end;
        %end;
      %end;
      %if;has_aliases;
        %foreach;alias;
          <em><strong>%alias;</strong></em><br%/>
        %end;
      %end;
      %if;has_nobility_titles;
        <em>
          %foreach;nobility_title;
            %nobility_title;<br%/>
          %end;
        </em>
      %end;
      %if;(has_linked_pages and 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;)%nn;
        </em>
        <br%/>
      %end;
      %if;has_surnames_aliases;
        %foreach;surname_alias;
          <em>(%first_name; %surname_alias;)</em><br%/>
        %end;
      %end;
      %if;has_first_names_aliases;
        %foreach;first_name_alias;
          <em>(%first_name_alias; %surname;)</em><br%/>
        %end;
      %end;
    </p>
    %if;(has_occupation or has_birth_date or has_birth_place or
      has_baptism_date or has_baptism_place or is_dead or is_buried or
      is_cremated or has_consanguinity or (has_linked_pages and has_linked_page.OCCU))
      <p class="data2">
        %if;has_occupation;
          <span class="highlight">%apply;capitalize%with;%occupation;%end;</span><br%/>
        %end;
        %if;(has_linked_pages and has_linked_page.OCCU)
             %linked_page.OCCU;<br%/>
        %end;
        %if;has_birth_date;
          %apply;capitalize(nth([born],sex)) %on_birth_date;
          %if;birthday; ([happy birthday to you!])%end;
          %if;has_birth_place;, %birth_place;%end;<br%/>
        %else;
          %if;has_birth_place;
            %apply;capitalize(nth([born],sex)), %birth_place;<br%/>
          %end;
        %end;
        %if;(father_age_at_birth != "" or mother_age_at_birth != "")
             (%nn;
              %if;(father_age_at_birth!="")[father/mother]0 %father_age_at_birth;%nn;
                %if;(mother_age_at_birth!=""), %end;
              %end;
              %if;(mother_age_at_birth!="")[father/mother]1 %mother_age_at_birth;%end;
              )<br%/>
        %end;
        %if;has_baptism_date;
          %apply;capitalize(nth([baptized],sex)) %on_baptism_date;
          %if;has_baptism_place;, %baptism_place;%end;<br%/>
        %else;
          %if;has_baptism_place;
            %apply;capitalize(nth([baptized],sex)), %baptism_place;<br%/>
          %end;
        %end;
        %if;is_dead;
          %apply;capitalize(died)
          %if;has_death_date; %on_death_date;%end;
          %if;has_death_place;, %death_place;%end;<br%/>
          %if;computable_death_age;
               [age at death:] %death_age;<br%/>
          %end;
          %if;has_linked_page.DEATH;
               %linked_page.DEATH;<br%/>
          %end;
          %if;is_buried;
            %apply;capitalize(nth([buried],sex))
            %if;has_burial_date; %on_burial_date;%end;
            %if;has_burial_place;, %burial_place;%end;<br%/>
          %end;
          %if;is_cremated;
            %apply;capitalize(nth([cremated],sex))
            %if;has_cremation_date; %on_cremation_date;%end;
            %if;has_cremation_place;, %cremation_place;%end;<br%/>
          %end;
        %end;
        %if;computable_age;
          [*age] : %age;<br%/>
        %end;
        %if;(has_consanguinity and (bvar.show_consang != "no" or manitou))
          %if;(cancel_links)
            [*consanguinity] : %consanguinity;
          %else;
            <a href="%prefix;em=R;ei=%mother.index;;m=NG;t=PN;select=%father.index;;et=A;spouse=on;image=on"  title="[relationship computing], [*parents]">[*consanguinity] : %consanguinity;</a>
          %end;
        %end;
      </p>
    %end;
    %if;(not cancel_links and has_linked_pages)
      <small style = "float: right;">
        (<a href="%prefix;m=LINKED;%access;">[linked pages]</a>)
      </small>
    %end;
  </div>
%( <!-- End display image, person --> %)
%( <!-- Begin display linked pages : Images --> %)
    %if;(bvar.var_img_ext != "" and (has_linked_pages or wizard))
      <div class = "notes">
        %empty_sorted_list;
        %reset_count;
        <ul class="list_no_style">
          %if;(bvar.var_n_BIRTH > 0)
            %if;(has_birth_date)
              %apply;display_images("BIRTH","A","birth",0,bvar.var_n_BIRTH)
            %elseif;(has_baptism_date)
              %apply;display_images("BIRTH","A","baptism",0,bvar.var_n_BIRTH)
            %end;
          %end;
          %if;(bvar.var_n_MARRIAGE > 0)
            %if;(has_families)
              %foreach;family
                %if;(on_marriage_date != "")
                  %apply;display_images("MARRIAGE","A","marriage",0,bvar.var_n_MARRIAGE)
                %end;
              %end;
            %end;
          %end;
          %if;(bvar.var_n_DEATH > 0)
            %if;(has_death_date)
              %apply;display_images("DEATH","A","death",0,bvar.var_n_DEATH)
            %elseif;(has_burial_date)
              %apply;display_images("DEATH","A","burial",0,bvar.var_n_DEATH)
            %elseif;(has_cremation_date)
              %apply;display_images("DEATH","A","cremated",0,bvar.var_n_DEATH)
            %end;
          %end;
          %if;(bvar.var_n_OTHER > 0)
            %apply;display_images("OTHER","A","other",0,bvar.var_n_OTHER)
          %end;
        </ul>
        %if;(wizard and not cancel_links)
          <div id="l_images" class="menu" style="margin-left: 2em; clear: both; position: relative;">
            %foreach;sorted_list_item;
              %if;(item.2 != "")
                <span><a href="#l_images" title="[add] [linked pages]">%item.2;</a>
                <span class="s_menu">
              %end;
              %item.3;
              %if;(next_item.2 != "")</span></span>%end;
            %end;
            </span></span>
          </div>
        %end;
      </div>
    %end;
%( <!-- End display linked pages : Images --> %)
%( <!-- Begin display notes, relations, sources --> %)
    %if;(has_notes or has_linked_pages)
      %if;(has_notes or has_linked_page.BNOTE or has_linked_page.NOTE)
      <div class = "notes"><h3>[*note/notes]1</h3>
        <dl><dd>
          %if;(has_linked_page.BNOTE)
            <p>&gt;&gt; %linked_page.BNOTE;</p>
          %end;
          %notes;
        </dd></dl>
      </div>
      %end;
    %end;
    %if;has_relations;
      <div class = "relations">
        <h3>[*relation/relations]1</h3>
        <ul class="list_no_style">
          %foreach;relation;
            %( <!-- Begin personalization mickroue --> %)
            %if;(relation_type = [foster father/foster mother/foster parents]0 
              or relation_type = [foster father/foster mother/foster parents]1
              or relation_type = [foster father/foster mother/foster parents]2)
              %if;(has_relation_him and relation_him.has_image)
                <li class="image_sheet">
                  %apply;link_image("relation_him")
                  %apply;somebody("relation_him")
                </li>
              %elseif;(has_relation_him)
                <li class="sheet">%apply;capitalize(relation_type) :
                  <ul class="list_no_style">
                    <li class="border_family_1 border_sex_0">%apply;somebody("relation_him")</li>
                  </ul>
                </li>
              %end;
              %if;(has_relation_her and relation_her.has_image)
                <li class = "image_sheet">
                  %apply;link_image("relation_her")
                  %apply;somebody("relation_her")
                </li>
              %elseif;(has_relation_her)
                <li class="sheet">%apply;capitalize(relation_type) :
                  <ul class="list_no_style">
                    <li class="border_family_1 border_sex_1">%apply;somebody("relation_her")</li>
                  </ul>
                </li>
              %end;
            %( <!-- End personalization mickroue --> %)
            %else;
              <li class="sheet"><em>%apply;relation_computing()</em>
                <ul class="list_no_style">
                  %if;has_relation_him;
                    <li class="border_family_1 border_sex_0">%apply;somebody("relation_him")</li>
                  %end;
                  %if;has_relation_her;
                    <li class="border_family_1 border_sex_1">%apply;somebody("relation_her")</li>
                  %end;
                </ul>
              </li>
            %end;
          %end;
          %foreach;related;
             %( <!-- Begin personalization mickroue --> %)
            %if;(related.has_image
              and (related_type = [foster son/foster daughter/foster child]0 
              or related_type = [foster son/foster daughter/foster child]1
              or related_type = [foster son/foster daughter/foster child]2))
              <li class="image_sheet">
                %apply;link_image("related")
                %if;(cancel_links or xx.is_restricted)
                  %related.public_name; %related.qualifier;
                %else;
                  <a href="%prefix;%related.access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;">%related.public_name; %related.qualifier;</a>&nbsp;
                %end;
              </li>
              %( <!-- End personalization mickroue --> %)
            %else;
              <li class="sheet"><em>%apply;related_computing()</em>
                <ul class="list_no_style">
                  <li class="border_family_1 border_sex_%related.sex;">%apply;somebody("related")</li>
                </ul>
              </li>
            %end;
          %end;
          %reset_count;
          %foreach;witness_relation;
            %if;(count = 0)
              <li class="sheet"><em>%apply;witness_computing()</em>
              <table class="t_witness" summary="[witness at marriage of %s and %s:::x:y]">
            %end;
            <tr>
              <td>%apply;somebody("witness_relation.father")</td>
              <td>%apply;link_marriage()</td>
              <td>%apply;somebody("witness_relation.mother")</td>
            </tr>
            %incr_count;
          %end;
          %if;(count > 0)
            </table>
            %if;(count > 5)
              <em>[*total] : %count;</em>
            %end;
            </li>
          %end;
        </ul>
      </div>
    %end;
    %if;(has_sources or has_linked_page.BIBLIO)
      <div class = "sources"><h3>[*source/sources]1</h3>
        <ul>
          %if;(has_linked_page.BIBLIO)<li>&gt;&gt; %linked_page.BIBLIO;</li>%end;
          %foreach;source;
            <li>%source_type; : %source;</li>
          %end;
        </ul>
      </div>
    %end;
%( <!-- End display notes, relations, sources --> %)
</div>

%( <!-- Begin display families --> %)
    %apply;anc_families()
    %if;has_families;
      <div class="fam fam1">
        <h3>[*marriage/marriages]1 [and::child/children]1%nn;
          %if;(evar.maxlev > 0)
            … [the grandchildren]%nn;
          %end;
          %if;(evar.maxlev > 1)
            … [the great-grandchildren]%nn;
          %end;
          %if;(evar.maxlev > 2)
            …
          %end;
          %if;(not cancel_links)
          <span class="menu3">
            <a id="fff" href="%prefix;%access;;wide=%evar.wide;;maxlev=%expr(evar.maxlev+1);image=%evar.image;;spouse=%evar.spouse;;#fff" title="[visualize/show/hide/summary]1 [descendants] : %expr(evar.maxlev+2)">…</a>
            %if;(evar.maxlev > 0)
               <a style="text-decoration:line-through;" href="%prefix;%access;;wide=%evar.wide;;maxlev=0;image=%evar.image;;spouse=%evar.spouse;" title="[visualize/show/hide/summary]2 [descendants]">…</a>
            %end;
            %if;(evar.spouse = "off")
              <a href="%prefix;%access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;" title="[include spouses]">&hearts;</a>
            %else;
              <a style="text-decoration:line-through;" href="%prefix;%access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=off;" title="[spouses not included]">&hearts;</a>
            %end;
          </span>
          %end;
        </h3>
        %foreach;family;
          <ul><li>
            %if;(wizard and not cancel_links)
              %if;(family_cnt != 1)
                <a class="button" href="%prefix;m=INV_FAM;i=%index;;f=%family.index;
                " title="[invert] [family/families]0">^</a>
                %if;(family.father.index = prev_family.father.index
                  and family.mother.index = prev_family.mother.index)
                  <a class="button" href=%nn;
                  "%prefix;m=MRG_FAM;i=%prev_family.index;;i2=%family.index;
                  ;ip=%index;">%nn;
                  [*merge::]</a>
                %end;
              %end;
            %end;
            %apply;content_family("self","spouse")
            %if;(evar.opt = "from" and wizard)<em>(%origin_file;)</em>%nl;%end;
          </li></ul>
        %end;
      </div>
    %else;
      %if; (wizard and not cancel_links)
        <div class="fam fam1">
          %if;((first_name = "?" or surname = "?") and
            (nb_families != 0 or has_parents))
          %elseif;(not is_male and not is_female)
            <a class="button" href="%prefix;m=ADD_FAM;ip=%index;;sex=M" target="_blank">%nn;
            [*add::family/families]0 ([M/F]0)</a>
            <br%/>
            <a class="button" href="%prefix;m=ADD_FAM;ip=%index;;sex=F" target="_blank">%nn;
            [*add::family/families]0 ([M/F]1)</a>
            <br%/>
          %else;
            <a class="button" href="%prefix;m=ADD_FAM;ip=%index;" title="[add::family/families]0 (A)" target="_blank">[*add::family/families]0 (A)</a>
            <br%/>
          %end;
        </div>
      %end;
    %end;
%( <!-- End display families --> %)
%( <!-- Begin display menu --> %)
  %if;not cancel_links;
    <div class="menu1">
      %if;wizard;
        <span><a href="%prefix;m=U;%access;" title="[update] (U)" accesskey="U">[*update] (U)</a>
          <span class="s_menu">
            <a href="%prefix;m=MOD_IND;i=%index;" title="[modify::person/persons]0 (P)" accesskey="P" target="_blank">[*modify::person/persons]0 (P)</a>
            %if;(nb_families = 1)
              %foreach;family;
                <a href="%prefix;m=MOD_FAM;i=%family.index;;ip=%index;" title="[modify::family/families]0 (F)"
                 accesskey="F" target="_blank">[*modify::family/families]0 (F)</a>
              %end;
            %end;
            <a href="%prefix;m=ADD_FAM;ip=%index;" title="[add::family/families]0 (A)" accesskey="A" target="_blank">[*add::family/families]0 (A)</a>
            <a href="%prefix;m=SND_IMAGE;i=%index;" title="[send::image/images]0 (I)" accesskey="I">[*send::image/images]0 (I)</a>
            <a href="%prefix;m=MRG;i=%index;">[*merge]0 (oc=%occ;)</a>
          </span>
        </span>
      %end;
      %if;has_parents;
        <span><a href="%prefix;m=A;%access;">[*ancestors]</a>
          <span class="s_menu">
            <a href="%prefix;m=A;t=T;v=%apply;max_anc_v(5);image=on;marriage=on;%access;">[*tree]</a>
            <a href="%prefix;m=A;t=F;v=%expr(max_anc_level+1);i=%index;">[*surnames list]</a>
            <a href="%prefix;m=A;t=F;v=%apply;max_anc_v(5);%access;;opt=fam;cousins=on">[*family/families]0</a>
            <a href="%prefix;m=A;t=N;v=%apply;max_anc_v(8);%access;">[*short display]</a>
            <a href="%prefix;m=A;t=G;v=%apply;max_anc_v(5);siblings=on;spouse=on;parents=on;alias=on;rel=on;witn=on;comm=on;notes=on;src=on;%access;">[*long display]</a>
          </span>
        </span>
      %end;
      %if;has_children;
        <span><a href="%prefix;m=D;%access;">[*descendants]</a>
          <span class="s_menu">
            <a href="%prefix;m=D;t=T;v=%apply;max_desc_v(4);image=on;%access">[*tree]</a>
            <a href="%prefix;m=D;t=A;v=%max_desc_level;;%access">d’Aboville</a>
            <a href="%prefix;m=D;t=L;v=%apply;max_desc_v(3);alwsurn=yes;alias=on;rel=on;spouse=on;parents=on;witn=on;comm=on;notes=on;src=on;%access;">[*long display]</a>
          </span>
        </span>
      %end;
      <span><a href="%prefix;m=R;%access;" title="[relationship computing] (R)" accesskey="R" >[*relationship computing] (R)</a>
        <span class="s_menu">
          %if;(sosa_ref.index != "" and sosa_ref.index != index)
            <a href="%prefix;em=R;ei=%sosa_ref.index;;i=%index;;et=M;spouse=on" title="%self; …[*relationship]… %sosa_ref;">[*relationship] … [Sosa] 1</a>
            <a href="%prefix;em=R;ei=%index;;m=NG;n=1;t=PN;spouse=on;image=on;bd=;color=;et=S" title="%self; …[*shortest path]… %sosa_ref;">
            [*shortest path]</a>
          %end;
          %if;(father.has_siblings or mother.has_siblings)
            <a href="%prefix;%access;;m=C;v1=2;v2=1">[*uncles and aunts]</a>
          %end;
          %if;has_nephews_or_nieces;
            <a href="%prefix;%access;;m=C;v1=1;v2=2">[*nephews and nieces]</a>
          %end;
        </span>
      </span>
    </div>
  %end;
%( <!-- End display menu --> %)
  %if;(not browsing_with_sosa_ref or sosa_ref.index!=index)
    <ul style="clear: both;"><li>
    %apply;nav_with_sosa_ref%with;
        <a class="highlight" href="%prefix_no_iz;iz=%self.index;;%self.access;">%self;</a>
    %end;
    </li></ul>
  %end;
  %if;(wizard and (evar.opt = "misc" or bvar.misc = "on"))
    <div id="misc">
      <form name="syntax" method="get" action="">
        <ul>
          <li><label>wiki : <input onclick="javascript: this.select();" type="text" name="wiki" size="80"
               value="%[%[%first_name_key;/%surname_key;/%occ;/%self;%]%]"%/></label></li>
          <li><label>index : <input onclick="javascript: this.select();" type="text" name="index" size="20"
              value="i=%index;"%/></label></li>
          <li><label>key : <input onclick="javascript: this.select();" type="text" name="key" size="50"
              value="p=%first_name_key;;n=%surname_key;;oc=%occ;"%/></label></li>
              %image;
        </ul>
      </form>
      %misc_names;
    </div>
  %end;
  <div style="clear: both;">
    %base_trailer;
    %copyright;
  </div>
</body>
</html>