<!--  Arbre 3 generations vertical avec photos -->
%if;has_parents;
<h3 class="highlight h15" style="margin-bottom:10px;"><span>[*preview family tree]</span></h3>
<div style="text-align:center;padding:0px;margin:0px;height:100%%;">
  <table style="width:80%%;margin:auto;line-height:12px;height:100%%;" cellspacing="0" cellpadding="0">
    <tr style="height:100%%;">
      <td style="vertical-align: top;" id="ancestors">
        <table border="%border;" style="border-collapse:separate;height:100%%;margin:auto;" cellspacing="0" cellpadding="0">
          %if;has_parents;
            <tr style="border:0px solid #ff0000;">			
              %if;father.has_parents;
                <!-- grands-parents-->
									<td style="font-size:80%%;vertical-align:bottom;">%nn;<div style="border:1px solid #0288d1;padding:2px;">
                  %if;father.father.has_image;
                    <img %father.father.image_small_size;%sp; style="border:0px solid #0288d1;margin-left:3px;" src="%father.father.image_url;" alt="[image/images]0"%/>
                    <br%/>
                  %end;
                  %apply;short_display_person("father.father")</div></td>
                <td>&nbsp;</td>
                <td style="font-size:80%%;vertical-align:bottom;">%nn;<div style="border:1px solid #0288d1;;padding:2px;">
                  %if;father.mother.has_image;
                    <img %father.mother.image_small_size;%sp; style="border:0px solid #0288d1;margin-left:3px;" src="%father.mother.image_url;" alt="[image/images]0"%/>
                    <br%/>
                  %end;
                  %apply;short_display_person("father.mother")</div></td>
              %else;
                <td colspan="3" rowspan="4">&nbsp;</td>
              %end;
              <td>&nbsp;</td>			  
              %if;mother.has_parents;
                <td style="font-size:80%%;vertical-align:bottom;">%nn;<div style="border:1px solid #0288d1;padding:2px;">
                  %if;mother.father.has_image;
                    <img %mother.father.image_small_size;%sp; style="border:0px solid #0288d1;margin-left:3px;" src="%mother.father.image_url;" alt="[image/images]0"%/>
                    <br%/>
                  %end;
                  %apply;short_display_person("mother.father")</div></td>
                <td>&nbsp;</td>
                <td style="font-size:80%%;vertical-align:bottom;">%nn;<div style="border:1px solid #0288d1;;padding:2px;">
                  %if;mother.mother.has_image;
                    <img %mother.mother.image_small_size;%sp; style="border:0px solid #0288d1;margin-left:3px;" src="%mother.mother.image_url;" alt="[image/images]0"%/>
                    <br%/>
                  %end;
                  %apply;short_display_person("mother.mother")</div></td>
              %else;
                <td colspan="3" rowspan="4">&nbsp;</td>
              %end;
            </tr>
            <tr style="border:0px solid #ff0000;margin:0;padding:0;" >			
              %if;father.has_parents;
                <td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td>
                <td></td>
                <td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td>
              %end;
              <td></td>
              %if;mother.has_parents;
								<td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td>
                <td></td>
                <td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td>
              %end;
            </tr>
            <tr>
              %if;father.has_parents;
                <td align="%right;">
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td align="%left;">
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
              <td></td>
              %if;mother.has_parents;
                <td align="%right;">
                  <hr dir="ltr" width="50%%" align="%right;"%/></td>
                <td><hr width="100%%"%/></td>
                <td align="%left;">
                  <hr dir="ltr" width="50%%" align="%left;"%/></td>
              %end;
            </tr>
            <tr>
							%if;father.has_parents;
								<td></td>
								<td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td><td></td>
							%end;
							<td></td>
							%if;mother.has_parents;
								<td></td>
								<td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td><td></td>
							%end;
            </tr>
          %end;
          <tr style="height:100%%;" >
            <td></td>			
						<td id="bv50" style="font-size:80%%;vertical-align:bottom;overflow:hidden;height:100%%;zoom:1;">%nn;
						%if;father.has_parents;
							<div id="bv51" style="height:100%%;width:1px;background-color:#000;margin:auto;"></div>
						%end;
						<div id="bv52" style="border:1px solid #0288d1;padding:2px;">
            %if;father.has_image;
							<img %father.image_small_size;%sp; style="margin-left:3px;" src="%father.image_url;" style="border: none" alt="[image/images]0"%/>
							<br%/>
            %end;
            %apply;short_display_person("father")</div></td>
            <td></td>
            <td>&nbsp;</td>
            <td></td>			
						<td id="bv60" style="border:0px solid #ff0000;font-size:80%%;vertical-align:bottom;overflow:hidden;">%nn;
						%if;mother.has_parents;
							<div id="bv61" style="height:100%%;width:1px;background-color:#000;margin:auto;"></div>
						%end;
						<div id="bv62" style="border:1px solid #0288d1;padding:2px;">
						%if;mother.has_image;
							<img %mother.image_small_size;%sp; style="margin-left:3px;" src="%mother.image_url;" style="border: none" alt="[image/images]0"%/>
							<br%/>
						%end;
            %apply;short_display_person("mother")</div></td>						
            <td></td>
          </tr>
          <tr>
            <td></td>
						<td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td><td></td>
            <td></td>
						<td></td>
						<td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td><td></td>
          </tr>
          <tr>
            <td></td>
						<td align="%right;">
              <hr dir="ltr" width="50%%" align="%right;"%/></td>
						<td colspan="3"><hr width="100%%"%/></td>
            <td align="%left;">
              <hr dir="ltr" width="50%%" align="%left;"%/></td>
          </tr>
          <tr>
						<td colspan="3"></td><td class="arbre_separateur"><div style="background-color:#000;height:12px;width:1px;margin:auto;"></div></td>
            <td colspan="3"></td>
          </tr>
          <tr>
            <td colspan="3"></td>
						<td style="font-size:80%%;vertical-align:bottom;overflow:hidden;">%nn;
							<div style="border:1px solid #0288d1;padding:2px;">
								%if;self.has_image;
									<img %self.image_small_size;%sp;style="margin-left:3px;" src="%self.image_url;" style="border: none" alt="[image/images]0"%/>
									<br%/>
								%end;
								%apply;short_display_person("self")
							</div>
						</td>
						<td colspan="3"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
%end;