<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">9000</defaultcontrol>
	<controls>

		<control type="group" id="9001">
			<defaultcontrol>9002</defaultcontrol>
			<top>30</top>
			<visible>$EXP[InfoDialogsCondition] + !Window.IsActive(AddonSettings)</visible>
			<include>InfoDialogs_OpenCloseAnimation</include>
			<control type="group">
				<left>45</left>
				<top>115</top>
				<include>InfoDialogsThumb</include>
				<include content="InfoDialogsHeadTitle">
					<param name="left" value="276"/>
					<param name="width" value="910"/>
				</include>
			</control>

			<!-- Sub Labels -->
			<control type="group">
				<left>320</left>
				<top>115</top>
				<include content="VideoInfoSeperator">
					<param name="top" value="40"/>
					<param name="width" value="910"/>
				</include>
				<!-- Left Part -->
				<control type="grouplist">
					<left>2</left>
					<top>52</top>
					<itemgap>10</itemgap>
					<orientation>horizontal</orientation>
					<include content="VideoInfoLabel">
						<param name="max_width" value="530"/>
						<param name="height" value="24"/>
						<param name="label" value="$VAR[InfoDialogsLeftSubLabel]"/>
					</include>
				</control>
				<!-- Right Part -->
				<control type="grouplist">
					<right>52</right>
					<top>52</top>
					<align>right</align>
					<itemgap>10</itemgap>
					<orientation>horizontal</orientation>
					<include content="VideoInfoLabel">
						<param name="max_width" value="300"/>
						<param name="height" value="24"/>
						<param name="label" value="$INFO[ListItem.AddonSize]"/>
						<param name="visible" value="!String.IsEmpty(ListItem.AddonSize) + ![ListItem.Property(Addon.IsInstalled) | ListItem.Property(Addon.IsEnabled)]"/>
					</include>
					<include content="VideoInfoLabel">
						<param name="max_width" value="300"/>
						<param name="height" value="24"/>
						<param name="label" value="$INFO[ListItem.AddonInstallDate,[COLOR=white]Installed:[/COLOR] ]"/>
						<param name="visible" value="!Window.IsActive(AddonBrowser.xml) + !Window.IsActive(1125)"/>
					</include>
					<include content="VideoInfoLabel">
						<param name="max_width" value="300"/>
						<param name="height" value="24"/>
						<param name="label" value="[COLOR=invalid]$LOCALIZE[24141][/COLOR]"/>
						<param name="visible" value="ListItem.Property(Addon.IsInstalled) + !ListItem.Property(Addon.IsEnabled)"/>
					</include>
					<include content="VideoInfoLabel">
						<param name="max_width" value="300"/>
						<param name="height" value="24"/>
						<param name="label" value="$VAR[AddonInfo_HasUpdate]"/>
						<param name="visible" value="ListItem.Property(Addon.IsInstalled) + ListItem.Property(Addon.IsEnabled)"/>
					</include>
					<control type="image">
						<width>22</width>
						<height>22</height>
						<texture colordiffuse="$VAR[AddonDisabledDiffuse]">icons/submenu_info.png</texture>
					</control>
				</control>
				<include content="VideoInfoSeperator">
					<param name="top" value="86"/>
					<param name="width" value="910"/>
					<param name="visible" value=""/>
				</include>
			</control>

			<!-- Labels/Plot/Disclaimer -->
			<control type="group" id="9003">
				<defaultcontrol>44</defaultcontrol>
				<!-- Labels -->
				<control type="group">
					<left>320</left>
					<top>245</top>
					<include content="VideoInfoSeperator">
						<param name="top" value="62"/>
						<param name="width" value="650"/>
						<param name="visible" value=""/>
					</include>
					<control type="grouplist">
						<left>0</left>
						<top>-30</top>
						<itemgap>10</itemgap>
						<!-- Type label -->
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.AddonType,[COLOR=white]$LOCALIZE[467]:[/COLOR] ]"/>
							<param name="visible" value=""/>
						</include>
						<!-- Author label -->
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.AddonCreator,[COLOR=white]$LOCALIZE[21863]:[/COLOR] ]"/>
							<param name="visible" value=""/>
						</include>
						<!-- Version label -->
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.AddonVersion,[COLOR=white]$LOCALIZE[19114]:[/COLOR] ,   ]$INFO[ListItem.AddonLastUpdated,[COLOR=white]$LOCALIZE[12014]:[/COLOR] ]"/>
							<param name="visible" value=""/>
						</include>
					</control>
					<include content="VideoInfoSeperator">
						<param name="top" value="316"/>
						<param name="width" value="910"/>
						<param name="visible" value=""/>
					</include>
				</control>

				<!-- Plot -->
				<control type="group">
					<left>320</left>
					<top>315</top>
					<width>650</width>
					<include content="InfoDialogsDescription">
						<param name="textbox_top" value="3"/>
						<param name="textbox_width" value="650"/>
						<param name="textbox_height" value="230"/>
						<param name="font" value="TextboxFont_22"/>
						<param name="onup" value="9000"/>
						<param name="onleft" value="9002"/>
						<param name="onright" value="50"/>
						<param name="button_top" value="-8"/>
						<param name="button_width" value="652"/>
						<param name="button_height" value="255"/>
						<param name="label" value="[COLOR=white]$LOCALIZE[21821]:[/COLOR][CR]$VAR[InfoDialogsDescriptionLabel]"/>
						<param name="visible" value="String.IsEmpty(ListItem.AddonNews)"/>
					</include>
					<include content="InfoDialogsDescription">
						<param name="textbox_top" value="0"/>
						<param name="textbox_width" value="650"/>
						<param name="textbox_height" value="118"/>
						<param name="font" value="TextboxFont_22"/>
						<param name="onup" value="9000"/>
						<param name="onleft" value="9002"/>
						<param name="onright" value="50"/>
						<param name="button_top" value="-8"/>
						<param name="button_width" value="652"/>
						<param name="button_height" value="255"/>
						<param name="label" value="[COLOR=white]$LOCALIZE[21821]:[/COLOR][CR]$VAR[InfoDialogsDescriptionLabel]"/>
						<param name="visible" value="!String.IsEmpty(ListItem.AddonNews)"/>
					</include>
					<include content="InfoDialogsDescription">
						<param name="textbox_top" value="120"/>
						<param name="textbox_width" value="650"/>
						<param name="textbox_height" value="118"/>
						<param name="font" value="TextboxFont_22"/>
						<param name="onup" value="9000"/>
						<param name="onleft" value="9002"/>
						<param name="onright" value="50"/>
						<param name="button_top" value="-8"/>
						<param name="button_width" value=""/>
						<param name="button_height" value=""/>
						<param name="label" value="[COLOR=white]$LOCALIZE[24054]:[/COLOR][CR]$INFO[ListItem.AddonNews]"/>
						<param name="visible" value="!String.IsEmpty(ListItem.AddonNews)"/>
					</include>
				</control>

				<!-- Disclaimer -->
				<control type="grouplist">
					<left>45</left>
					<top>575</top>
					<width>1190</width>
					<align>left</align>
					<itemgap>5</itemgap>
					<orientation>horizontal</orientation>
					<visible>!String.IsEmpty(ListItem.AddonDisclaimer)</visible>
					<control type="image">
						<width>18</width>
						<height>18</height>
						<colordiffuse>disabled</colordiffuse>
						<texture background="true" colordiffuse="$VAR[AddonBrokenDisclaimerDiffuse]">icons/submenu_info.png</texture>
						<animation effect="rotate" start="0" end="180" center="auto" condition="true">Conditional</animation>
					</control>
					<control type="label">
						<width>1170</width>
						<height>20</height>
						<font>FontSize_14B</font>
						<label>$VAR[AddonBrokenDisclaimerLabel]</label>
						<textcolor>$VAR[AddonBrokenDisclaimerDiffuse]</textcolor>
					</control>
				</control>
			</control>

			<!-- Preview -->
			<control type="group">
				<left>1045</left>
				<top>215</top>
				<width>870</width>
				<height>300</height>
				<visible>Integer.IsGreater(Container(50).NumItems,0)</visible>
				<include content="VideoInfoLabel">
					<param name="label" value="$VAR[PreviewList50_NumLabel]"/>
					<param name="visible" value="Integer.IsGreater(Container(50).NumItems,0)"/>
				</include>
				<control type="panel" id="50">
					<left>-2</left>
					<top>25</top>
					<width>190</width>
					<height>315</height>
					<onleft>9003</onleft>
					<onright>-</onright>
					<onup>9000</onup>
					<ondown>50</ondown>
					<orientation>vertical</orientation>
					<scrolltime tween="sine" easing="out">250</scrolltime>
					<itemlayout width="185" height="105">
						<control type="image">
							<width>180</width>
							<height>95</height>
							<texture background="true" border="1" diffuse="thumbs/landscape_diffuse.png">thumbs/thumb_back.png</texture>
						</control>
						<control type="image">
							<width>180</width>
							<height>95</height>
							<aspectratio align="center" aligny="center" scalediffuse="false">scale</aspectratio>
							<texture background="true" border="1" fallback="thumbs/fallback_episode_tp.png" diffuse="thumbs/landscape_diffuse.png">$INFO[ListItem.Icon]</texture>
						</control>
						<control type="image">
							<width>180</width>
							<height>95</height>
							<texture background="true" border="1">thumbs/landscape_overlay.png</texture>
						</control>
					</itemlayout>
					<focusedlayout width="185" height="105">
						<control type="image">
							<width>180</width>
							<height>95</height>
							<texture background="true" border="1" diffuse="thumbs/landscape_diffuse.png">thumbs/thumb_back.png</texture>
						</control>
						<control type="image">
							<width>180</width>
							<height>95</height>
							<aspectratio align="center" aligny="center" scalediffuse="false">scale</aspectratio>
							<texture background="true" border="1" fallback="thumbs/fallback_episode_tp.png" diffuse="thumbs/landscape_diffuse.png">$INFO[ListItem.Icon]</texture>
						</control>
						<control type="image">
							<width>180</width>
							<height>95</height>
							<aspectratio align="center" aligny="center">scale</aspectratio>
							<texture background="true" border="1">thumbs/landscape_play.png</texture>
							<animation reversible="false" effect="fade" start="0" end="100" time="200">Focus</animation>
							<animation reversible="false" effect="fade" start="100" end="0" time="200">UnFocus</animation>
						</control>
						<control type="image">
							<width>180</width>
							<height>95</height>
							<texture background="true" border="1">thumbs/landscape_overlay.png</texture>
						</control>
					</focusedlayout>
				</control>
			</control>


			<!-- Bellow Buttons -->
			<control type="grouplist" id="9002">
				<left>45</left>
				<top>380</top>
				<onleft>9000</onleft>
				<onright>9003</onright>
				<onup>9000</onup>
				<itemgap>8</itemgap>
				<control type="button" id="12">
					<description>Run</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label></label>
					<animation effect="fade" start="100" end="60" condition="!Control.IsEnabled(12)" reversible="true">Conditional</animation>
				</control>
				<control type="button" id="8">
					<description>Update</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label>$LOCALIZE[24138]</label>
					<animation effect="fade" start="100" end="60" condition="!Control.IsEnabled(8)" reversible="true">Conditional</animation>
				</control>
				<control type="button" id="14">
					<description>Versions</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label>$LOCALIZE[24069]</label>
					<animation effect="fade" start="100" end="60" condition="!Control.IsEnabled(14)" reversible="true">Conditional</animation>
				</control>
				<control type="button" id="6">
					<description>Install/Unistall</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label></label>
					<animation effect="fade" start="100" end="60" condition="!Control.IsEnabled(6)" reversible="true">Conditional</animation>
				</control>
				<control type="button" id="7">
					<description>Enable/Disable</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label></label>
					<animation effect="fade" start="100" end="60" condition="!Control.IsEnabled(7)" reversible="true">Conditional</animation>
				</control>
			</control>

			<!-- Bellow Icons & Labels-->
			<control type="grouplist">
				<left>45</left>
				<top>389</top>
				<onup>9000</onup>
				<itemgap>8</itemgap>
				<control type="grouplist">
					<description>Run</description>
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(12)" reversible="true">Conditional</animation>
					<animation effect="fade" start="100" end="50" condition="!Control.IsEnabled(12)" reversible="true">Conditional</animation>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>icons/run.png</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(12)]</label>
					</control>
				</control>
				<control type="grouplist">
					<description>Update</description>
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(8)" reversible="true">Conditional</animation>
					<animation effect="fade" start="100" end="50" condition="!Control.IsEnabled(8)" reversible="true">Conditional</animation>
					<visible>Control.IsVisible(8)</visible>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>icons/update.png</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(8)]</label>
					</control>
				</control>
				<control type="grouplist">
					<description>Update</description>
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(14)" reversible="true">Conditional</animation>
					<animation effect="fade" start="100" end="50" condition="!Control.IsEnabled(14)" reversible="true">Conditional</animation>
					<visible>Control.IsVisible(14)</visible>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>icons/update.png</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(14)]</label>
					</control>
				</control>
				<control type="grouplist">
					<description>Install/Unistall</description>
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(6)" reversible="true">Conditional</animation>
					<animation effect="fade" start="100" end="50" condition="!Control.IsEnabled(6)" reversible="true">Conditional</animation>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>$VAR[AddonInfo_InstallUnistall]</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(6)]</label>
					</control>
				</control>
				<control type="grouplist">
					<description>Enable/Disable</description>
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(7)" reversible="true">Conditional</animation>
					<animation effect="fade" start="100" end="50" condition="!Control.IsEnabled(7)" reversible="true">Conditional</animation>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>$VAR[AddonInfo_EnableDisable]</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(7)]</label>
					</control>
				</control>
			</control>

		</control>


		<!-- ================= -->
		<!-- == Top Buttons == -->
		<!-- ================= -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<include>TextViewerHideAnimations</include>
			<visible>!Window.IsActive(contextmenu) + !Window.IsActive(script-NextAired-TVGuide.xml)</visible>
			<include>InfoDialogs_OpenCloseAnimation</include>
			<!-- Main Buttons -->
			<control type="grouplist" id="9000">
				<onright>50</onright>
				<ondown>9001</ondown>
				<include>InfoDialogs_TopMenuVars</include>
				<control type="label" id="999">
					<include>TopBigLabel</include>
					<label>$LOCALIZE[29915]</label>
				</control>
				<control type="button" id="9">
					<description>Configure</description>
					<include>TopMenuButton</include>
					<label>$LOCALIZE[24020]</label>
					<visible>Control.IsEnabled(9)</visible>
				</control>
				<control type="togglebutton" id="81">
					<description>Auto-Update</description>
					<label>$LOCALIZE[21340]: $LOCALIZE[16039]</label>
					<altlabel>$LOCALIZE[21340]: $LOCALIZE[16041]</altlabel>
					<usealttexture>String.Contains(Control.GetLabel(13),*)</usealttexture>
					<include>TopMenuButton</include>
					<onclick>SetFocus(13)</onclick>
					<onclick>Select</onclick>
					<onclick>SetFocus(81)</onclick>
					<visible>Control.IsEnabled(13)</visible>
				</control>
				<control type="button" id="10">
					<description>Dependencies</description>
					<include>TopMenuButton</include>
					<label>$LOCALIZE[39024]</label>
					<visible>Control.IsEnabled(10)</visible>
				</control>
				<control type="button" id="85">
					<description>Dependencies</description>
					<include>HiddenItem</include>
					<onfocus>SetFocus(9001)</onfocus>
					<visible>![Control.IsEnabled(9) | Control.IsEnabled(10) | Control.IsEnabled(13)]</visible>
				</control>
			</control>
			<!-- Top Content Info -->
			<include content="PageCountLabel">
				<param name="left" value="0"/>
				<param name="top" value="45"/>
				<param name="label" value="$INFO[ListItem.AddonType]"/>
			</include>
		</control>

		<!-- Hidden Buttons -->
		<control type="radiobutton" id="13">
			<description>Auto-Update</description>
			<include>HiddenItem</include>
		</control>

	</controls>
</window>