<hr class="hr1" style="margin-bottom:15px;margin-top:10px;">

%if;(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 and bvar.show_consang!="no") or
			has_occupation or has_linked_page.OCCU !="")
			<table border="%border;"><tr style="border:0px solid #0288d1;padding:2px;">
	  <!--  Portrait -->
	  %if;has_image;
		  <td valign="top" style="border:1px solid #0288d1;padding:2px;margin:0px;line-height:0px">
			<a href="%image_url;" target="_blank">
			  <!--<img src="%image_url;"%image_size; alt="[image/images]0" class="fiche_photo"%/>
			  <img  id="portrait1" src="%image_url;" style="width:100px;" alt="[image/images]0" class="fiche_photo"%/>-->
			  <img id="portrait1" src="%image_url;" alt="[image/images]0"%/>
			</a>
		  </td>

			<!-- dimensions portrait -->
			<span id="portrait2" style="display:none;">%image_size;</span>
			<script type="text/javascript">
				var dims = document.getElementById("portrait2").innerHTML;
				deb = dims.indexOf('"', 0)
				fin = dims.indexOf('"', deb + 1)
				w = dims.substring(deb + 1, fin);
				deb = dims.indexOf('"', fin + 1)
				fin = dims.indexOf('"', deb + 1)
				h = dims.substring(deb + 1, fin);
				if (w > h) {document.getElementById("portrait1").width = "100";	}
				if (h > w) {document.getElementById("portrait1").height = "100";	}
				if (w == h) {document.getElementById("portrait1").width = "100";	}
			</script>

		%else
			%if;is_female;
			<td valign="top" style="border:0px solid #0288d1;padding:2px;margin-top:-10px;line-height:0px">
			<img id="portrait1" src="%image_prefix;/templ_clp/img_unknown_woman.png" style="width:50px;height:50px;margin-top:-2px;" alt="[image/images]0"%/>
			 </td>
			%end;
			%if;is_male;
			<td valign="top" style="border:0px solid #0288d1;padding:2px;line-height:0px">
			<img id="portrait1" src="%image_prefix;/templ_clp/img_unknown_man.png" style="width:50px;height:50px;margin-top:-2px;" alt="[image/images]0"%/>
			 </td>
			%end;
	  %end;

	  <td valign="top">
	  <!--  <h3 class="etat_civil">[*etat civil]</h3> -->
	  <ul>
		%if;has_birth_date;
		  <li>%apply;capitalize(nth([born],sex)) %on_birth_date;
		  %if;birthday; ([happy birthday to you!])%end;
		  %if;has_birth_place; - <span id="span1">%birth_place;</span>%end;</li>%nl;
		  %if;computable_age;<li>[*age] : %age;</li>%end;
		%else;
		  %if;has_birth_place;
			<li>%apply;capitalize(nth([born],sex)) - <span id="span2">%birth_place;</span></li>%nl;
		  %end;
		%end;
		%if;has_baptism_date;
		  <li>%apply;capitalize(nth([baptized],sex)) %on_baptism_date;
		  %if;has_baptism_place; - <span id="span3">%baptism_place;</span>%end;</li>%nl;
		%else;
		  %if;has_baptism_place;
			<li>%apply;capitalize(nth([baptized],sex)) - <span id="span4">%baptism_place;</span></li>%nl;
		  %end;
		%end;
		%if;is_dead;
		  <li>%apply;capitalize(died)
		  %if;has_death_date; %on_death_date;%end;
		  %if;has_death_place; - <span id="span5">%death_place;</span>%end;
		  %if;(has_linked_page.DEATH !="")%linked_page.DEATH;%end;
		  %if;computable_death_age;, [age at death:] %death_age;%end;</li>%nl;
		%end;
		%if;is_buried;
		  <li>%apply;capitalize(nth([buried],sex))
		  %if;has_burial_date; %on_burial_date;%end;
		  %if;has_burial_place; - <span id="span6">%burial_place;</span>%end;</li>%nl;
		%end;
		%if;is_cremated;
		  <li>%apply;capitalize(nth([cremated],sex))
		  %if;has_cremation_date; %on_cremation_date;%end;
		  %if;has_cremation_place; - <span id="span7">%cremation_place;</span>%end;</li>%nl;
		%end;
		%if;has_occupation;
		  <li>%apply;capitalize(occupation)</li>%nl;
		%end;
		%if;(has_linked_page.OCCU)
		  <li>%apply;capitalize(linked_page.OCCU)</li>%nl;
		%end;
	</ul>

	<ul style="list-style-type:none;">
	<li>%if;(has_children)
	  %foreach;descendant_level;
		%if;(level = max_desc_level)
		%number_of_descendants; [descendants] / %level; [generation/generations]1%nl;
		%end;
	  %end;
	%end;
	%if;(has_parents)
	%reset_count;
	  %foreach;ancestor_level
		%if;(level = max_anc_level)
		 - %number_of_ancestors; [ancestors] / %level; [generation/generations]1%nl;
		%end;
		%foreach;ancestor
		  %if;(ancestor.same != "")
			%incr_count;
		  %end;
		%end;
	  %end;
	%end;
	%if;(bvar.show_consang!="no")
		%if;(consanguinity != "0%")
		  - <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>
		%else;
		- [consanguinity] : 0
		%end;
	%end;</li></ul>
</td></tr>

</table>
%end;