<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">22</defaultcontrol>
	<controls>
		<control type="group">
			<visible>!Window.IsActive(virtualkeyboard) + !Window.IsActive(smartplaylistrule) + !Window.IsActive(selectdialog)</visible>
			<include>CommonDialogsAnimation</include>
			<include content="DialogsPanel">
				<param name="group_left" value="308"/>
				<param name="group_top" value="151"/>
				<param name="group_width" value="658"/>
				<param name="body_width" value="658"/>
				<param name="body_height" value="397"/>
				<param name="header_line_width" value="654"/>
				<param name="header_id" value="2"/>
				<param name="header_width" value="620"/>
				<param name="countitems_visible" value="false"/>
			</include>
			<control type="group">
				<animation type="Conditional" condition="![Control.HasFocus(16) | Control.HasFocus(17) | Control.HasFocus(18) | Control.HasFocus(19) | ControlGroup(10000).HasFocus]" reversible="false">
					<effect type="fade" start="0" end="100" time="0" delay="200" tween="sine" easing="inout" />
					<effect type="slide" start="0,-200" end="0,0" time="250" delay="0" tween="sine" easing="inout" />
				</animation>
				<animation type="Conditional" condition="Control.HasFocus(16) | Control.HasFocus(17) | Control.HasFocus(18) | Control.HasFocus(19) | ControlGroup(10000).HasFocus" reversible="false">
					<effect type="slide" start="0,0" end="0,-200" time="250" delay="0" tween="sine" easing="inout" />
					<effect type="fade" start="100" end="0" time="0" delay="50" tween="sine" easing="inout" />
				</animation>
				<control type="button" id="22">
					<description>Set Playlist type</description>
					<left>328</left>
					<top>222</top>
					<width>624</width>
					<height>45</height>
					<label>$LOCALIZE[467]</label>
					<onup>10030</onup>
					<ondown>12</ondown>
					<onright>10000</onright>
					<onleft>12</onleft>
					<include>DialogsButton</include>
				</control>
				<control type="label">
					<description>Name Label</description>
					<left>330</left>
					<top>279</top>
					<width>620</width>
					<height>30</height>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_16B</font>
					<textcolor>disabled</textcolor>
					<label>$LOCALIZE[21433]</label>
				</control>
				<control type="button" id="12">
					<description>Name Button</description>
					<left>328</left>
					<top>306</top>
					<width>624</width>
					<height>45</height>
					<label></label>
					<onup>22</onup>
					<onleft>12</onleft>
					<onright>10000</onright>
					<ondown>9000</ondown>
					<include>DialogsButton</include>
				</control>
			</control>

			<control type="group">
				<animation type="Conditional" condition="![Control.HasFocus(16) | Control.HasFocus(17) | Control.HasFocus(18) | Control.HasFocus(19) | ControlGroup(10000).HasFocus]" reversible="false">
					<effect type="slide" start="0,-147" end="0,0" time="250" delay="0" tween="sine" easing="inout" />
				</animation>
				<animation type="Conditional" condition="Control.HasFocus(16) | Control.HasFocus(17) | Control.HasFocus(18) | Control.HasFocus(19) | ControlGroup(10000).HasFocus" reversible="false">
					<effect type="slide" start="0,0" end="0,-147" time="250" delay="0" tween="sine" easing="inout" />
				</animation>
				<control type="label">
					<description>rules label</description>
					<left>330</left>
					<top>362</top>
					<width>620</width>
					<height>30</height>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_16B</font>
					<textcolor>disabled</textcolor>
					<label>$LOCALIZE[21434]</label>
				</control>
				<control type="group" id="9000">
					<control type="panel" id="10">
						<description>Rules List Control</description>
						<left>328</left>
						<top>388</top>
						<width>460</width>
						<height>154</height>
						<onup>12</onup>
						<ondown>10020</ondown>
						<onleft>9001</onleft>
						<onright>9001</onright>
						<scrolltime>200</scrolltime>
						<itemlayout height="51" width="460">
							<control type="image">
								<left>0</left>
								<top>0</top>
								<width>460</width>
								<height>45</height>
								<texture border="1">buttons/nofocus.png</texture>
							</control>
							<control type="label">
								<left>10</left>
								<top>-1</top>
								<width>446</width>
								<height>45</height>
								<font>FontSize_22</font>
								<textcolor>viewsinfo</textcolor>
								<selectedcolor>$VAR[Text.GlobalColor]</selectedcolor>
								<info>ListItem.Label</info>
							</control>
						</itemlayout>
						<focusedlayout height="51" width="460">
							<control type="image">
								<left>0</left>
								<top>0</top>
								<width>460</width>
								<height>45</height>
								<texture>buttons/focus.png</texture>
								<visible>Control.HasFocus(10)</visible>
							</control>
							<control type="label">
								<left>10</left>
								<top>-1</top>
								<width>446</width>
								<height>45</height>
								<font>FontSize_22</font>
								<selectedcolor>$VAR[Text.GlobalColor]</selectedcolor>
								<info>ListItem.Label</info>
								<visible>Control.HasFocus(10)</visible>
							</control>
							<control type="label">
								<left>10</left>
								<top>-1</top>
								<width>446</width>
								<height>45</height>
								<font>FontSize_22</font>
								<textcolor>viewsinfo</textcolor>
								<selectedcolor>$VAR[Text.GlobalColor]</selectedcolor>
								<info>ListItem.Label</info>
								<visible>!Control.HasFocus(10)</visible>
							</control>
						</focusedlayout>
					</control>
					<control type="group" id="9001">
						<left>792</left>
						<top>388</top>
						<control type="button" id="13">
							<description>Add Rule Button</description>
							<top>0</top>
							<width>160</width>
							<height>45</height>
							<label>$LOCALIZE[15019]</label>
							<onup>12</onup>
							<ondown>14</ondown>
							<onleft>10</onleft>
							<onright>10000</onright>
							<align>center</align>
							<include>DialogsButton</include>
						</control>
						<control type="button" id="14">
							<description>Remove Rule Button</description>
							<top>49</top>
							<height>45</height>
							<width>160</width>
							<label>$LOCALIZE[1210]</label>
							<onup>13</onup>
							<ondown>15</ondown>
							<onleft>10</onleft>
							<onright>10000</onright>
							<align>center</align>
							<include>DialogsButton</include>
						</control>
						<control type="button" id="15">
							<description>Edit Rule Button</description>
							<top>98</top>
							<height>45</height>
							<width>160</width>
							<label>$LOCALIZE[21435]</label>
							<onup>14</onup>
							<ondown>16</ondown>
							<onleft>10</onleft>
							<onright>10000</onright>
							<align>center</align>
							<include>DialogsButton</include>
						</control>
					</control>
				</control>
			</control>

			<control type="group" id="10020">
				<animation type="Conditional" condition="Control.HasFocus(16) | Control.HasFocus(17) | Control.HasFocus(18) | Control.HasFocus(19) | ControlGroup(10000).HasFocus" reversible="false">
					<effect type="fade" start="0" end="100" time="0" delay="200" tween="sine" easing="inout" />
					<effect type="slide" start="0,200" end="0,0" time="250" delay="0" tween="sine" easing="inout" />
				</animation>
				<animation type="Conditional" condition="![Control.HasFocus(16) | Control.HasFocus(17) | Control.HasFocus(18) | Control.HasFocus(19) | ControlGroup(10000).HasFocus]" reversible="false">
					<effect type="slide" start="0,0" end="0,200" time="250" delay="0" tween="sine" easing="inout" />
					<effect type="fade" start="100" end="0" time="0" delay="50" tween="sine" easing="inout" />
				</animation>
				<control type="button" id="16">
					<left>328</left>
					<top>388</top>
					<width>624</width>
					<height>45</height>
					<label>$LOCALIZE[21424]</label>
					<onright>10000</onright>
					<onleft>16</onleft>
					<onup>9000</onup>
					<ondown>17</ondown>
					<onback>10010</onback>
					<include>DialogsButton</include>
				</control>
				<control type="button" id="17">
					<left>328</left>
					<top>437</top>
					<width>624</width>
					<height>45</height>
					<label>$LOCALIZE[21427]</label>
					<onright>10000</onright>
					<onleft>17</onleft>
					<onup>16</onup>
					<ondown>18</ondown>
					<onback>10010</onback>
					<include>DialogsButton</include>
				</control>
				<control type="group"  id="10030">
					<control type="button" id="18">
						<left>328</left>
						<top>487</top>
						<width>460</width>
						<height>45</height>
						<label>$LOCALIZE[21429]</label>
						<onright>19</onright>
						<onleft>19</onleft>
						<onup>17</onup>
						<ondown>22</ondown>
						<onback>10010</onback>
						<include>DialogsButton</include>
					</control>
					<control type="button" id="19">
						<left>792</left>
						<top>487</top>
						<width>160</width>
						<height>45</height>
						<label></label>
						<alttexturefocus>buttons/focus.png</alttexturefocus>
						<alttexturenofocus></alttexturenofocus>
						<align>center</align>
						<onright>10000</onright>
						<onleft>18</onleft>
						<onup>17</onup>
						<ondown>22</ondown>
						<onback>10010</onback>
						<include>DialogsButton</include>
					</control>
				</control>
			</control>

			<!-- Control Buttons -->
			<control type="grouplist" id="10000">
				<left>974</left>
				<top>436</top>
				<height>112</height>
				<onleft>10030</onleft>
				<onright>10030</onright>
				<align>right</align>
				<defaultcontrol always="true">20</defaultcontrol>
				<control type="button" id="21">
					<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="20">
					<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[190]</label>
				</control>
			</control>
		</control>
	</controls>
</window>