<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<window>
	<defaultcontrol>100</defaultcontrol>
	<coordinates>
		<system>1</system>
		<left>0</left>
		<top>0</top>
	</coordinates>
	<controls>

		<control type="group">
			<animation type="WindowOpen" reversible="false">
				<effect type="fade" start="0" end="100" time="250"/>
			</animation>
			<animation type="WindowClose" reversible="false">
				<effect type="fade" start="100" end="0" time="250"/>
			</animation>
			<control type="videowindow">
				<width>100%</width>
				<height>100%</height>
			</control>
			<control type="image">
				<width>100%</width>
				<height>100%</height>
				<texture>bg/overlay.png</texture>
			</control>
		</control>


		<!-- ========= -->
		<!-- Top Group -->
		<!-- ========= -->
		<control type="group">
			<animation type="WindowOpen" reversible="false">
				<effect type="slide" start="0,-35" end="0,0" time="300" tween="quadratic" easing="out"/>
				<effect type="fade" start="0" end="100" time="250"/>
			</animation>
			<animation type="WindowClose" reversible="false">
				<effect type="slide" start="0,0" end="0,-35" time="300" tween="quadratic" easing="out"/>
				<effect type="fade" start="100" end="0" time="250"/>
			</animation>
			<control type="image">
				<left>12</left>
				<top>20</top>
				<width>96</width>
				<height>82</height>
				<texture>$INFO[System.AddonIcon(script.smoothstreams-v3)]</texture>
			</control>
			<control type="label">
				<left>105</left>
				<top>44</top>
				<width>620</width>
				<height>50</height>
				<font>font14</font>
				<aligny>center</aligny>
				<textcolor>FFF36523</textcolor>
				<shadowcolor>77000000</shadowcolor>
				<label>[B]$ADDON[script.smoothstreams-v3 32001][/B]</label>
			</control>
			<control type="label">
				<left>20</left>
				<top>44</top>
				<width>1240</width>
				<height>50</height>
				<font>font14</font>
				<align>right</align>
				<aligny>center</aligny>
				<textcolor>DDFFFFFF</textcolor>
				<shadowcolor>77000000</shadowcolor>
				<label>$INFO[System.Date(ddd),,$COMMA ]$INFO[System.Date(mmm),, ]$INFO[System.Date(d),,$COMMA ]$INFO[System.Time]</label> -->
				<!-- <label>$INFO[System.Date(ddd),,$COMMA ]$INFO[System.Date(mmm)]$INFO[System.Date(d), ]$INFO[System.Date(yyyy),$COMMA ][CR]$INFO[System.Time]</label> -->
			</control>
		</control>


		<!-- ========== -->
		<!-- Main Group -->
		<!-- ========== -->
		<control type="group" id="200">
			<defaultcontrol>201</defaultcontrol>
			<animation type="WindowOpen" reversible="false">
				<effect type="slide" start="0,35" end="0,0" time="300" tween="quadratic" easing="out"/>
				<effect type="fade" start="0" end="100" time="250"/>
			</animation>
			<animation type="WindowClose" reversible="false">
				<effect type="slide" start="0,0" end="0,35" time="300" tween="quadratic" easing="out"/>
				<effect type="fade" start="100" end="0" time="250"/>
			</animation>

			<!-- Small Top Labels -->
			<control type="group">
				<left>23</left>
				<top>130</top>
				<control type="image">
					<left>0</left>
					<top>150</top>
					<width>1236</width>
					<height>1</height>
					<texture colordiffuse="FF555555">white.png</texture>
				</control>
				<control type="label">
					<left>0</left>
					<top>110</top>
					<width>670</width>
					<height>50</height>
					<font>font12</font>
					<aligny>center</aligny>
					<textcolor>FFF36523</textcolor>
					<label>$INFO[Window.Property(category), [COLOR=99FFFFFF]$ADDON[script.smoothstreams-v3 30400]:[/COLOR] ]</label>
				</control>
			</control>
			<control type="group">
				<left>20</left>
				<top>240</top>
				<control type="group">
					<animation type="Conditional" condition="!ControlGroup(100).HasFocus" reversible="false">
					 <effect type="slide" start="-216,0" end="0,0" time="300" tween="quadratic" easing="out" />
					</animation>
					<animation type="Conditional" condition="ControlGroup(100).HasFocus" reversible="false">
					 <effect type="slide" start="0,0" end="-216,0" time="300" tween="quadratic" easing="out" />
					</animation>
					<control type="image">
						<left>32r</left>
						<top>19</top>
						<width>10</width>
						<height>14</height>
						<texture colordiffuse="99FFFFFF">right_arrow.png</texture>
						<animation effect="fade" start="100" end="0" time="200" condition="ControlGroup(100).HasFocus">Conditional</animation>
					</control>
					<control type="image">
						<left>138r</left>
						<top>19</top>
						<width>10</width>
						<height>14</height>
						<texture flipx="true" colordiffuse="99FFFFFF">right_arrow.png</texture>
						<animation effect="fade" start="100" end="0" time="200" condition="!ControlGroup(100).HasFocus">Conditional</animation>
					</control>
					<control type="label">
						<left>353r</left>
						<top>0</top>
						<width>315</width>
						<height>50</height>
						<font>font12</font>
						<align>right</align>
						<aligny>center</aligny>
						<textcolor>99FFFFFF</textcolor>
						<label>$ADDON[script.smoothstreams-v3 32002]</label>
						<animation effect="fade" start="100" end="0" time="200" condition="ControlGroup(100).HasFocus">Conditional</animation>
					</control>
					<control type="label">
						<left>121r</left>
						<top>0</top>
						<width>315</width>
						<height>50</height>
						<font>font12</font>
						<align>left</align>
						<aligny>center</aligny>
						<textcolor>99FFFFFF</textcolor>
						<label>$ADDON[script.smoothstreams-v3 32004]</label>
						<animation effect="fade" start="100" end="0" time="200" condition="!ControlGroup(100).HasFocus">Conditional</animation>
					</control>
				</control>
			</control>

			<!-- Panel Container -->
			<control type="panel" id="201">
				<animation type="Conditional" condition="!ControlGroup(100).HasFocus" reversible="false">
				 	<effect type="slide" start="0,0" end="350,0" time="300" tween="quadratic" easing="out" />
				</animation>
				<animation type="Conditional" condition="ControlGroup(100).HasFocus" reversible="false">
				 	<effect type="slide" start="350,0" end="0,0" time="300" tween="quadratic" easing="out" />
				</animation>
				<left>-326</left>
				<top>296</top>
				<width>1240</width>
				<height>390</height>
				<onright>101</onright>
				<scrolltime tween="sine" easing="out">300</scrolltime>
				<itemlayout width="248" height="130">
					<!-- Left Part -->
					<control type="image">
						<left>0</left>
						<top>2</top>
						<width>242</width>
						<height>122</height>
						<texture border="2">colors/808080.png</texture>
						<colordiffuse>FF606060</colordiffuse>
					</control>
					<control type="image">
						<left>5</left>
						<top>8</top>
						<width>96</width>
						<height>52</height>
						<texture border="4">channel_logo_bg.png</texture>
					</control>
						<control type="image">
						<left>10</left>
						<top>13</top>
						<width>86</width>
						<height>42</height>
						<aspectratio>keep</aspectratio>
						<texture fallback="fallback_logo.png">$INFO[ListItem.Icon]</texture>
					</control>
					<control type="label">
						<left>106</left>
						<top>2</top>
						<width>130</width>
						<height>40</height>
						<font>font12</font>
						<aligny>center</aligny>
						<textcolor>white</textcolor>
						<shadowcolor>77000000</shadowcolor>
						<label>[B]$INFO[ListItem.Label2][/B]</label>
					</control>
					<control type="label">
						<left>106</left>
						<top>28</top>
						<width>130</width>
						<height>40</height>
						<font>font12</font>
						<aligny>center</aligny>
						<textcolor>BBFFFFFF</textcolor>
						<shadowcolor>77000000</shadowcolor>
						<label>$INFO[ListItem.Property(duration)]</label>
						<label>$INFO[ListItem.Property(channel),Ch.]</label>
					</control>
					<control type="image">
						<left>180</left>
						<top>40</top>
						<width>26</width>
						<height>18</height>
						<texture>$INFO[ListItem.Property(quality)]</texture>
					</control>
					<control type="image">
						<left>212</left>
						<top>40</top>
						<width>26</width>
						<height>18</height>
						<texture fallback="flags/all.png">$INFO[ListItem.Property(flag)]</texture>
					</control>
					<control type="image">
						<left>0</left>
						<top>70</top>
						<width>242</width>
						<height>55</height>
						<texture border="2">$INFO[ListItem.Property(color)]</texture>
						<colordiffuse>FF606060</colordiffuse>
					</control>
					<control type="image">
						<left>0</left>
						<top>66</top>
						<width>242</width>
						<height>6</height>
						<texture colordiffuse="FFF36523">$INFO[ListItem.Property(playing)]</texture>
						<visible>!String.IsEmpty(ListItem.Property(playing))</visible>
					</control>
					<control type="image...........">
						<left>0</left>
						<top>70</top>
						<width>242</width>
						<height>55</height>
						<texture border="2">selected.png</texture>
						<visible>ListItem.IsPlaying</visible>
					</control>
					<control type="textbox">
						<left>5</left>
						<top>75</top>
						<width>232</width>
						<height>46</height>
						<font>font12</font>
						<aligny>center</aligny>
						<textcolor>BBFFFFFF</textcolor>
						<shadowcolor>77000000</shadowcolor>
						<label>$INFO[ListItem.Label]</label>
					</control>

					<!-- Old Overlay -->
					<control type="image">
						<visible>!String.IsEmpty(ListItem.Property(old))</visible>
						<left>0</left>
						<top>2</top>
						<width>242</width>
						<height>123</height>
						<texture>white.png</texture>
						<colordiffuse>A0000000</colordiffuse>
					</control>
				</itemlayout>
				<focusedlayout width="248" height="130">
					<control type="group">
						<!-- Left Part -->
						<control type="image">
							<left>0</left>
							<top>2</top>
							<width>242</width>
							<height>122</height>
							<texture border="2">colors/808080.png</texture>
							<colordiffuse>FFB0B0B0</colordiffuse>
							<animation type="Focus">
								<effect type="fade" start="30" end="100" time="300" tween="back" easing="out"/>
							</animation>
						</control>
						<control type="image">
							<left>5</left>
							<top>8</top>
							<width>96</width>
							<height>52</height>
							<texture border="4">channel_logo_bg.png</texture>
						</control>
							<control type="image">
							<left>10</left>
							<top>13</top>
							<width>86</width>
							<height>42</height>
							<aspectratio>keep</aspectratio>
							<texture fallback="fallback_logo.png">$INFO[ListItem.Icon]</texture>
						</control>
						<control type="label">
							<left>106</left>
							<top>2</top>
							<width>130</width>
							<height>40</height>
							<font>font12</font>
							<aligny>center</aligny>
							<textcolor>white</textcolor>
							<shadowcolor>77000000</shadowcolor>
							<label>[B]$INFO[ListItem.Label2][/B]</label>
						</control>
						<control type="label">
							<left>106</left>
							<top>28</top>
							<width>130</width>
							<height>40</height>
							<font>font12</font>
							<aligny>center</aligny>
							<textcolor>BBFFFFFF</textcolor>
							<shadowcolor>77000000</shadowcolor>
							<label>$INFO[ListItem.Property(duration)]</label>
							<label>$INFO[ListItem.Property(channel),Ch.]</label>
						</control>
						<control type="image">
							<left>180</left>
							<top>40</top>
							<width>26</width>
							<height>18</height>
							<texture>$INFO[ListItem.Property(quality)]</texture>
						</control>
						<control type="image">
							<left>212</left>
							<top>40</top>
							<width>26</width>
							<height>18</height>
							<texture fallback="flags/all.png">$INFO[ListItem.Property(flag)]</texture>
						</control>
						<control type="image">
							<left>0</left>
							<top>70</top>
							<width>242</width>
							<height>55</height>
							<texture border="2">$INFO[ListItem.Property(color)]</texture>
							<colordiffuse>FFB0B0B0</colordiffuse>
							<animation type="Focus">
								<effect type="fade" start="30" end="100" time="300" tween="back" easing="out"/>
							</animation>
						</control>
						<control type="image">
							<left>0</left>
							<top>66</top>
							<width>242</width>
							<height>6</height>
							<texture colordiffuse="FFF36523">$INFO[ListItem.Property(playing)]</texture>
							<visible>!String.IsEmpty(ListItem.Property(playing))</visible>
						</control>
						<control type="image...........">
							<left>0</left>
							<top>70</top>
							<width>243</width>
							<height>55</height>
							<texture border="2">selected.png</texture>
							<visible>ListItem.IsPlaying</visible>
						</control>
						<control type="textbox">
							<left>5</left>
							<top>75</top>
							<width>232</width>
							<height>46</height>
							<font>font12</font>
							<aligny>center</aligny>
							<textcolor>BBFFFFFF</textcolor>
							<shadowcolor>77000000</shadowcolor>
							<label>$INFO[ListItem.Label]</label>
							<autoscroll delay="2000" time="1500" repeat="5000">true</autoscroll>
						</control>

						<!-- Old Overlay -->
						<control type="image">
						<visible>!String.IsEmpty(ListItem.Property(old))</visible>
						<left>0</left>
						<top>2</top>
						<width>242</width>
						<height>123</height>
						<texture colordiffuse="A1111111">white.png</texture>
					</control>
					</control>
				</focusedlayout>
			</control>

			<!-- Addon Version -->
			<control type="label">
				<left>18</left>
				<top>670</top>
				<width>1240</width>
				<height>50</height>
				<font>font12</font>
				<align>right</align>
				<aligny>center</aligny>
				<textcolor>40FFFFFF</textcolor>
				<shadowcolor>77000000</shadowcolor>
				<label>$INFO[System.AddonVersion(script.smoothstreams-v3),v]</label>
			</control>
		</control>


		<!-- ========== -->
		<!-- Categories -->
		<!-- ========== -->
		<control type="group" id="100">
			<defaultcontrol>101</defaultcontrol>
			<animation type="Conditional" condition="ControlGroup(100).HasFocus" reversible="false" >
				<effect type="slide" start="0,0" end="-354,0" time="300" tween="quadratic" easing="out" />
			</animation>
			<animation type="Conditional" condition="!ControlGroup(100).HasFocus" reversible="false" >
				<effect type="slide" start="-354,0" end="0,0" time="300" tween="quadratic" easing="out" />
			</animation>  
			<animation type="WindowOpen" reversible="false">
				<effect type="slide" start="0,35" end="0,0" time="300" tween="quadratic" easing="out"/>
				<effect type="fade" start="0" end="100" time="250"/>
			</animation>
			<animation type="WindowClose" reversible="false">
				<effect type="slide" start="0,0" end="0,35" time="300" tween="quadratic" easing="out"/>
				<effect type="fade" start="100" end="0" time="250"/>
			</animation>
			<control type="list" id="101">
				<left>1280</left>
				<top>296</top>
				<width>335</width>
				<height>388</height>
				<onleft>201</onleft>
				<onright>201</onright>
				<scrolltime tween="sine" easing="out">300</scrolltime>
				<itemlayout height="64.5">
					<control type="image">
						<left>0</left>
						<top>2</top>
						<width>335</width>
						<height>60</height>
						<texture border="2" colordiffuse="FF606060">colors/808080.png</texture>
					</control>
					<control type="image">
						<left>5</left>
						<top>7</top>
						<width>20</width>
						<height>50</height>
						<texture border="2" colordiffuse="FF606060">$INFO[ListItem.Property(color)]</texture>
						<visible>!String.IsEqual(ListItem.Label,ALL)</visible>
					</control>
					<control type="label">
						<left>30</left>
						<top>0</top>
						<width>260</width>
						<height>60</height>
						<font>font13</font>
						<aligny>center</aligny>
						<textcolor>white</textcolor>
						<shadowcolor>77000000</shadowcolor>
						<label>$INFO[ListItem.Label]</label>
						<animation effect="slide" start="0" end="-20" condition="String.IsEqual(ListItem.Label,ALL)">Conditional</animation>
					</control>
					<control type="image">
						<left>295</left>
						<top>16</top>
						<width>30</width>
						<height>30</height>
						<aspectratio>keep</aspectratio>
						<texture border="1">category_on.png</texture>
						<visible>String.IsEqual(ListItem.Property(selected),true)</visible>
					</control>
					<control type="image">
						<left>295</left>
						<top>16</top>
						<width>30</width>
						<height>30</height>
						<aspectratio>keep</aspectratio>
						<texture border="1">category_off.png</texture>
						<visible>!String.IsEqual(ListItem.Property(selected),true)</visible>
					</control>
				</itemlayout>
				<focusedlayout height="64.5">
					<control type="group">
						<animation type="Focus" reversible="false" condition="Container(101).OnPrevious">
							<effect type="slide" start="0,35" end="0,0" time="300" tween="back" easing="out"/>
						</animation>
						<animation type="Focus" reversible="false" condition="Container(101).OnNext">
							<effect type="slide" start="0,-35" end="0,0" time="300" tween="back" easing="out"/>
						</animation>
						<control type="image">
							<left>0</left>
							<top>2</top>
							<width>335</width>
							<height>60</height>
							<texture border="2" colordiffuse="FFB0B0B0">colors/808080.png</texture>
						</control>
						<control type="image">
							<left>5</left>
							<top>7</top>
							<width>20</width>
							<height>50</height>
							<texture border="2" colordiffuse="FFB0B0B0">$INFO[ListItem.Property(color)]</texture>
							<visible>!String.IsEqual(ListItem.Label,ALL)</visible>
						</control>
						<control type="label">
							<left>30</left>
							<top>0</top>
							<width>260</width>
							<height>60</height>
							<font>font13</font>
							<aligny>center</aligny>
							<textcolor>white</textcolor>
							<shadowcolor>77000000</shadowcolor>
							<label>$INFO[ListItem.Label]</label>
							<animation effect="slide" start="0" end="-20" condition="String.IsEqual(ListItem.Label,ALL)">Conditional</animation>
						</control>
						<control type="image">
							<left>295</left>
							<top>16</top>
							<width>30</width>
							<height>30</height>
							<aspectratio>keep</aspectratio>
							<texture border="1">category_on.png</texture>
							<visible>String.IsEqual(ListItem.Property(selected),true)</visible>
						</control>
						<control type="image">
							<left>295</left>
							<top>16</top>
							<width>30</width>
							<height>30</height>
							<aspectratio>keep</aspectratio>
							<texture border="1">category_off.png</texture>
							<visible>!String.IsEqual(ListItem.Property(selected),true)</visible>
						</control>
					</control>
				</focusedlayout>
			</control>
		</control>


		<control type="image">
			<animation type="WindowOpen" reversible="false">
				<effect type="fade" start="0" end="100" time="250"/>
			</animation>
			<animation type="WindowClose" reversible="false">
				<effect type="fade" start="100" end="0" time="250"/>
			</animation>
			<animation type="Visible" reversible="false">
				<effect type="fade" start="0" end="100" time="250"/>
			</animation>
			<animation type="Hidden" reversible="false">
				<effect type="fade" start="100" end="0" time="250"/>
			</animation>
			<width>100%</width>
			<height>100%</height>
			<texture>colors/FFFFFFFF.png</texture>
			<colordiffuse>CC000000</colordiffuse>
			<visible>Window.IsActive(script-smoothstreams-channel_entry.xml) | Window.IsActive(yesnodialog) | Window.IsActive(busydialog) | Window.IsActive(virtualkeyboard) | Window.IsActive(numericinput) | Window.IsActive(favourites) | Window.IsActive(playercontrols) | Window.IsActive(DialogConfirm.xml) | Window.IsActive(DialogNotification.xml) | !String.IsEmpty(Window.Property(covered))</visible>
		</control>
	</controls>
</window>
