<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">100</defaultcontrol>
	<onload condition="$EXP[AutoCloseInfoDialog]">close</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(200,$INFO[Container(200).CurrentItem,-])</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(200,1)</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(201,$INFO[Container(201).CurrentItem,-])</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(201,1)</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(202,$INFO[Container(202).CurrentItem,-])</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(202,1)</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(203,$INFO[Container(203).CurrentItem,-])</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(203,1)</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(204,$INFO[Container(204).CurrentItem,-])</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(204,1)</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(205,$INFO[Container(205).CurrentItem,-])</onload>
	<onload condition="!$EXP[AutoCloseInfoDialog]">Control.Move(205,1)</onload>
	<include>PropertyIncludes</include>
	<controls>
		<control type="button" id="8">
			<include>HiddenObject</include>
		</control>
		<control type="button" id="11">
			<include>HiddenObject</include>
		</control>
		<control type="group">
			<visible>!$EXP[AutoCloseInfoDialog]</visible>
			<!-- Hidden -->
			<control type="list" id="2000">
				<include>HiddenObject</include>
				<content limit="1">$VAR[ListItemFullInfo]</content>
			</control>
			<control type="list" id="50">
				<include>HiddenObject</include>
			</control>
			<!-- Content -->
			<include condition="String.IsEqual(ListItem.DBType,movie) + [!String.StartsWith(ListItem.Path,plugin://) | String.StartsWith(ListItem.Path,plugin://plugin.video.emby) | String.StartsWith(ListItem.Path,plugin://script.embuary.helper) | String.StartsWith(ListItem.Path,plugin://plugin.video.plexkodiconnect)]">MovieInfoLayout</include>
			<include condition="String.IsEqual(ListItem.DBType,tvshow) + [!String.StartsWith(ListItem.Path,plugin://) | String.StartsWith(ListItem.Path,plugin://plugin.video.emby) | String.StartsWith(ListItem.Path,plugin://script.embuary.helper) | String.StartsWith(ListItem.Path,plugin://plugin.video.plexkodiconnect)]">TVShowInfoLayout</include>
			<include condition="String.IsEqual(ListItem.DBType,episode) + [!String.StartsWith(ListItem.Path,plugin://) | String.StartsWith(ListItem.Path,plugin://plugin.video.emby) | String.StartsWith(ListItem.Path,plugin://script.embuary.helper) | String.StartsWith(ListItem.Path,plugin://plugin.video.plexkodiconnect)]">EpisodeInfoLayout</include>
			<include condition="[!String.IsEqual(ListItem.DBType,movie) + !String.IsEqual(ListItem.DBType,tvshow) + !String.IsEqual(ListItem.DBType,episode)] | [String.StartsWith(ListItem.Path,plugin://) + !String.StartsWith(ListItem.Path,plugin://plugin.video.emby) + !String.StartsWith(ListItem.Path,plugin://script.embuary.helper) + !String.StartsWith(ListItem.Path,plugin://plugin.video.plexkodiconnect)]">TinyInfoLayout</include>
			<!-- Menu control -->
			<control type="group">
				<include>FullscreenDimensions</include>
				<include content="DiffuseMask">
					<param name="visible">ControlGroup(4000).HasFocus + !Window.IsVisible(selectdialog) + !Window.IsVisible(filebrowser) + !Window.IsVisible(DialogConfirm.xml)</param>
				</include>
				<control type="group">
					<visible>ControlGroup(4000).HasFocus + !Window.IsVisible(selectdialog) + !Window.IsVisible(filebrowser) + !Window.IsVisible(DialogConfirm.xml)</visible>
					<include>Visible_PopupOpenClose</include>
					<centerleft>50%</centerleft>
					<width>500</width>
					<centertop>50%</centertop>
					<height>982</height>
					<control type="grouplist" id="4000">
						<orientation>vertical</orientation>
						<height>auto</height>
						<align>center</align>
						<itemgap>0</itemgap>
						<onright>100</onright>
						<onleft>100</onleft>
						<onback>103</onback>
						<usecontrolcoords>true</usecontrolcoords>
						<control type="image" id="4001">
							<width>100%</width>
							<height>61</height>
							<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/top.png</texture>
						</control>
						<control type="button" id="6">
							<include content="ContextButton"/>
							<label>$LOCALIZE[184]</label>
						</control>
						<control type="button" id="10">
							<include content="ContextButton"/>
							<label>$LOCALIZE[20413]</label>
						</control>
						<control type="image" id="4002">
							<width>100%</width>
							<height>61</height>
							<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/bottom.png</texture>
						</control>
					</control>
				</control>
			</control>
		</control>
	</controls>
</window>
