<?xml version="1.0" encoding="utf-8"?>
<window id="502">
    <defaultcontrol always="true">50</defaultcontrol>
	<onload>Skin.Reset(showViewOptions)</onload>
	<onunload>Skin.Reset(showViewOptions)</onunload>
     
    <!--<views>50,56,59,508,503,519,521,527,528,529,530,531,590</views>-->
	<views>50,51,59,503,504,505,508,519,521,527,528,529,530,531,533,590,58,56,52,55,537,538,564,566,569</views>
    <controls>
		<include>SkinFanart</include>
		<include>BarClock</include>
		
		
		<control type="group">
			<visible>![Window.IsVisible(2003) | Window.IsVisible(DialogAddonInfo.xml) | Window.IsVisible(DialogMusicInfo.xml) | Window.IsVisible(DialogFavourites.xml)]</visible>
			<include>NowPlayingControls</include>
			<include>TouchscreenNavigation</include>
		</control>
		<control type="group">
			<visible>Container.Content(songs)</visible>
			<include>BackgroundTextScroll</include>
		</control>
        <control type="group">
			<include>ViewOptionsAnimation</include>
			<include>Viewtype_Songs</include><!-- 503 -->
            <include>View_50_List</include><!-- 50 -->
			<include>View_51_List</include><!-- 51 -->
			<include>Viewtype_Panel_Genre</include><!-- 56 -->
			<include>Viewtype_MusicVideos</include><!-- 59 -->
			<include>Viewtype_Panel_Square_List</include><!-- 508 -->
			<include>Viewtype_Panel_Square_ListInfo</include>
			<include>Viewtype_Panel_Square</include><!-- 519 -->
			<include>Viewtype_Panel_Square_Wide</include><!-- 521 -->
			<include>Viewtype_Fanart</include><!-- 527 -->
			<include>Viewtype_Artist_Albums</include><!-- 529 -->	
			<include>Viewtype_Artists_ListInfo</include><!-- 528 -->
			<include>Viewtype_Artists_List</include><!-- 564 -->
			<include>Viewtype_Panel_Wide</include><!-- 530 -->
			<include>Viewtype_Panel_Year</include><!-- 531 -->
			<include>Viewtype_MusicVideos_List</include><!-- 590 -->
			<include>Viewtype_MusicVideos_List2</include><!-- 538 -->
			<include>Viewtype_MusicVideosThumbs</include><!-- 533 -->
			<include>Viewtype_MusicVideosThumbs2</include><!-- 537 -->
			<include>Viewtype_MusicVideos_Fanart</include><!-- 569 -->
		</control>
        <!-- This control displays a a color background behind the left settings menu -->
		<control type="group">
			<animation type="Conditional" condition="!Skin.HasSetting(showViewOptions)">
                <effect type="slide" start="0,0" end="-320,0" time="300" easing="inout" tween="cubic" />
            </animation>
			<include>LeftMenuBackground</include>
			<control type="label">
                <description>Menu Title</description>
                <include>LeftMenuTitle</include>
                <label>$LOCALIZE[14018]</label>
            </control>
		</control>	
		<!-- This control defines the elements of the left settings menu -->
        <control type="grouplist" id="9000">
            <left>20</left>
            <top>70</top>
            <width>280</width>
            <height>600</height>
            <itemgap>0</itemgap>
			<onright>Skin.Reset(showViewOptions)</onright>
            <onright>50</onright>
            <onup>noop</onup>
            <ondown>noop</ondown>
            <orientation>vertical</orientation>
             <animation type="Conditional" condition="!Skin.HasSetting(showViewOptions)">
                <effect type="slide" start="0,0" end="-320,0" time="300" easing="inout" tween="cubic" />
            </animation> 
			<control type="button" id="2">
                <description>view</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
				<align>left</align>
                <font>List_Left_Menu</font>
            </control>
            <control type="button" id="3">
                <description>Sort</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
				<align>left</align>
                <font>List_Left_Menu</font>
            </control>
            <control type="togglebutton" id="4">
                <description>Ascending</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>584</label>
                <altlabel>585</altlabel>
                <font>List_Left_Menu</font>
            </control>
            <control type="button" id="8">
                <description>Search</description>
                <width>280</width>
                <align>left</align>
                <label>137</label>
                <font>List_Left_Menu</font>
            </control>
            <control type="radiobutton" id="16">
                <description>PartyMode</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>589</label>
                <font>List_Left_Menu</font>
            </control>
			<control type="radiobutton" id="9011">
                 <description>Music Video Thumb</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31305]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(ShowMusicVideoThumbAsFanart)</onclick>
                <selected>Skin.HasSetting(ShowMusicVideoThumbAsFanart)</selected>
				<visible>Container.Content(musicvideos)</visible>
			</control>
			<control type="button" id="103">
                <description>Now Playing</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>13350</label>
				<font>List_Left_Menu</font>
				<onclick>ActivateWindow(musicplaylist) </onclick>
				<visible>Player.HasAudio</visible>
            </control>
			<control type="togglebutton" id="20">
                <description>Update Libray and Stop Scanning</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
    			<font>List_Left_Menu</font>
				<label>653</label>
				<altlabel>13353</altlabel>
				<usealttexture>library.isscanningmusic</usealttexture>
            </control>
        </control>
		<!-- Close Button for Options Menu	-->
		<control type="button" id="9876">
			<top>-5</top>
			<left>270</left>
			<width>50</width>
			<height>50</height>
			<onclick>Skin.Reset(showViewOptions)</onclick>
			<onclick>right</onclick>
			<onright>50</onright>
			<texturefocus>down_arrow.png</texturefocus>
			<texturenofocus>down_arrow.png</texturenofocus>
			<animation type="Conditional" condition="!Skin.HasSetting(showViewOptions)">
                <effect type="slide" start="0,0" end="-320,0" time="300" easing="inout" tween="cubic" />
            </animation>
			<animation effect="rotate" end="90" center="295,20" time="0" condition="true" reversible="false">Conditional</animation>
			<visible>[System.Platform.IOS | System.Platform.Android | System.getbool(input.enablemouse)]</visible>
		</control>		
	<!-- Open Button for View Options Menu-->
	<control type="group">
		<animation effect="slide" end="-55" time="300">WindowClose</animation>
        <animation effect="slide" start="-55" time="300">WindowOpen</animation>
		<control type="group">
			<top>400</top>		
			<animation effect="slide" start="-55" end="0" time="200" delay="300">Visible</animation>
			<visible>!Skin.HasSetting(showViewOptions) + [System.Platform.IOS | System.Platform.Android | System.getbool(input.enablemouse)] + [!Window.IsActive(135)+ !Window.IsActive(2001)]</visible>
			<control type="button" id="6789">
				<left>0</left>
				<width>50</width>
				<height>95</height>
				<onclick>Skin.ToggleSetting(showViewOptions)</onclick>
				<onclick>SetFocus(9000)</onclick>
				<texturefocus></texturefocus>
			</control>
			<control type="image">
				<left>0</left>
				<top>25</top>
				<width>25</width>
				<height>45</height>
				<texture>tile.png</texture>
			</control>
			<control type="image">
				<left>-15</left>
				<top>20</top>
				<width>55</width>
				<height>55</height>
				<texture flipx="true">icons/music.png</texture>
			</control>
		</control>

	</control>	

    </controls>
</window>