<?xml version="1.0" encoding="UTF-8"?>
<window>
	<backgroundcolor>background</backgroundcolor>
	<include>PropertyIncludes</include>
	<defaultcontrol>100</defaultcontrol>
	<onunload>SetProperty(ShowHeader,1,home)</onunload>
	<onunload>AlarmClock(ShowHeader,ClearProperty(ShowHeader,home),00:02,silent)</onunload>
	<onload>SetProperty(onclose,SetFocus(100))</onload>
	<controls>
		<!-- hidden -->
		<control type="list" id="10051">
			<include>HiddenObject</include>
		</control>
		<!-- background -->
		<include>MultiFanartTmdbPerson</include>
		<include>Background</include>
		<!-- views -->
		<control type="grouplist" id="50">
			<include>Window_OpenClose</include>
			<width>100%</width>
			<height>100%</height>
			<orientation>vertical</orientation>
			<usecontrolcoords>true</usecontrolcoords>
			<include>ScrollTime</include>
			<pagecontrol>17</pagecontrol>
			<itemgap>-80</itemgap>
			<!-- Meta -->
			<control type="group">
				<top>90</top>
				<height>480</height>
				<!-- poster -->
				<include>MetaTmdbPoster</include>
				<!-- meta -->
				<control type="group">
					<top>-5</top>
					<left>370</left>
					<right>70</right>
					<control type="label">
						<right>440</right>
						<height>60</height>
						<label>$INFO[Container(10051).ListItem.Label]</label>
						<font>Reg37</font>
						<aligny>top</aligny>
					</control>
					<control type="group">
						<top>60</top>
						<right>440</right>
						<height>40</height>
						<control type="grouplist">
							<height>40</height>
							<itemgap>5</itemgap>
							<orientation>horizontal</orientation>
							<control type="label">
								<label>$VAR[Gender,[CAPITALIZE],[/CAPITALIZE]]   </label>
								<include>MetaLabel</include>
								<visible>!String.IsEmpty(Container(10051).ListItem.Property(gender))</visible>
							</control>
							<control type="label">
								<label>$INFO[Container(10051).ListItem.Property(known_for_department),$LOCALIZE[31372]: ]   </label>
								<include>MetaLabel</include>
								<visible>!String.IsEmpty(Container(10051).ListItem.Property(known_for_department))</visible>
							</control>
							<control type="label">
								<label>$VAR[TmdbFilmographyMovies]   </label>
								<include>MetaLabel</include>
								<visible>Integer.IsGreater(Container(10052).NumItems,0)</visible>
							</control>
							<control type="label">
								<label>$VAR[TmdbFilmographyTVShows]   </label>
								<include>MetaLabel</include>
								<visible>Integer.IsGreater(Container(10053).NumItems,0)</visible>
							</control>
							<control type="label">
								<label>$VAR[TmdbDatabaseEntries]   </label>
								<include>MetaLabel</include>
								<visible>Integer.IsGreater(Container(10051).ListItem.Property(LocalMedia),0)</visible>
							</control>
						</control>
					</control>
					<!-- buttons -->
					<control type="list" id="100">
						<top>88</top>
						<height>130</height>
						<width>100%</width>
						<orientation>horizontal</orientation>
						<defaultcontrol always="true">0</defaultcontrol>
						<onright>noop</onright>
						<onleft>900</onleft>
						<ondown>10052</ondown>
						<include>FocusBounce</include>
						<itemlayout height="130" width="146">
							<include content="IconMenu">
								<param name="id" value="100"/>
							</include>
						</itemlayout>
						<focusedlayout height="130" width="146">
							<include content="IconMenu">
								<param name="id" value="100"/>
								<param name="focused" value="true"/>
							</include>
						</focusedlayout>
						<content>
							<item>
								<label>$LOCALIZE[15067]</label>
								<property name="icon">&#xf206;</property>
								<onclick>Dialog.Close(all)</onclick>
							</item>
							<item>
								<visible>!String.IsEmpty(Container(10051).ListItem.Property(Biography))</visible>
								<label>$LOCALIZE[21887]</label>
								<property name="icon">&#xf9a9;</property>
								<onclick>RunScript(script.embuary.helper,action=textviewer,header='$ESCINFO[Container(10051).ListItem.Label]',message='$ESCINFO[Container(10051).ListItem.Property(Biography)]')</onclick>
							</item>
							<item>
								<visible>Integer.IsGreater(Container(10051).ListItem.Property(LocalMedia),0)</visible>
								<label>$LOCALIZE[15101]</label>
								<property name="icon">&#xf349;</property>
								<onclick>SetProperty(CustomSearch,1,home)</onclick>
								<onclick>Skin.SetString(CustomSearchTerm,$INFO[Container(10051).ListItem.Label])</onclick>
								<onclick>Skin.Reset(CustomSearchEmbyID)</onclick>
								<onclick>Dialog.Close(all)</onclick>
								<onclick>ActivateWindow(1115)</onclick>
								<onclick>AlarmClock(Wait,ClearProperty(CustomSearch,home),00:01,silent)</onclick>
							</item>
						</content>
					</control>
					<!-- bio -->
					<include content="MetaTmdbPersonBio">
						<param name="visible" value="!$EXP[TmbdPersonFacts]"/>
					</include>
					<include content="MetaTmdbPersonBio">
						<param name="visible" value="$EXP[TmbdPersonFacts]"/>
						<param name="right" value="360"/>
					</include>
					<!-- facts -->
					<control type="group">
						<visible>$EXP[TmbdPersonFacts]</visible>
						<top>208</top>
						<right>0</right>
						<width>320</width>
						<control type="label">
							<animation effect="slide" end="0,2" time="0" condition="true">Conditional</animation>
							<width>auto</width>
							<height>40</height>
							<label>$LOCALIZE[31238]</label>
							<font>Reg22</font>
							<aligny>top</aligny>
							<textcolor>$VAR[AccentColor]</textcolor>
						</control>
						<control type="textbox">
							<top>3</top>
							<right>0</right>
							<height>auto</height>
							<align>left</align>
							<aligny>top</aligny>
							<label>$INFO[Container(10051).ListItem.Property(Age),[CR]$LOCALIZE[31171]:   ]$INFO[Container(10051).ListItem.Property(Birthday),[CR]$LOCALIZE[21893]:   ]$INFO[Container(10051).ListItem.Property(Deathday),[CR]$LOCALIZE[21897]:   ]$INFO[Container(10051).ListItem.Property(place_of_birth),[CR]$LOCALIZE[31170]:   ]</label>
							<font>Light24</font>
							<autoscroll>false</autoscroll>
						</control>
					</control>
				</control>
				<!-- logo -->
				<include>MetaClearlogo</include>
			</control>
			<!-- movies -->
			<include content="PosterWidget">
				<param name="id" value="10052"/>
				<param name="onup" value="100"/>
				<param name="ondown" value="10053"/>
				<param name="headline" value="$LOCALIZE[342]"/>
				<param name="mainlabel" value="$INFO[ListItem.Label]"/>
				<param name="sublabel" value="$INFO[ListItem.Year]"/>
				<param name="visible_icon" value="false"/>
				<param name="use_custom_content" value="false"/>
				<param name="property_button" value="false"/>
			</include>
			<!-- shows -->
			<include content="PosterWidget">
				<param name="id" value="10053"/>
				<param name="onup" value="10052"/>
				<param name="ondown" value="10054"/>
				<param name="headline" value="$LOCALIZE[36903]"/>
				<param name="mainlabel" value="$INFO[ListItem.Label]"/>
				<param name="sublabel" value="$INFO[ListItem.Year]"/>
				<param name="visible_icon" value="false"/>
				<param name="use_custom_content" value="false"/>
				<param name="property_button" value="false"/>
			</include>
			<!-- images -->
			<include content="PosterWidget">
				<param name="id" value="10054"/>
				<param name="onup" value="10053"/>
				<param name="ondown" value="noop"/>
				<param name="headline" value="$LOCALIZE[1]"/>
				<param name="mainlabel" value="$INFO[ListItem.Label]"/>
				<param name="visible_icon" value="false"/>
				<param name="use_custom_content" value="false"/>
				<param name="property_button" value="false"/>
				<param name="height" value="551"/>
			</include>
		</control>
		<!-- header bar -->
		<include content="HeaderBar">
			<param name="id">50</param>
			<param name="header_label">TMDb - $INFO[Container(10051).ListItem.Label]</param>
		</include>
		<!-- side panel -->
		<include content="SidePanel">
			<param name="onright">50</param>
		</include>
	</controls>
</window>
