<?xml version="1.0" encoding="UTF-8"?>
<window id="1125">
	<defaultcontrol always="true">3000</defaultcontrol>
  <menucontrol>9000</menucontrol>
	<backgroundcolor>bgcolor</backgroundcolor>
	<onload condition="[String.IsEmpty(Skin.String(TMDBSearchString)) + String.IsEmpty(Skin.String(YouTubeSearchString)) + String.IsEmpty(Skin.String(AddonsSearchString))]">Back</onload>
	<onload condition="String.IsEmpty(Skin.String(TMDBSearchType))">Skin.SetString(TMDBSearchType,movie)</onload>
	<controls>
		<include>BackgroundItems</include>
		<!-- ============== -->
		<!-- Search Results -->
		<!-- ============== -->
		<control type="group">
			<width>1280</width>
			<include>VisibleHiddenSlideAnimation</include>
			<visible>![Window.IsActive(DialogVideoInfo.xml) | Window.IsActive(AddonInformation) | Window.IsActive(PlayerControls) | Window.IsActive(Favourites) | [String.IsEmpty(Skin.String(TMDBSearchString)) + String.IsEmpty(Skin.String(YouTubeSearchString)) + String.IsEmpty(Skin.String(AddonsSearchString))]]</visible>
				<!-- Search Results -->
			<control type="group">
				<animation effect="slide" start="0,0" end="0,50" time="250" tween="sine" easing="inout" condition="!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>!Container(3000).IsUpdating</visible>
					</control>
					<include>Search_Labels</include>
				</control>
				<control type="fixedlist" id="3000">
					<include>OpenCloseSlideAnimationTwo</include>
					<left>45</left>
					<top>212</top>
					<width>1189</width>
					<height>256</height>
					<onleft>3000</onleft>
					<onright>3000</onright>
					<ondown condition="String.IsEqual(Window(home).Property(TMDBSearch),true)">9000</ondown>
					<onclick condition="String.IsEmpty(ListItem.DBID) + [String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow)]">Action(info)</onclick>
					<onclick condition="String.IsEqual(ListItem.DBType,tvshow) + !String.IsEmpty(ListItem.DBID)">ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</onclick>
					<onclick condition="!String.IsEmpty(ListItem.AddonName)">Action(info)</onclick>
					<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="String.IsEqual(Window(home).Property(YouTubeSearch),true)">Conditional</animation>
					<animation effect="slide" start="0,0" end="0,47" condition="String.IsEqual(Window(home).Property(AddonsSearch),true)">Conditional</animation>
					<itemlayout condition="String.IsEqual(Window(home).Property(TMDBSearch),true)" width="171">
						<control type="group">
							<visible>!Container(3000).IsUpdating</visible>
							<include>HomeWidgets_Poster_ItemLayout</include>
						</control>
					</itemlayout>
					<itemlayout condition="String.IsEqual(Window(home).Property(YouTubeSearch),true)" width="299">
						<control type="group">
							<visible>!Container(3000).IsUpdating</visible>
							<include>HomeWidgets_Landscape_ItemLayout</include>
						</control>
					</itemlayout>
					<itemlayout condition="String.IsEqual(Window(home).Property(AddonsSearch),true)" width="199.5">
						<control type="group">
							<visible>!Container(3000).IsUpdating</visible>
							<include>HomeWidgets_Square_ItemLayout</include>
						</control>
					</itemlayout>
					<focusedlayout condition="String.IsEqual(Window(home).Property(TMDBSearch),true)" width="171">
						<control type="group">
							<visible>!Container(3000).IsUpdating</visible>
							<include>HomeWidgets_Poster_Focusedlayout</include>
						</control>
					</focusedlayout>
					<focusedlayout condition="String.IsEqual(Window(home).Property(YouTubeSearch),true)" width="299">
						<control type="group">
							<visible>!Container(3000).IsUpdating</visible>
							<include>HomeWidgets_Landscape_Focusedlayout</include>
						</control>
					</focusedlayout>
					<focusedlayout condition="String.IsEqual(Window(home).Property(AddonsSearch),true)" width="199.5">
						<control type="group">
							<visible>!Container(3000).IsUpdating</visible>
							<include>HomeWidgets_Square_Focusedlayout</include>
						</control>
					</focusedlayout>
					<content browse="never" limit="50" sortby="file">$VAR[CustomSearchResultsContent]</content>
				</control>
				<include>NavigationArrows</include>
			</control>
			<!-- Search Categories -->
			<control type="group">
				<left>0</left>
				<top>475</top>
				<include>HomeMenu_OpenCloseSlideAnimation</include>
				<visible>![Container(3000).IsUpdating | String.IsEmpty(Window(home).Property(TMDBSearch))]</visible>
				<animation type="Conditional" condition="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.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>3000</onup>
					<onleft>9000</onleft>
					<onright>9000</onright>
					<onback>50</onback>
					<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]"/>
							</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]"/>
							</include>
						</control>
					</focusedlayout>
					<content>
						<item id="1">
							<label>$LOCALIZE[342]</label>
							<onclick>Skin.SetString(TMDBSearchType,movie)</onclick>
							<onclick>Action(up)</onclick>
						</item>
						<item id="2">
							<label>$LOCALIZE[31002]</label>
							<onclick>Skin.SetString(TMDBSearchType,tv)</onclick>
							<onclick>Action(up)</onclick>
						</item>
						<item id="3">
							<label>$LOCALIZE[31386]</label>
							<onclick>Skin.SetString(TMDBSearchType,person)</onclick>
							<onclick>Action(up)</onclick>
						</item>
					</content>
				</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>!ControlGroup(9000).HasFocus</visible>
			<visible>![Window.IsActive(DialogVideoInfo.xml) | Window.IsActive(DialogAddonInfo.xml) | Window.IsActive(PlayerControls) | Window.IsActive(Favourites) | [String.IsEmpty(Skin.String(TMDBSearchString)) + String.IsEmpty(Skin.String(YouTubeSearchString)) + String.IsEmpty(Skin.String(AddonsSearchString))]]</visible>
			<control type="grouplist">
				<include>CommonTopInfoGroupList</include>
				<control type="label">
					<label>$VAR[CustomSearchingLabel]</label>
					<include>TopBigLabel</include>
					<visible>Container(3000).IsUpdating</visible>
					<animation effect="slide" end="0,8" condition="Container(3000).IsUpdating">Conditional</animation>
				</control>
				<control type="label">
					<label>$VAR[SearchResultsTopLabels]</label>
					<include>TopBigLabel</include>
					<visible>!Container(3000).IsUpdating</visible>
				</control>
				<control type="label">
					<label>$VAR[CustomSearchTMDBTypeLabel]</label>
					<include>TopSmallLabel</include>
					<visible>![Container(3000).IsUpdating | String.IsEqual(Window(home).Property(YouTubeSearch),true) | String.IsEqual(Window(home).Property(AddonsSearch),true)]</visible>
				</control>
			</control>
			<include content="PageCountLabel">
				<param name="label" value="$INFO[Container(3000).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(3000).NumItems, $LOCALIZE[31024] ]$VAR[CustomSearcStringLabel, • ]"/>
				<param name="visible" value="!Container(3000).IsUpdating"/>
			</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(DialogAddonInfo.xml) | Window.IsActive(PlayerControls) | Window.IsActive(Favourites) | [String.IsEmpty(Skin.String(TMDBSearchString)) + String.IsEmpty(Skin.String(YouTubeSearchString)) + String.IsEmpty(Skin.String(AddonsSearchString))]]</visible>
		</control>












<!-- ================= -->
<!-- ===== DEBUG ===== -->
<!-- ================= -->
		<control type="grouplist">
		  <top>130</top>
			<visible>Skin.HasSetting(ShowDebugInfo)</visible>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FF00FF00</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>TMDB Property: $INFO[Window(Home).Property(TMDBSearch)]</label>
			</control>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FF00FF00</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>TMDB String: $INFO[Skin.String(TMDBSearchString)]</label>
			</control>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FF00FF00</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>TMDB Type: $INFO[Skin.String(TMDBSearchType)]</label>
			</control>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FFFFFF40</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>YouTube Property: $INFO[Window(Home).Property(YouTubeSearch)]</label>
			</control>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FFFFFF40</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>YouTube String: $INFO[Skin.String(YouTubeSearchString)]</label>
			</control>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FFFFFF40</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>Addons Property: $INFO[Window(Home).Property(AddonsSearch)]</label>
			</control>
			<control type="label">
			  <right>5</right>
				<top>90</top>
			  <textcolor>FFFFFF40</textcolor>
			  <font>FontSize_15B</font>
			  <align>right</align>
			  <label>Addons String: $INFO[Skin.String(AddonsSearchString)]</label>
			</control>
		  <control type="label">
		   <right>5</right>
		   <textcolor>FFFFFF40</textcolor>
		   <font>FontSize_18B</font>
		   <align>right</align>
		   <label>[COLOR=FFA939FF]ListItem.Trailer:[/COLOR] $INFO[ListItem.Trailer]</label>
		  </control>
		  <control type="label">
		   <right>5</right>
		   <textcolor>FFFFFF40</textcolor>
		   <font>FontSize_18B</font>
		   <align>right</align>
		   <label>[COLOR=FFA939FF]TMDbHelper.ListItem.Trailer:[/COLOR] $INFO[Window(Home).Property(TMDbHelper.ListItem.trailer)]</label>
		  </control>
		</control>
	</controls>
</window>
