<?xml version="1.0" encoding="utf-8"?>
<window>
	<defaultcontrol always="true">500</defaultcontrol>
  <menucontrol>9000</menucontrol>
	<backgroundcolor>bgcolor</backgroundcolor>
	<views>500</views>
	<controls>
		<control type="group">
			<include>GlobalFanart</include>
			<include>BackgroundDarkness</include>
			<include>FanartFade</include>
		</control>
		<control type="group">
			<include>InfoDialogs_OpenCloseAnimation</include>
			<animation type="Conditional" condition="Window.IsActive(script-script.module.kodi65-t9search.xml)" reversible="false">
				<effect type="slide" start="0,0" end="342,0" time="420" tween="quadratic" easing="out" />
			</animation>
			<animation type="Conditional" condition="!Window.IsActive(script-script.module.kodi65-t9search.xml)" reversible="false">
				<effect type="slide" start="342,0" end="0,0" time="420" tween="quadratic" easing="out" />
			</animation>
			<animation type="Conditional" reversible="false" condition="![Window.IsActive(favourites) | [Window.IsActive(PlayerControls) + [Skin.HasSetting(EnableQuickNav) | Player.HasMedia]]]">
				<effect type="fade" start="0" end="100" time="AnimationsFadeTime" delay="100" tween="sine" easing="in" />
				<effect type="zoom" start="95" end="100" time="AnimationsSlideTime" delay="100" center="auto" tween="sine" easing="out" />
			</animation>
			<animation type="Conditional" reversible="false" condition="Window.IsActive(favourites) | [Window.IsActive(PlayerControls) + [Skin.HasSetting(EnableQuickNav) | Player.HasMedia]]">
				<effect type="zoom" start="100" end="95" center="auto" tween="sine" delay="0" easing="out" time="AnimationsSlideTime" />
				<effect type="fade" start="100" end="0" tween="sine" easing="out" delay="0" time="AnimationsFadeTime" />
			</animation>
			<control type="panel" id="500">
				<left>40</left>
				<top>117</top>
				<height>500</height>
				<width>855</width>
				<onleft>9000</onleft>
				<onright>60</onright>
				<onup>700</onup>
				<ondown>600</ondown>
				<orientation>vertical</orientation>
				<pagecontrol>60</pagecontrol>
				<preloaditems>4</preloaditems>
				<viewtype label="31085">icons</viewtype>
				<scrolltime tween="Quadratic" easing="out">300</scrolltime>
				<itemlayout height="248" width="171">
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<texture border="30">views/other/panel.png</texture>
					</control>
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<aspectratio aligny="center" align="center">scale</aspectratio>
						<texture background="true" fallback="thumbs/fallback_poster_tp.png">$VAR[VarArtPoster]</texture>
						<bordersize>ThumbsBorderSize</bordersize>
					</control>
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<texture background="true">overlays/in_library.png</texture>
						<bordersize>ThumbsBorderSize</bordersize>
						<visible>!String.IsEmpty(ListItem.DBID)</visible>
					</control>
				</itemlayout>
				<focusedlayout height="248" width="171">
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<texture border="30">views/other/panel.png</texture>
					</control>
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<aspectratio>scale</aspectratio>
						<texture background="true" fallback="thumbs/fallback_poster_tp.png">$VAR[VarArtPoster]</texture>
						<bordersize>ThumbsBorderSize</bordersize>
					</control>
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<texture background="true">overlays/in_library.png</texture>
						<bordersize>ThumbsBorderSize</bordersize>
						<visible>!String.IsEmpty(ListItem.DBID)</visible>
					</control>
					<control type="image">
						<left>5</left>
						<top>5</top>
						<width>163</width>
						<height>238</height>
						<colordiffuse>$VAR[Textures.GlobalColor]</colordiffuse>
						<texture border="30">views/other/focus_panel.png</texture>
						<include>ThumbnailsFocusAnimation</include>
					</control>
				</focusedlayout>
			</control>
			<control type="button" id="600">
				<onfocus>SetFocus(500)</onfocus>
				<include>HiddenItem</include>
			</control>
			<control type="button" id="700">
				<onfocus>SetFocus(500)</onfocus>
				<include>HiddenItem</include>
			</control>
			<control type="group">
				<left>900</left>
				<top>122</top>
				<visible>!Window.IsActive(script-script.module.kodi65-t9search.xml)</visible>
				<include>VisibleFadeEffect</include>
				<control type="image">
					<width>335</width>
					<height>486</height>
					<texture border="31">views/other/panel.png</texture>
				</control>
				<control type="label">
					<left>17</left>
					<top>18</top>
					<width>300</width>
					<label>$INFO[Container(500).ListItem.Label]</label>
					<font>FontSize_26</font>
				</control>
				<control type="label">
					<left>18</left>
					<top>43</top>
					<width>300</width>
					<label>$INFO[Container(500).ListItem.Genre]</label>
					<font>FontSize_20</font>
					<textcolor>viewsinfo</textcolor>
					<scroll>false</scroll>
				</control>
				<control type="textbox">
					<description>Plot</description>
					<left>18</left>
					<top>80</top>
					<width>298</width>
					<height>355</height>
					<font>FontSize_20</font>
					<align>justify</align>
					<textcolor>viewsinfo</textcolor>
					<label>$INFO[Container(500).ListItem.Plot]</label>
					<autoscroll delay="8000" time="2000" repeat="8000">Skin.HasSetting(AutoScroll)</autoscroll>
				</control>
				<control type="grouplist">
					<left>18</left>
					<top>445</top>
					<height>0</height>
					<width>780</width>
					<align>left</align>
					<orientation>horizontal</orientation>
					<control type="image">
						<width>21</width>
						<height>21</height>
						<colordiffuse>viewsinfo</colordiffuse>
						<texture background="true">icons/calendar.png</texture>
						<visible>!String.IsEmpty(Container(500).ListItem.Premiered)</visible>
					</control>
					<control type="label">
						<height>22</height>
						<width min="10" max="980">auto</width>
						<font>FontSize_20</font>
						<textcolor>viewsinfo</textcolor>
						<label>$INFO[Container(500).ListItem.Year]   </label>
					</control>
					<control type="image">
						<width>21</width>
						<height>21</height>
						<colordiffuse>viewsinfo</colordiffuse>
						<texture background="true">icons/star_rating.png</texture>
						<visible>Integer.IsGreater(Container(500).ListItem.Rating,0)</visible>
					</control>
					<control type="label">
						<height>22</height>
						<width min="10" max="980">auto</width>
						<font>FontSize_20</font>
						<textcolor>viewsinfo</textcolor>
						<label>$INFO[Container(500).ListItem.Rating]$INFO[Container(500).ListItem.Votes, (, $LOCALIZE[205])]</label>
						<visible>Integer.IsGreater(Container(500).ListItem.Rating,0)</visible>
					</control>
				</control>
			</control>
			<!--
			<control type="button">
				<left>40</left>
				<top>595</top>
				<width>1200</width>
				<height>30</height>
				<font>FontSize_26B</font>
				<focusedcolor>white</focusedcolor>
				<disabledcolor>white</disabledcolor>
				<texturefocus></texturefocus>
				<texturenofocus></texturenofocus>
				<align>left</align>
				<aligny>center</aligny>
				<label>$INFO[Container(500).ListItem.Label]</label>
				<label2>$INFO[Container(500).ListItem.Year]$INFO[Container(500).ListItem.Rating, • ,]$INFO[Container(500).ListItem.Duration, • , $LOCALIZE[12391]]</label2>
			</control>
			-->
			<control type="scrollbar" id="60">
				<right>30</right>
				<top>123</top>
				<width>6</width>
				<height>483</height>
				<texturesliderbackground></texturesliderbackground>
				<texturesliderbar border="0,14,0,14">views/scrollbar/scrollbar.png</texturesliderbar>
				<texturesliderbarfocus border="0,14,0,14">views/scrollbar/scrollbar.png</texturesliderbarfocus>
				<textureslidernib></textureslidernib>
				<textureslidernibfocus></textureslidernibfocus>
				<onleft>500</onleft>
				<onright>500</onright>
				<showonepage>false</showonepage>
				<orientation>vertical</orientation>
				<animation effect="fade" start="100" end="0" time="250" condition="!Control.HasFocus(60) + !Container.Scrolling">Conditional</animation>
			</control>
			<control type="grouplist">
				<left>47</left>
				<top>615</top>
				<width>600</width>
				<align>left</align>
				<itemgap>6</itemgap>
				<orientation>horizontal</orientation>
				<visible>!Window.IsActive(script-script.module.kodi65-t9search.xml)</visible>
				<visible>Integer.IsGreater(Window.Property(TotalItems),10)</visible>
				<include>VisibleFadeEffect</include>
				<control type="image">
					<width>22</width>
					<height>22</height>
					<texture background="true">icons/submenu_arrow.png</texture>
					<colordiffuse>viewsinfo</colordiffuse>
				</control>
				<control type="label">
					<width>490</width>
					<height>21</height>
					<font>FontSize_18B</font>
					<label>$LOCALIZE[22082]</label>
					<textcolor>viewsinfo</textcolor>
					<scroll>false</scroll>
				</control>
			</control>
		</control>

		<include>CommonDialogsFadeOutBG</include>

		<!-- ================ -->
		<!-- Top Options Menu -->
		<!-- ================ -->
		<control type="group"  id="9000">
			<left>30</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>OptionsTopMenuAnimation</include>
			<!--
			<include>VisibleHiddenSlideAnimation</include>
			<visible allowhiddenfocus="true">!Window.IsActive(virtualkeyboard) + !Window.IsActive(progressdialog) + !Window.IsActive(okdialog) + !Window.IsActive(yesnodialog) + !Window.IsActive(selectdialog)</visible>
			-->
			<!-- Head Labels -->
			<control type="grouplist">
				<left>75</left>
				<top>0</top>
				<height>70</height>
				<width>1000</width>
				<align>left</align>
				<aligny>center</aligny>
				<itemgap>20</itemgap>
				<orientation>horizontal</orientation>
				<include>OptionsTopMenuHeader</include>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>TMDB</label>
				</control>
			</control>
			<!-- Options -->
			<control type="grouplist" id="9111">
				<left>0</left>
				<top>-12</top>
				<width>405</width>
				<height max="620">auto</height>
				<itemgap>0</itemgap>
				<onleft>500</onleft>
				<onright>500</onright>
				<onup>9111</onup>
				<ondown>9111</ondown>
				<visible>!Skin.HasSetting(EnableKioskMode)</visible>
				<control type="image" id="1">
					<width>405</width>
					<height>75</height>
					<texture>dialogs/menus/topmenus_tmdb.png</texture>
				</control>
				<control type="button" id="6000">
					<description>Search T9</description>
					<label>$LOCALIZE[19140]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="7000">
					<description>TMBD</description>
					<label>$ADDON[script.extendedinfo 32024]</label>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5007">
					<description>Type</description>
					<label>$LOCALIZE[467]$INFO[Window.Property(Type),: ]</label>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5001">
					<description>Sort by</description>
					<label>$ADDON[script.extendedinfo 32104]$INFO[Window.Property(Sort_Label),: ]</label>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5004">
					<description>Order</description>
					<label>$ADDON[script.extendedinfo 32128]$INFO[Window.Property(Order_Label),: ]</label>
					<include>TopLeftMenusButton</include>
				</control>
				<!--
				<control type="button" id="5033">
					<description>Filters</description>
					<textoffsetx>30</textoffsetx>
					<disabledcolor>white</disabledcolor>
					<label>$ADDON[script.extendedinfo 32023]</label>
					<texturefocus>dialogs/menus/topmenus_empty.png</texturefocus>
					<texturenofocus>dialogs/menus/topmenus_empty.png</texturenofocus>
					<include>TopLeftMenusButton</include>
					<enable>false</enable>
				</control>
				-->
				<control type="button" id="5002">
					<description>Genre</description>
					<label>$LOCALIZE[515]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5003">
					<description>Release Date</description>
					<label>$LOCALIZE[172]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5006">
					<description>Certification</description>
					<label>$ADDON[script.extendedinfo 32127]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5008">
					<description>Actor/Crew Member</description>
					<label>$ADDON[script.extendedinfo 32126]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5009">
					<description>Keyword</description>
					<label>$ADDON[script.extendedinfo 32114]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5010">
					<description>Studio</description>
					<label>$LOCALIZE[572]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5012">
					<description>Vote Count</description>
					<label>$ADDON[script.extendedinfo 32111]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<control type="button" id="5005">
					<description>Clear All Filters</description>
					<label>$ADDON[script.extendedinfo 32022]</label>
					<onclick>right</onclick>
					<include>TopLeftMenusButton</include>
				</control>
				<include>OptionsTopMenuEnd</include>
			</control>
		</control>


		<!-- ================ -->
		<!-- Top Content Info -->
		<!-- ================ -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<include>InfoDialogs_OpenCloseAnimation</include>
			<visible>!ControlGroup(9000).HasFocus + !Window.IsActive(favourites) + ![Window.IsActive(PlayerControls) + [Skin.HasSetting(EnableQuickNav) | Player.HasMedia]]</visible>
			<control type="grouplist">
				<include>CommonTopInfoGroupList</include>
				<control type="label">
					<include>TopBigLabel</include>
					<label>TMDB $LOCALIZE[535]</label>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$INFO[Control.GetLabel(5007)]</label>
				</control>
			</control>
			<control type="label">
				<description>Page Count Label</description>
				<left>65</left>
				<top>45</top>
				<width>965</width>
				<height>20</height>
				<font>FontSize_18</font>
				<textcolor>$VAR[Text.GlobalColor]</textcolor>
				<scroll>false</scroll>
				<align>left</align>
				<aligny>center</aligny>
				<label>$INFO[Window.Property(TotalItems),, $ADDON[script.extendedinfo 32124]]$INFO[Window.Property(CurrentPage), • $ADDON[script.extendedinfo 32125] ]$INFO[Window.Property(TotalPages), / ]$INFO[Control.GetLabel(5001), • ]$INFO[Window.Property(Filter_Label), • ]</label>
			</control>
		</control>

		<control type="group">
			<left>25</left>
			<top>45</top>
			<include>WeatherAndClock</include>
			<include>InfoDialogs_OpenCloseAnimation</include>
		</control>

	</controls>
</window>
