<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">50</defaultcontrol>
	<onload condition="String.IsEmpty(Window(Home).Property(MenuItemActive))">SetProperty(MenuItemActive,search,Home)</onload>
	<onload condition="String.IsEmpty(Window(Home).Property(MenuBackground))">SetProperty(MenuBackground,special://skin/extras/backgrounds/search.jpg,Home)</onload>
	<menucontrol>9999</menucontrol>
	<views>50,51,500</views>
	<onload condition="!Skin.HasSetting(FirstTimeRun)">ActivateWindow(1112)</onload>
	<controls>
		<control type="label" id="991">
			<!-- Hide this Control off the screen because we don't use the label -->
			<left>2000</left>
			<top>2000</top>
			<width>100</width>
			<height>0</height>
			<label/>
			<font/>
		</control>
		<control type="label" id="999">
			<!-- Hide this Control off the screen because we don't use the label -->
			<left>2000</left>
			<top>2000</top>
			<width>100</width>
			<height>0</height>
			<label/>
			<font/>
		</control>
		<include>CommonCustomBackground</include>
		<include>CommonBackground</include>
		<include>ContentPanelBackgrounds</include>
		<control type="group">
			<visible>!Control.IsVisible(999)</visible>
			<include>Window_OpenClose_Animation</include>
			<!-- view id = 50 -->
			<include content="CommonRootView">
				<param name="isMediaItemDetailBG" value="[ !String.IsEmpty(ListItem.Label2) | !String.IsEmpty(ListItem.Rating) | !String.IsEmpty(ListItem.Duration)]" />
				<param name="Lab2" value="$VAR[GlobalSearchLabel2]" />
				<param name="isVisibleWindows" value="Window.IsVisible(script-globalsearch.xml)" />
				<param name="isWatching" value="!Integer.IsEqual(ListItem.Property(percentplayed),0)" />
				<param name="isWatched" value="Integer.IsEqual(ListItem.Property(percentplayed),0) + Integer.IsGreater(ListItem.Property(playcount),0)" />
				<param name="WatchedImage" value="OverlayWatched.png" />
			</include>
			<!-- view id = 51 -->
			<include content="FullWidthList">
				<param name="IconList" value="$VAR[SearchIconWallThumb]" />
				<param name="isMediaItemDetailBG" value="[ !String.IsEmpty(ListItem.Label2) | !String.IsEmpty(ListItem.Rating) | !String.IsEmpty(ListItem.Duration)]" />
				<param name="Lab2" value="$VAR[GlobalSearchLabel2]" />
				<param name="isVisibleWindows" value="Window.IsVisible(script-globalsearch.xml)" />
				<param name="isWatching" value="!Integer.IsEqual(ListItem.Property(percentplayed),0)" />
				<param name="isWatched" value="Integer.IsEqual(ListItem.Property(percentplayed),0) + Integer.IsGreater(ListItem.Property(playcount),0)" />
				<param name="WatchedImage" value="OverlayWatched.png" />
			</include>
			<!-- view id = 500 -->
			<include content="ThumbnailView">
				<param name="IconList" value="$VAR[SearchIconWallThumb]" />
				<param name="isWatching" value="!Integer.IsEqual(ListItem.Property(percentplayed),0)" />
				<param name="isWatched" value="Integer.IsEqual(ListItem.Property(percentplayed),0) + Integer.IsGreater(ListItem.Property(playcount),0)" />
				<param name="WatchedImage" value="OverlayWatched.png" />
			</include>
		</control>
		<control type="group">
			<depth>DepthFooter</depth>
			<include>CommonPageCount</include>
			<include>CommonNowPlaying</include>
		</control>
		<include>MainWindowMouseButtons</include>
		<include>BehindDialogFadeOut</include>
		<include>ScrollOffsetLabel</include>
		<control type="group">
			<depth>DepthHeader</depth>
			<control type="image">
				<description>Section header image</description>
				<left>20</left>
				<top>3</top>
				<width>35</width>
				<height>35</height>
				<aspectratio>keep</aspectratio>
				<texture>icon_search.png</texture>
			</control>
			<control type="grouplist">
				<left>65</left>
				<top>5</top>
				<width>1000</width>
				<height>30</height>
				<orientation>horizontal</orientation>
				<align>left</align>
				<itemgap>5</itemgap>
				<control type="label">
					<include>WindowTitleCommons</include>
					<label>$LOCALIZE[283]</label>
				</control>
				<control type="label">
					<include>WindowTitleCommons</include>
					<label>$INFO[Window(Home).Property(GlobalSearch.SearchString),[COLOR=blue] - [/COLOR],]</label>
				</control>
			</control>
			<include>Clock</include>
		</control>
		<control type="group">
			<visible>!Control.IsVisible(999)</visible>
			<left>-250</left>
			<depth>DepthSideBlade</depth>
			<animation effect="slide" start="0,0" end="250,0" time="300" tween="quadratic" easing="out" condition="[ControlGroup(9999).HasFocus | Control.HasFocus(9001) | Control.HasFocus(8999)] + ![Window.IsActive(PVRGuideInfo) | Window.IsActive(PVRRadioRDSInfo)]">Conditional</animation>
			<animation effect="slide" start="0,0" end="-300,0" time="300" tween="quadratic" easing="out" condition="ControlGroup(9999).HasFocus | Control.HasFocus(9001)">WindowClose</animation>
			<animation effect="slide" start="0,0" end="-50,0" time="225" tween="quadratic" easing="out" condition="![ControlGroup(9999).HasFocus | Control.HasFocus(9001)]">WindowClose</animation>
			<animation effect="slide" start="-50,0" end="0,0" time="225" tween="quadratic" easing="out">WindowOpen</animation>
			<control type="button" id="8999">
				<description>Fake button for mouse control</description>
				<left>0</left>
				<top>0</top>
				<width>250</width>
				<height>720</height>
				<label/>
				<font/>
				<texturenofocus/>
				<texturefocus/>
				<visible>true</visible>
			</control>
			<control type="button" id="9001">
				<left>250</left>
				<top>260</top>
				<width>42</width>
				<height>128</height>
				<font/>
				<texturefocus>HasSub.png</texturefocus>
				<texturenofocus>HasSub.png</texturenofocus>
			</control>
			<control type="image">
				<left>-20</left>
				<top>0</top>
				<width>280</width>
				<height>720</height>
				<texture border="0,0,10,0">MediaBladeSub.png</texture>
			</control>
			<control type="image">
				<description>LOGO</description>
				<left>15</left>
				<top>0</top>
				<width>220</width>
				<height>80</height>
				<aspectratio>keep</aspectratio>
				<texture>Confluence_Logo.png</texture>
			</control>
			<control type="grouplist" id="9999">
				<left>0</left>
				<top>60</top>
				<width>250</width>
				<height>650</height>
				<onleft>9999</onleft>
				<onright>50</onright>
				<onup>9999</onup>
				<ondown>9999</ondown>
				<onback>50</onback>
				<itemgap>0</itemgap>
				<control type="radiobutton" id="990">
					<description>Search button</description>
					<include>ButtonCommonValues</include>
					<textureradioonfocus>icon_search_home.png</textureradioonfocus>
					<textureradioonnofocus>icon_search_home.png</textureradioonnofocus>
					<textureradioofffocus>icon_search_home.png</textureradioofffocus>
					<textureradiooffnofocus>icon_search_home.png</textureradiooffnofocus>
					<label>137</label>
				</control>
				<control type="label" id="200">
					<width>250</width>
					<height>35</height>
					<font>font12</font>
					<label>31006</label>
					<textcolor>blue</textcolor>
					<align>center</align>
					<aligny>center</aligny>
				</control>
				<control type="button" id="2">
					<description>View As button</description>
					<textwidth>235</textwidth>
					<include>ButtonCommonValues</include>
					<onclick>Container.NextViewMode</onclick>
					<label/>
				</control>
				<control type="label" id="201">
					<width>250</width>
					<height>35</height>
					<font>font12</font>
					<label>20094</label>
					<textcolor>blue</textcolor>
					<align>center</align>
					<aligny>center</aligny>
				</control>
				<control type="list" id="9000">
					<width>250</width>
					<height>360</height>
					<onup>990</onup>
					<ondown>2</ondown>
					<onleft>50</onleft>
					<onright>50</onright>
					<itemlayout height="40" width="250">
						<control type="label">
							<left>10</left>
							<top>0</top>
							<height>40</height>
							<width>200</width>
							<aligny>center</aligny>
							<font>font13</font>
							<label>$INFO[ListItem.Label]</label>
						</control>
						<control type="label">
							<left>180</left>
							<top>0</top>
							<height>40</height>
							<width>60</width>
							<align>right</align>
							<aligny>center</aligny>
							<font>font13</font>
							<label>$INFO[ListItem.Label2]</label>
						</control>
					</itemlayout>
					<focusedlayout height="40" width="250">
						<control type="image">
							<height>40</height>
							<width>250</width>
							<texture border="5">button-focus.png</texture>
							<visible>Control.HasFocus(9000)</visible>
						</control>
						<control type="label">
							<left>10</left>
							<top>0</top>
							<height>40</height>
							<width>200</width>
							<aligny>center</aligny>
							<font>font13</font>
							<label>$INFO[ListItem.Label]</label>
						</control>
						<control type="label">
							<left>180</left>
							<top>0</top>
							<height>40</height>
							<width>60</width>
							<align>right</align>
							<aligny>center</aligny>
							<font>font13</font>
							<label>$INFO[ListItem.Label2]</label>
						</control>
					</focusedlayout>
				</control>
				<include>CommonNowPlaying_Controls</include>
			</control>
		</control>
	</controls>
</window>