<?xml version="1.0" encoding="utf-8"?>
<window id="29">
    <defaultcontrol always="true">52</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <coordinates>
        <system>1</system>
        <left>0</left>
        <top>0</top>
    </coordinates>
	<onload>Skin.Reset(SideMenu)</onload>
    <controls>
        <include>SkinFanart</include>
        <include>BarClock</include>
        <control type="group" id="2077">
            <animation type="WindowClose">
                <effect type="fade" time="300" />
                <effect type="slide" end="-1500,0" time="300" />
            </animation>
            <animation type="WindowOpen">
                <effect type="fade" time="300" />
                <effect type="slide" start="-1500,0" time="300" />
            </animation>

		<control type="group">
			<animation effect="slide" start="-55" end="0" time="200" delay="300">Visible</animation>
			<visible>!Skin.HasSetting(SideMenu)</visible>
			<control type="button" id="6789">
				<left>0</left>
				<top>320</top>
				<width>45</width>
				<height>95</height>
				<onclick>Skin.ToggleSetting(SideMenu)</onclick>
				<onclick>SetFocus(907)</onclick>
				<texturefocus></texturefocus>	
			</control>
			<control type="image">
				<left>0</left>
				<top>345</top>
				<width>25</width>
				<height>45</height>
				<texture>tile.png</texture>
			</control>
			<control type="image">
				<left>-15</left>
				<top>340</top>
				<width>55</width>
				<height>55</height>
				<texture flipx="true">icons/music.png</texture>
			</control>
		</control>
		<control type="group">
			<animation effect="slide" start="-55" end="0" time="200" delay="300">Visible</animation>
			<visible>Skin.HasSetting(SideMenu)</visible>
			<control type="button" id="9876">
				<left>0</left>
				<top>320</top>
				<width>45</width>
				<height>95</height>
				<onclick>Skin.Reset(SideMenu)</onclick>
				<onclick>SetFocus(52)</onclick>
				<texturefocus></texturefocus>				
			</control>
			<control type="image">
				<left>0</left>
				<top>345</top>
				<width>25</width>
				<height>45</height>
				<texture>tile.png</texture>
			</control>
			<control type="image">
				<left>-15</left>
				<top>340</top>
				<width>55</width>
				<height>55</height>
				<texture>icons/music.png</texture>
			</control>
		</control>
				
        </control>
        <control type="group" id="2055">
            <animation type="WindowClose">
                <effect type="slide" end="-1500,0" time="300" />
            </animation>
            <animation type="WindowOpen">
                <effect type="fade" time="300" />
                <effect type="slide" start="-1500,0" time="300" />
            </animation>
			<animation type="Conditional" condition="Skin.HasSetting(SideMenu)">
				<effect type="slide" start="0,0" end="+230,0" time="200" />
			</animation>
			<!-- This control defines the shutdown element -->
			<control type="group">
				<top>290</top>
				<left>-160</left>
				<width>155</width>
				<height>155</height>
				<control type="image">
					<include>PanelButtonImageNF</include>
				</control>
				<control type="image">
					<include>PanelButtonImageFO</include>
					<visible>[Control.HasFocus(907)]</visible>
					<animation effect="fade" time="300" tween="linear">VisibleChange</animation>
				</control>
				<control id="907">
					<type>button</type>
					<label>$LOCALIZE[13005]</label>
					<left>1</left>
					<width>155</width>
					<height>155</height>
					<align>left</align>
					<onback>Skin.Reset(SideMenu)</onback>
					<onback>52</onback>
					<onright>Skin.Reset(SideMenu)</onright>
					<onright>52</onright>
					<onclick>ActivateWindow(shutdownmenu)</onclick>
				</control>
				<control type="label">
					<include>PanelButtonTitle</include>
					<label>$LOCALIZE[13005]</label>
				</control>
				<control type="image">
					<include>PanelButtonIcon</include>
					<texture>icons/Power.png</texture>
				</control>
			</control>
            <control type="group">
				<!-- Up Arrow Image -->    
				<control type="image">
					<left>105</left>
					<top>245</top>
					<width>45</width>
					<height>45</height>
					<texture flipy="true">down_arrow.png</texture>
					<visible>Container(52).HasPrevious</visible>
					<animation effect="fade" time="400">VisibleChange</animation>
				</control>
				<!-- Down Arrow Image -->  
				<control type="image">
					<left>105</left>
					<top>445</top>
					<width>45</width>
					<height>45</height>
					<texture>down_arrow.png</texture>
					<visible>Container(52).HasNext</visible>
					<animation effect="fade" time="400">VisibleChange</animation>
				</control>
				<control type="label">
					<label>[B]$INFO[ListItem.Label][/B]</label>
					<left>210</left>
					<top>250</top>
					<width>1200</width>
					<font>UserLogin</font>
					<align>left</align>
					<aligny>top</aligny>
				</control>
				<control type="label">
					<label>[B][COLOR Accent]$INFO[ListItem.Label2][/COLOR][/B]</label>
					<left>210</left>
					<top>390</top>
					<width>1200</width>
					<font>UserLoginSubtitle</font>
					<align>left</align>
					<aligny>top</aligny>
				</control>
				<!-- This is the panel displaying the users -->
				<control type="fixedlist" id="52">
					<include>PanelCoordinates</include>
					<width>155</width>
					<height>155</height>
					<scrolltime tween="cubic" easing="out">400</scrolltime>
					<orientation>vertical</orientation>
					<onup>noop</onup>
					<onleft>907</onleft>
					<onright>52</onright>
					<onleft>Skin.ToggleSetting(SideMenu)</onleft>
					<onback>Skin.Reset(SideMenu)</onback>
					<ondown>noop</ondown>
					<preloaditems>2</preloaditems>
					<itemlayout width="160" height="160">
						<control type="image">
							<width>155</width>
							<height>155</height>
							<texture>tile.png</texture>
							<aspectratio>scale</aspectratio>
						</control>
						<control type="image">
							<width>155</width>
							<height>155</height>
							<texture>$INFO[ListItem.Icon]</texture>
							<aspectratio>scale</aspectratio>
							<colordiffuse>ImageDiffuse</colordiffuse>
							<bordersize>5</bordersize>
							<visible>!String.Contains(ListItem.Icon,unknown-user)</visible>
						</control>
						<control type="image">
								<left>17</left>
								<top>17</top>
								<height>120</height>
								<width>120</width>
							<aspectratio scalediffuse="false">stretch</aspectratio>
							<texture>DefaultUser.png</texture>
							<colordiffuse>ImageDiffuse</colordiffuse>
							<visible>String.Contains(ListItem.Icon,unknown-user)</visible>
						</control>
					</itemlayout>
					<focusedlayout width="160" height="160">
						<control type="group">
							<control type="image">
								<width>155</width>
								<height>155</height>
								<texture>tile.png</texture>
								<bordertexture>button.png</bordertexture>
								<bordersize>5</bordersize>
								<visible>Control.HasFocus(52)</visible>
							</control>
							<control type="image">
								<width>155</width>
								<height>155</height>
								<texture>tile.png</texture>
								<visible>!Control.HasFocus(52)</visible>
							</control>
							<control type="image">
								<width>155</width>
								<height>155</height>
								<texture>button.png</texture>
								<bordersize>5</bordersize>
								<visible>!Control.HasFocus(52)</visible>
							</control>
							<control type="image">
								<width>155</width>
								<height>155</height>
								<texture>tile.png</texture>
								<bordersize>5</bordersize>
								<visible>!Control.HasFocus(52)</visible>
							</control>
							<control type="image">
								<width>155</width>
								<height>155</height>
								<texture>$INFO[ListItem.Icon]</texture>
								<aspectratio>scale</aspectratio>
								<bordersize>5</bordersize>
								<visible>!String.Contains(ListItem.Icon,unknown-user)</visible>
							</control>
							<control type="image">
								<left>17</left>
								<top>17</top>
								<height>120</height>
								<width>120</width>
								<aspectratio scalediffuse="false">stretch</aspectratio>
								<texture>DefaultUser.png</texture>
								<visible>String.Contains(ListItem.Icon,unknown-user)</visible>
							</control>
						</control>
					</focusedlayout>
				</control>
			</control>
		</control>
    </controls>
</window>