<?xml version="1.0" encoding="UTF-8"?>
<window type="window">
    <defaultcontrol always="true">9000</defaultcontrol>
    <animation effect="fade" time="200">WindowOpen</animation>
    <animation effect="fade" time="150">WindowClose</animation>
    <conload condition="System.AddonIsEnabled(script.embuary.helper)">RunScript(script.embuary.helper,action=resetposition,container=9000||9009||10052||10053||10054)</conload>
    <onload>SetProperty(onclose,SetFocus(9000))</onload>
    <controls>

        <!-- Hide Details list for video -->
		<control type="list" id="10051">
			<itemlayout />
	        <focusedlayout />
            <posx>-20</posx>
			<posy>-20</posy>
			<width>1</width>
			<height>1</height>
		</control>

        <control type="image">
            <width>1920</width>
            <height>1080</height>
            <texture>img/blackdot1.png</texture>
            <aspectratio>scale</aspectratio>
        </control>
        <include>EmbuaryInfoPersonMultiFanart</include>
        <control type="image">
            <width>1920</width>
            <height>1080</height>
            <fadetime>1000</fadetime>
            <texture background="true">$VAR[SubBackground]</texture>
            <aspectratio>scale</aspectratio>
        </control>
        <include content="BackgroundOverlay">
            <param name="parentid" value="9000"/>
        </include>

        <!-- Person Info -->
        <control type="group">
            <top>0</top>
            <left>0</left>
            <!-- Person main image -->
            <include content="ShadowedImage">
                <param name="top">24</param>
                <param name="left">24</param>
                <param name="width">619</param>
                <param name="height">960</param>
                <param name="shadowoffset">16</param>
                <param name="texture">$INFO[Container(10051).ListItem.Art(thumb)]</param>
                <param name="visibility">true</param>
            </include>
            <!-- Person info details -->
            <control type="group" id="300">
                <posx>700</posx>
                <posy>0</posy>
                <control type="label" description="Person name">
                    <posy>10</posy>
                    <width>950</width>
                    <height>60</height>
                    <font>InfoTitle</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(10051).ListItem.Label]</label>
                </control>
                <control type="image" description="Powered by TMDb">
                    <posy>8</posy>
                    <left>995</left>
                    <height>70</height>
                    <width>177</width>
                    <texture>badges/ratings/powered-by-tmdb.png</texture>
                    <aspectratio>keep</aspectratio>
                    <aligny>center</aligny>
                </control>
                <control type="image" description="Line Split">
                    <posy>83</posy>
                    <width>1180</width>
                    <height>1</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="textbox" id="900031" description="Biography">
                    <include>VisibleFadeEffectDelay</include>
                    <posy>90</posy>
                    <left>5</left>
                    <width>620</width>
                    <height>355</height>
                    <align>justify</align>
                    <font>InfoPlot</font>
                    <textcolor>$VAR[InfoPlotTextColor]</textcolor>
                    <shadowcolor>LiteShadow</shadowcolor>
                    <label fallback="19055">$INFO[Container(10051).ListItem.Property(Biography)]</label>
                </control>
                <control type="radiobutton" id="90003">
                    <posy>447</posy>
                    <left>588.3</left>
                    <ondown>9000</ondown>
                    <onright>9009</onright>
                    <align>center</align>
                    <aligny>center</aligny>
                    <textureradioonfocus colordiffuse="$VAR[FocusedTextColor]">icons/dots7.png</textureradioonfocus>
                    <textureradioonnofocus>icons/dots7.png</textureradioonnofocus>
                    <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
                    <texturenofocus border="4">img/WhiteRoundedT.png</texturenofocus>
                    <width>37</width>
                    <height>17</height>
                    <radiowidth>37</radiowidth>
                    <radioheight>37</radioheight>
                    <radioposx>0.1</radioposx>
                    <radioposy>0</radioposy>
                    <font></font>
                    <selected>true</selected>
                    <onclick>SetProperty(TextViewerHeader,$ESCINFO[Container(10051).ListItem.Label],Home)</onclick>
                    <onclick>SetProperty(TextViewerContent,$ESCINFO[Container(10051).ListItem.Property(Biography)],Home)</onclick>
                    <onclick>ActivateWindow(1124)</onclick>
                </control>
                <control type="image" description="Line Split">
                    <posy>90</posy>
                    <left>637</left>
                    <width>1</width>
                    <height>375</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="panel" id="9009">
                    <include>VisibleFadeEffectDelay</include>
                    <include>List_9009_Commons</include>
                    <onup>9009</onup>
                    <ondown>9009</ondown>
                    <onleft>90003</onleft>
                    <content>
                        <item>
                            <label>$LOCALIZE[32082]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Birthday)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Birthday))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32083]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Place_Of_Birth)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Place_Of_Birth))</visible>
                        </item>
                        <item>
                            <label>$VAR[AgeLabel]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Age)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Age))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32085]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Deathday)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Deathday))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32136]:</label>
                            <label2>$VAR[EmbuaryInfoKnownFor]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Known_For_Department))</visible>
                        </item>
                        <item>
							<label>$LOCALIZE[342]:</label>
							<label2>$INFO[Container(10052).NumItems]</label2>
							<visible>Integer.IsGreater(Container(10052).NumItems,0)</visible>
						</item>
                        <item>
							<label>$LOCALIZE[20343]:</label>
							<label2>$INFO[Container(10053).NumItems]</label2>
							<visible>Integer.IsGreater(Container(10053).NumItems,0)</visible>
						</item>
                        <item>
							<label>$LOCALIZE[32134]:</label>
							<label2>$INFO[Container(10051).ListItem.Property(LocalMedia)]</label2>
							<visible>Integer.IsGreater(Container(10051).ListItem.Property(LocalMedia),0)</visible>
						</item>
                    </content>
                </control>
            </control>
            <!-- Buttons -->
            <control type="grouplist" id="9000">
                <left>700</left>
                <posy>527</posy>
                <width>1180</width>
                <height>90</height>
                <align>center</align>
                <onup>90003</onup>
                <ondown>91001</ondown>
                <orientation>horizontal</orientation>
                <defaultcontrol>9001</defaultcontrol>
                <itemgap>16</itemgap>
                <control type="button" id="9001" description="Close">
                    <height>90</height>
                    <width min="220">auto</width>
                    <align>center</align>
                    <font>Details</font>
                    <label>$LOCALIZE[15067]</label>
					<onclick>Dialog.Close(all)</onclick>
                </control>
            </control>
            <!-- Info Lists for person -->
            <control type="grouplist" id="91001">
                <posx>700</posx>
                <posy>622</posy>
                <width>1180</width>
                <height>450</height>
                <scrolltime tween="quadratic">400</scrolltime>
                <onup>9000</onup>
                <orientation>vertical</orientation>
                <itemgap>-44</itemgap>
                <defaultcontrol always="true">10052</defaultcontrol>
                <usecontrolcoords>true</usecontrolcoords>
				<control type="group" id="10099"></control>
                <!-- Movies -->
                <control type="group" id="100521">
        		    <top>44</top>
			        <height>44</height>
					<visible>Integer.IsGreater(Container(10052).NumItems,0) | Container(10052).IsUpdating</visible>
                    <control type="label">
                        <left>8</left>
                        <top>0</top>
                        <height>30</height>
                        <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[342] $INFO[Container(10052).NumItems,(,)][/COLOR]</label>
                        <font>ListDetails</font>
                    </control>
                    <control type="image" description="Line Split">
		                <top>40</top>
                        <left>10</left>
			            <width>1180</width>
				        <height>1</height>
				        <texture>img/LineL.png</texture>
				        <aspectratio>stretch</aspectratio>
				    </control>
                </control>
			    <control type="panel" id="10052">
				    <top>44</top>
                    <left>10</left>
                    <width>1180</width>
                    <height>410</height>
                    <orientation>horizontal</orientation>
				    <preloaditems>2</preloaditems>
					<visible>Integer.IsGreater(Container(10052).NumItems,0) | Container(10052).IsUpdating</visible>
				    <scrolltime tween="quadratic" easing="out">300</scrolltime>
                    <include content="CastLayout">
                        <param name="viewid">10052</param>
                        <param name="belowdoublelabelvisibility">true</param>
                        <param name="belowdoublelabel1">$INFO[ListItem.Label] ($INFO[ListItem.Year])</param>
			            <param name="belowdoublelabel2">[I]$INFO[ListItem.Property(Role)][/I]</param>
                        <param name="belowlabelvisibility">false</param>
                    </include>
			    </control>
                <!-- TV Shows -->
                <control type="group" id="100531">
                    <top>44</top>
					<height>44</height>
                    <visible>Integer.IsGreater(Container(10053).NumItems,0) | Container(10053).IsUpdating</visible>
                    <control type="label">
                        <left>8</left>
                        <top>0</top>
                        <height>30</height>
                        <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[36903] $INFO[Container(10053).NumItems,(,)][/COLOR]</label>
                        <font>ListDetails</font>
                    </control>
                    <control type="image" description="Line Split">
   		                <top>40</top>
                        <left>10</left>
    	                <width>1180</width>
		                <height>1</height>
		                <texture>img/LineL.png</texture>
		                <aspectratio>stretch</aspectratio>
		            </control>
				</control>
                <control type="panel" id="10053">
			        <top>44</top>
                    <left>10</left>
                    <width>1180</width>
                    <height>410</height>
                    <orientation>horizontal</orientation>
		            <preloaditems>2</preloaditems>
				    <visible>Integer.IsGreater(Container(10053).NumItems,0) | Container(10053).IsUpdating</visible>
			        <scrolltime tween="quadratic" easing="out">300</scrolltime>
                    <include content="CastLayout">
                        <param name="viewid">10053</param>
                        <param name="belowdoublelabelvisibility">true</param>
                        <param name="belowdoublelabel1">$INFO[ListItem.Label]</param>
			            <param name="belowdoublelabel2">[I]$INFO[ListItem.Property(Role)][/I]</param>
                        <param name="belowlabelvisibility">false</param>
                    </include>
			    </control>
                <!-- Pictures -->
                <control type="group" id="100541">
                    <top>44</top>
					<height>44</height>
                    <visible>Integer.IsGreater(Container(10054).NumItems,1) | Container(10054).IsUpdating</visible>
                    <control type="label">
                        <left>8</left>
                        <top>0</top>
                        <height>30</height>
                        <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[1] $INFO[Container(10054).NumItems,(,)][/COLOR]</label>
                        <font>ListDetails</font>
                    </control>
                    <control type="image" description="Line Split">
			            <top>40</top>
                        <left>10</left>
			            <width>1180</width>
			            <height>1</height>
			            <texture>img/LineL.png</texture>
			            <aspectratio>stretch</aspectratio>
			        </control>
                </control>
		        <control type="panel" id="10054">
			        <top>44</top>
                    <left>10</left>
                    <width>1180</width>
                    <height>410</height>
                    <orientation>horizontal</orientation>
         	        <preloaditems>2</preloaditems>
			        <scrolltime tween="quadratic" easing="out">300</scrolltime>
                    <include content="CastLayout">
                        <param name="viewid">10054</param>
                        <param name="belowdoublelabelvisibility">false</param>
                        <param name="belowlabel">$INFO[ListItem.Label]</param>
                        <param name="belowlabelvisibility">true</param>
                        <param name="belowlabelheight">74</param>
                    </include>
		        </control>
            </control>
        </control>
    </controls>
</window>