<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">450</defaultcontrol>
    <onload condition="Window.IsActive(NetworkSetup)">SetProperty(ShowDialog,1,Home)</onload>
    <onload condition="Window.IsActive(NetworkSetup)">SetProperty(ShowDialog,1)</onload>
    <onunload>ClearProperty(ShowDialog,home)</onunload>
	<controls>
		<!-- Default View -->
		<control type="group">
			<include>CommonDialogsAnimation</include>
			<visible>!Window.IsActive(VirtualKeyboard) + ![Window.IsActive(NetworkSetup) + String.IsEmpty(Window(Home).Property(ShowDialog))] + !Window.IsActive(LockSettings)</visible>
			<include content="DialogsPanel">
				<param name="group_left" value="260"/>
				<param name="group_top" value="170"/>
				<param name="group_width" value="752"/>
				<param name="body_width" value="752"/>
				<param name="body_height" value="358"/>
				<param name="header_line_width" value="748"/>
				<param name="header_id" value="411"/>
				<param name="header_width" value="742"/>
				<param name="countitems_visible" value="true"/>
				<param name="countitems_top" value="323"/>
			</include>
			<control type="image">
				<left>750</left>
				<top>240</top>
				<width>249</width>
				<height>251</height>
				<texture border="39">buttons/nofocus.png</texture>
			</control>
			<control type="image">
				<description>Large Icon Image</description>
				<left>750</left>
				<top>241</top>
				<width>249</width>
				<height>249</height>
				<aspectratio align="center" aligny="center">keep</aspectratio>
				<texture>$INFO[Listitem.Icon]</texture>
				<bordersize>1</bordersize>
			</control>
			<control type="panel" id="450">
				<left>278</left>
				<top>240</top>
				<width>467</width>
				<height>255</height>
				<onup>450</onup>
				<onleft>10000</onleft>
				<onright>10000</onright>
				<ondown>450</ondown>
				<visible>Control.IsVisible(450) | Window.IsVisible(ProfileSettings) | Window.IsVisible(PVRChannelManager) | Window.IsVisible(Favourites)</visible>
			  <scrolltime tween="quadratic" easing="out">250</scrolltime>
				<itemlayout height="51" width="467">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>467</width>
						<height>47</height>
						<texture border="1">buttons/nofocus.png</texture>
					</control>
					<control type="label">
						<left>10</left>
						<top>0</top>
						<width>447</width>
						<height>48</height>
						<font>FontSize_22</font>
						<textcolor>viewsinfo</textcolor>
						<info>ListItem.Label</info>
					</control>
				</itemlayout>
				<focusedlayout height="51" width="467">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>467</width>
						<height>47</height>
					  <texture>buttons/focus.png</texture>
			      <animation effect="slide" start="0,25" end="0,0" time="200" reversible="false" tween="back" easing="out" condition="Container(450).OnPrevious">focus</animation>
			      <animation effect="slide" start="0,-25" end="0,0" time="200" reversible="false" tween="back" easing="out" condition="Container(450).OnNext">focus</animation>
            <visible>Control.HasFocus(450)</visible>
					</control>
					<control type="label">
						<left>10</left>
						<top>0</top>
						<width>447</width>
						<height>48</height>
						<font>FontSize_22</font>
						<info>ListItem.Label</info>
						<visible>Control.HasFocus(450)</visible>
					</control>
					<control type="label">
						<left>10</left>
						<top>0</top>
						<width>447</width>
						<height>48</height>
						<font>FontSize_22</font>
						<textcolor>viewsinfo</textcolor>
						<info>ListItem.Label</info>
						<visible>!Control.HasFocus(450)</visible>
					</control>
				</focusedlayout>
			</control>
			<control type="label" id="412">
				<description>Path</description>
				<left>280</left>
				<top>495</top>
				<width>630</width>
				<height>30</height>
				<font>FontSize_16B</font>
				<textcolor>disabled</textcolor>
				<haspath>true</haspath>
			</control>

		  <control type="grouplist" id="10000">
				<left>1020</left>
				<top>359</top>
				<height>168</height>
				<onleft>450</onleft>
				<onright>450</onright>
				<align>right</align>
				<defaultcontrol always="true">413</defaultcontrol>
	  		<control type="button" id="415">
					<description>New Folder</description>
		      <include>DialogsButtonsText</include>
      		<texturefocus border="49,0,49,0">dialogs/buttons/newfolder_focus.png</texturefocus>
      		<texturenofocus border="49,0,49,0">dialogs/buttons/newfolder_nofocus.png</texturenofocus>
					<label>$LOCALIZE[119]</label>
          <animation effect="fade" start="100" end="50" time="0" condition="!Control.IsEnabled(415)">Conditional</animation>
	  		</control>
	  		<control type="button" id="414">
				  <description>Cancel</description>
		      <include>DialogsButtonsText</include>
	    		<texturefocus border="49,0,49,0">dialogs/buttons/cancel_focus.png</texturefocus>
	    		<texturenofocus border="49,0,49,0">dialogs/buttons/cancel_nofocus.png</texturenofocus>
					<label>$LOCALIZE[222]</label>
	  		</control>
	  		<control type="button" id="413">
					<description>Save</description>
		      <include>DialogsButtonsText</include>
	    		<texturefocus border="49,0,49,0">dialogs/buttons/save_focus.png</texturefocus>
	    		<texturenofocus border="49,0,49,0">dialogs/buttons/save_nofocus.png</texturenofocus>
					<label>$LOCALIZE[186]</label>
          <animation effect="fade" start="100" end="50" time="0" condition="!Control.IsEnabled(413)">Conditional</animation>
	  		</control>
		  </control>
		</control>

		<!-- Art View -->
		<control type="group">
      <include>CommonDialogsAnimation</include>
			<visible>Control.IsVisible(451) + ![Window.IsVisible(ProfileSettings) | Window.IsVisible(PVRChannelManager) | Window.IsVisible(Favourites)]</visible>
			<control type="group">
  			<left>87</left>
  			<top>130</top>
	  	  <control type="image">
	  			<left>0</left>
	  			<top>0</top>
	  		  <width>1105</width>
	  		  <height>446</height>
	  		  <texture border="31">views/other/panel.png</texture>
	  	  </control>
	  	  <control type="image">
	  			<left>330</left>
	  			<top>2</top>
	  		  <width>1</width>
	  		  <height>442</height>
	  		  <texture colordiffuse="33white">windows/bg/white.png</texture>
	  	  </control>
				<control type="image">
					<left>330</left>
					<top>0</top>
					<width>775</width>
					<height>445</height>
					<aspectratio align="center" aligny="center">keep</aspectratio>
					<texture background="true" border="1">$VAR[FileBrowserArtBigThumb]</texture>
					<bordersize>10</bordersize>
				</control>
	  		<control type="label">
	  			<description>Page Count Label</description>
	  			<right>90</right>
	  			<top>450</top>
	  			<width>75</width>
					<height>35</height>
	  			<font>FontSize_16B</font>
	  			<textcolor>disabled</textcolor>
	  			<align>right</align>
	  			<label>$VAR[ContainerNumItems]</label>
	  		</control>
			</control>
			<control type="panel" id="451">
				<left>97</left>
				<top>140</top>
				<width>311</width>
				<height>431</height>
				<onup>451</onup>
				<ondown>451</ondown>
				<onleft>10000</onleft>
				<onright>10000</onright>
				<scrolltime tween="quadratic" easing="out">250</scrolltime>
				<visible>Control.IsVisible(451) + ![Window.IsVisible(ProfileSettings) | Window.IsVisible(PVRChannelManager) | Window.IsVisible(Favourites)]</visible>
				<itemlayout height="61.5" width="311">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>311</width>
						<height>56</height>
						<texture background="true">buttons/nofocus.png</texture>
					</control>
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>56</width>
						<height>56</height>
						<aspectratio align="center" aligny="center">keep</aspectratio>
						<texture colordiffuse="viewsinfo" fallback="DefaultAddon.png">$INFO[Listitem.Icon]</texture>
						<bordertexture border="6">thumbs/thumb_border.png</bordertexture>
						<bordersize>6</bordersize>
					</control>
					<control type="label">
						<left>64</left>
						<top>0</top>
						<width>225</width>
						<height>56</height>
						<font>FontSize_22</font>
						<textcolor>viewsinfo</textcolor>
						<selectedcolor>$VAR[Text.GlobalColor]</selectedcolor>
						<label>$INFO[ListItem.Label]</label>
					</control>
				</itemlayout>
				<focusedlayout height="61.5" width="311">
					<control type="group">
						<include>PVRListFocusAnimation</include>
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>311</width>
							<height>56</height>
							<texture background="true">buttons/focus.png</texture>
							<include>ListFocusAnimation</include>
						</control>
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>56</width>
							<height>56</height>
							<aspectratio align="center" aligny="center">keep</aspectratio>
							<texture fallback="DefaultAddon.png">$INFO[Listitem.Icon]</texture>
							<bordertexture border="6">thumbs/thumb_border.png</bordertexture>
							<bordersize>6</bordersize>
						</control>
						<control type="label">
							<left>64</left>
							<top>0</top>
							<width>225</width>
							<height>56</height>
							<font>FontSize_22</font>
							<selectedcolor>white</selectedcolor>
							<label>$INFO[ListItem.Label]</label>
						</control>
					</control>
				</focusedlayout>
			</control>

			<control type="grouplist" id="10000">
				<left>80</left>
				<top>580</top>
				<width>900</width>
				<onup>450</onup>
				<itemgap>-20</itemgap>
				<orientation>horizontal</orientation>
				<control type="button" id="413">
					<description>OK</description>
					<texturefocus border="39,3,39,39">dialogs/buttons/add_focus_two.png</texturefocus>
					<texturenofocus border="39,3,39,39">dialogs/buttons/add_nofocus_two.png</texturenofocus>
					<include>DialogsButtonsTextHorizontal</include>
					<label>$LOCALIZE[186]</label>
				</control>
				<control type="button" id="414">
					<description>Cancel</description>
					<texturefocus border="39,3,39,39">dialogs/buttons/cancel_focus_two.png</texturefocus>
					<texturenofocus border="39,3,39,39">dialogs/buttons/cancel_nofocus_two.png</texturenofocus>
					<include>DialogsButtonsTextHorizontal</include>
					<label>$LOCALIZE[222]</label>
				</control>
			</control>
		</control>
	</controls>
</window>
