<?xml version="1.0" encoding="UTF-8"?>
<window>
	<views>50</views>
	<backgroundcolor>bgcolor</backgroundcolor>
	<controls>
		<include>BackgroundItems</include>
			<!-- ============== -->
			<!-- Search Results -->
			<!-- ============== -->
			<control type="group">
				<width>1280</width>
				<include>VisibleHiddenSlideAnimation</include>
				<visible>![Window.IsActive(DialogVideoInfo.xml) | Window.IsActive(1130) | Window.IsActive(DialogMusicInfo.xml) | Window.IsActive(AddonInformation) | Window.IsActive(DialogPVRInfo.xml) | Window.IsActive(PlayerControls) | Window.IsActive(Favourites)]</visible>
					<!-- Search Results -->
				<control type="group">
					<animation effect="slide" start="0,0" end="0,50" time="250" tween="sine" easing="inout" condition="![Control.IsVisible(991) | Control.HasFocus(9000)]">Conditional</animation>
					<control type="group">
						<include>HomeMenu_OpenCloseSlideAnimation</include>
						<control type="image">
							<top>45</top>
							<include>FullscreenDimensions</include>
							<texture background="true">windows/home/menu_overlay.png</texture>
							<visible>!String.IsEmpty(Container(9000).ListItem.Label)</visible>
						</control>
						<include>Search_Labels</include>
					</control>
					<control type="fixedlist" id="50">
						<include>OpenCloseSlideAnimationTwo</include>
						<left>45</left>
						<top>212</top>
						<width>1189</width>
						<height>256</height>
						<onleft>50</onleft>
						<onright>50</onright>
						<ondown>9000</ondown>
						<oninfo condition="Container.Content(Actors) | Container.Content(Directors)">RunScript(plugin.video.themoviedb.helper,add_query=$INFO[ListItem.Label],type=person,call_auto=1130)</oninfo>
						<preloaditems>2</preloaditems>
						<focusposition>0</focusposition>
						<orientation>horizontal</orientation>
						<scrolltime tween="Quadratic" easing="out">300</scrolltime>
						<animation effect="slide" start="0,0" end="0,68" condition="Container.Content(Episodes) | Container.Content(MusicVideos)">Conditional</animation>
						<animation effect="slide" start="0,0" end="0,47" condition="![Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(MusicVideos) | Container.Content(Episodes) | Container.Content(Actors) | Container.Content(Directors)]">Conditional</animation>
						<itemlayout condition="Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Actors) | Container.Content(Directors)" width="171">
							<include>HomeWidgets_Poster_ItemLayout</include>
						</itemlayout>
						<itemlayout condition="Container.Content(Episodes) | Container.Content(MusicVideos)" width="299">
							<include>HomeWidgets_Landscape_ItemLayout</include>
						</itemlayout>
						<itemlayout condition="![Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(MusicVideos) | Container.Content(Episodes) | Container.Content(Actors) | Container.Content(Directors)]" width="199.5">
							<include>HomeWidgets_Square_ItemLayout</include>
						</itemlayout>
						<focusedlayout condition="Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Actors) | Container.Content(Directors)" width="171">
							<include>HomeWidgets_Poster_Focusedlayout</include>
						</focusedlayout>
						<focusedlayout condition="Container.Content(Episodes) | Container.Content(MusicVideos)" width="299">
							<include>HomeWidgets_Landscape_Focusedlayout</include>
						</focusedlayout>
						<focusedlayout condition="![Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(MusicVideos) | Container.Content(Episodes) | Container.Content(Actors) | Container.Content(Directors)]" width="199.5">
							<include>HomeWidgets_Square_Focusedlayout</include>
						</focusedlayout>
					</control>
					<include>NavigationArrows</include>
				</control>

				<!-- Search Categories -->
				<control type="group">
					<left>0</left>
					<top>475</top>
					<include>HomeMenu_OpenCloseSlideAnimation</include>
					<animation type="Conditional" condition="Control.IsVisible(991) | Control.HasFocus(9000)">
						<effect type="slide" start="0,0" end="0,0" time="250" tween="sine" easing="out"/>
						<effect type="fade" start="0" end="100" time="125"/>
					</animation>
					<animation type="Conditional" condition="![Control.IsVisible(991) | Control.HasFocus(9000)]">
						<effect type="slide" start="0,0" end="0,0" time="250" tween="sine" easing="out"/>
						<effect type="fade" start="100" end="0" time="125"/>
					</animation>
					<control type="fixedlist" id="9000">
						<left>46</left>
						<top>0</top>
						<width>1950</width>
						<height>125</height>
						<onup>50</onup>
						<ondown>50</ondown>
						<onleft>9000</onleft>
						<onright>9000</onright>
						<onback>50</onback>
						<onclick condition="String.IsEmpty(ListItem.label)">990</onclick>
						<focusposition>0</focusposition>
						<orientation>horizontal</orientation>
						<scrolltime tween="quadratic" easing="out">250</scrolltime>
						<itemlayout width="197" height="43">
							<control type="label">
								<include content="HomeSubMenus_Layout">
									<param name="label_width" value="195"/>
									<param name="label_height" value="37"/>
									<param name="fontsize" value="FontSize_22"/>
									<param name="textcolor" value="viewsinfo"/>
									<param name="label" value="$INFO[ListItem.label]$INFO[ListItem.label2,: ]"/>
								</include>
							</control>
						</itemlayout>
						<focusedlayout width="250" height="43">
							<control type="label">
								<include content="HomeSubMenus_Layout">
									<param name="label_width" value="250"/>
									<param name="label_height" value="30"/>
									<param name="fontsize" value="FontSize_34"/>
									<param name="textcolor" value="white"/>
									<param name="label" value="$INFO[ListItem.label]$INFO[ListItem.label2,: ]"/>
								</include>
							</control>
						</focusedlayout>
					</control>
					<control type="image">
						<left>0</left>
						<top>42</top>
						<width>100%</width>
						<height>4</height>
						<texture background="true">windows/home/submenus_line.png</texture>
						<visible>!String.IsEmpty(Container(9000).ListItem.Label)</visible>
					</control>
				</control>
			</control>

			<include>CommonDialogsFadeOutBG</include>

			<!-- ================ -->
			<!-- Top Content Info -->
			<!-- ================ -->
			<control type="group">
				<left>45</left>
				<top>25</top>
				<include>ShutdownMenuAnimation</include>
				<include>OpenCloseSlideAnimationTwo</include>
				<include>VisibleHiddenSlideAnimation</include>
				<visible>![Window.IsActive(DialogVideoInfo.xml) | Window.IsActive(DialogMusicInfo.xml) | Window.IsActive(DialogAddonInfo.xml) | Window.IsActive(DialogPVRInfo.xml) | Window.IsActive(PlayerControls) | Window.IsActive(Favourites)]</visible>
				<control type="grouplist">
					<include>CommonTopInfoGroupList</include>
					<control type="label">
						<label>$LOCALIZE[194] [COLOR=$VAR[Text.GlobalColor]]$INFO[Control.GetLabel(991)][/COLOR]</label>
						<include>TopBigLabel</include>
						<visible>Control.IsVisible(991)</visible>
						<animation effect="slide" end="0,8" condition="Control.IsVisible(991)">Conditional</animation>
					</control>
					<control type="label">
						<label>$VAR[SearchResultsTopLabels,$LOCALIZE[283]: ]</label>
						<include>TopBigLabel</include>
						<visible>![Control.IsVisible(991) | Control.IsVisible(999)]</visible>
					</control>
					<control type="label" id="999">
						<label>$LOCALIZE[284]</label>
						<animation effect="slide" end="0,8" condition="true">Conditional</animation>
						<include>TopBigLabel</include>
					</control>
				</control>
				<include content="PageCountLabel">
					<param name="label" value="$INFO[Container(50).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(50).NumItems, $LOCALIZE[31024] ]$VAR[CustomSearcStringLabel, • ]"/>
					<param name="visible" value="![Control.IsVisible(991) | String.IsEmpty(Container(9000).ListItem.Label)]"/>
				</include>
			</control>

			<include>CommonScrollingLetters</include>
			<include>CommonNowPlaying</include>

			<control type="group">
				<left>25</left>
				<top>45</top>
				<include>OpenCloseSlideAnimation</include>
				<include>VisibleHiddenSlideAnimation</include>
				<include>WeatherAndClock</include>
				<visible>![Container.Scrolling | Window.IsActive(DialogVideoInfo.xml) | Window.IsActive(DialogMusicInfo.xml) | Window.IsActive(DialogAddonInfo.xml) | Window.IsActive(DialogPVRInfo.xml) | Window.IsActive(PlayerControls)]</visible>
			</control>
			
			<!-- Hidden -->
			<control type="label" id="991">
				<description>Search Category</description>
				<left>-2000</left>
				<top>-2000</top>
			</control>
			<control type="button" id="990">
				<description>New Search</description>
				<left>-2000</left>
				<top>-2000</top>
			</control>
			
	</controls>
</window>
