<?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>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>
					<!-- meta -->
					<control type="group">
						<top>60</top>
						<right>440</right>
						<height>40</height>
						<include>MetaTmbdVideoInfo</include>
					</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.DBID) + !String.IsEqual(Container(10051).ListItem.Property(call),tv)</visible>
								<label>$LOCALIZE[208]</label>
								<property name="icon">&#xf40a;</property>
								<onclick>RunScript(script.embuary.helper,action=playitem,dbid=$INFO[Container(10051).ListItem.DBID])</onclick>
							</item>
							<item>
								<visible>!String.IsEmpty(Container(10051).ListItem.DBID) + String.IsEqual(Container(10051).ListItem.Property(call),tv)</visible>
								<label>$LOCALIZE[1024]</label>
								<property name="icon">&#xf24b;</property>
								<onclick>RunScript(script.embuary.helper,action=goto,path='"videodb://tvshows/titles/$INFO[Container(10051).ListItem.DBID]/"',target=videos)</onclick>
							</item>
							<item>
								<visible>!String.IsEmpty(Container(10051).ListItem.Plot)</visible>
								<label>$LOCALIZE[207]</label>
								<property name="icon">&#xf9a9;</property>
								<onclick>RunScript(script.embuary.helper,action=textviewer,header='$ESCINFO[Container(10051).ListItem.Label]',message='$ESCINFO[Container(10051).ListItem.Plot]')</onclick>
							</item>
						</content>
					</control>
					<!-- plot -->
					<include content="MetaTmdbVideoPlot">
						<param name="visible" value="!$EXP[TmbdVideoFacts]"/>
					</include>
					<include content="MetaTmdbVideoPlot">
						<param name="visible" value="$EXP[TmbdVideoFacts]"/>
						<param name="right" value="360"/>
					</include>
					<!-- facts -->
					<control type="group">
						<visible>$EXP[TmbdVideoFacts]</visible>
						<top>209</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>$VAR[TmdbFacts]</label>
							<font>Light24</font>
							<autoscroll>false</autoscroll>
							<include content="FakeFadeLabel">
								<param name="condition" value="!String.IsEmpty(Container(10051).ListItem.Property(Awards))"/>
							</include>
						</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(awards),[CR]$LOCALIZE[31137]:   ]</label>
							<font>Light24</font>
							<autoscroll>false</autoscroll>
							<include content="FakeFadeLabel2">
								<param name="condition" value="!String.IsEmpty(Container(10051).ListItem.Property(awards))"/>
							</include>
						</control>
					</control>
				</control>
				<!-- logo -->
				<include>MetaClearlogo</include>
			</control>
			<!-- cast -->
			<include content="PosterWidget">
				<param name="id" value="10052"/>
				<param name="onup" value="100"/>
				<param name="ondown" value="10056"/>
				<param name="headline" value="$LOCALIZE[206]"/>
				<param name="mainlabel" value="$INFO[ListItem.Label]"/>
				<param name="sublabel" value="$INFO[ListItem.Label2,$LOCALIZE[20347] ]"/>
				<param name="visible_icon" value="false"/>
				<param name="use_custom_content" value="false"/>
				<param name="property_button" value="false"/>
			</include>
			<!-- crew / guest stars-->
			<include content="PosterWidget">
				<param name="id" value="10056"/>
				<param name="onup" value="10052"/>
				<param name="ondown" value="10057"/>
				<param name="headline" value="$VAR[TmdbCrewLabel]"/>
				<param name="mainlabel" value="$INFO[ListItem.Label]"/>
				<param name="sublabel" value="$INFO[ListItem.Label2]"/>
				<param name="visible_icon" value="false"/>
				<param name="use_custom_content" value="false"/>
				<param name="property_button" value="false"/>
			</include>
			<!-- sets -->
			<include content="PosterWidget">
				<!--<param name="visible" value="Integer.IsGreater(Container(10057).NumItems,1)"/>-->
				<param name="id" value="10057"/>
				<param name="onup" value="10056"/>
				<param name="ondown" value="10058"/>
				<param name="headline" value="$INFO[Container(10051).ListItem.Property(collection)]"/>
				<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>
			<!-- seasons -->
			<include content="PosterWidget">
				<param name="visible" value="Integer.IsGreater(Container(10058).NumItems,1)"/>
				<param name="id" value="10058"/>
				<param name="onup" value="10057"/>
				<param name="ondown" value="10053"/>
				<param name="headline" value="$LOCALIZE[33054]"/>
				<param name="mainlabel" value="$INFO[ListItem.Title]"/>
				<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>
			<!-- similar -->
			<include content="PosterWidget">
				<param name="id" value="10053"/>
				<param name="onup" value="10058"/>
				<param name="ondown" value="10054"/>
				<param name="headline" value="$LOCALIZE[31021]"/>
				<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>
			<!-- yt -->
			<include content="WideWidget">
				<param name="id" value="10054"/>
				<param name="onup" value="10053"/>
				<param name="ondown" value="10055"/>
				<param name="headline" value="YouTube"/>
				<param name="mainlabel" value="$INFO[ListItem.Label]"/>
				<param name="sublabel" value="$INFO[ListItem.Label2]"/>
				<param name="ar" value="scale"/>
				<param name="visible_icon" value="true"/>
				<param name="use_custom_content" value="false"/>
				<param name="property_button" value="false"/>
			</include>
			<!-- images -->
			<include content="WideWidget">
				<param name="id" value="10055"/>
				<param name="onup" value="10054"/>
				<param name="ondown" value="10059"/>
				<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="438"/>
			</include>
			<!-- posters -->
			<include content="PosterWidget">
				<param name="id" value="10059"/>
				<param name="onup" value="10055"/>
				<param name="ondown" value="noop"/>
				<param name="headline" value="$LOCALIZE[20021]"/>
				<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>
