<?xml version="1.0" encoding="utf-8"?>
<window id="6">
    <defaultcontrol always="true">50</defaultcontrol>
	<onload>Skin.Reset(showViewOptions)</onload>
	<onunload>Skin.Reset(showViewOptions)</onunload>	
     
    <views>50,51,52,55,56,59,503,508,519,521,522,523,524,525,526,527,528,530,531,532,533,534,535,536,590,537,538,539,540,560,561,562,563,564,565,566,567,568,569</views>
	<onload condition="Skin.HasSetting(ActivateTvTunes) + System.HasAddon(script.tvtunes)">XBMC.RunScript(script.tvtunes,backend=True)</onload>
    <controls>
		<include>SkinFanart</include>
        
		<control type="group">
			<include>ViewOptionsAnimation</include>
            <include>View_50_List</include><!-- id 50-->
			<include>View_51_List</include><!-- id 51-->
			<include>View_52_Thumbs</include><!-- id 52-->
			<include>Viewtype_Season_Tall</include><!-- id 55-->
            <include>Viewtype_Panel_Genre</include><!-- id 56-->
			<include>Viewtype_MusicVideos</include><!-- id 59-->
			<include>Viewtype_Songs</include><!-- 503 -->
			<include>Viewtype_Panel_Square_List</include><!-- id 566-->
			<include>Viewtype_Panel_Square_ListInfo</include><!-- id 508-->
			<include>Viewtype_Panel_Square</include><!-- id 519-->
			<include>Viewtype_Panel_Square_Wide</include><!-- id 521-->
           	<include>Viewtype_Panel_Tall</include><!-- -id 522-->
            <include>Viewtype_Panel_Tall_List</include><!-- id 523-->
			<include>Viewtype_Panel_Tall_ListInfo</include><!-- id 5231-->
			<include>Viewtype_Panel_Tall_Wide</include><!-- id 524-->
			<include>Viewtype_Episodes</include><!-- id 525-->
			<include>Viewtype_Episodes_Wide</include><!-- id 534-->
			<include>Viewtype_Episodes_List</include><!-- id 565-->
			<include>Viewtype_Episodes_ListInfo</include><!-- id 526-->

			<include>Viewtype_RecentEpisodes</include><!-- id 560-->
             <include>Viewtype_RecentEpisodes_List</include><!-- id 566-->
			 <include>Viewtype_RecentEpisodes_ListInfo</include><!-- id 560-->
			 <include>Viewtype_RecentEpisodes_Wide</include><!-- id 562-->
			 
			<include>Viewtype_Fanart</include><!-- 527 -->
			<include>Viewtype_FanartLogo</include><!-- 539 -->
			<include>Viewtype_Artists_List</include><!-- id 528-->
			<include>Viewtype_Artists_ListInfo</include><!-- id 564-->
			<include>Viewtype_Panel_Wide</include><!-- id 530-->
			<include>Viewtype_Panel_Year</include><!-- id 531-->
			<include>Viewtype_Posters</include><!-- id 532-->
            <include>Viewtype_MusicVideos_List</include><!-- id 590 -->
			<include>Viewtype_MusicVideos_List2</include><!-- id 538 -->
			<include>Viewtype_MusicVideosThumbs</include><!-- 533 -->
			<include>Viewtype_MusicVideosThumbs2</include><!-- 537 -->
			<include>Viewtype_MusicVideos_Fanart</include><!-- 569 -->
			<include>Viewtype_Banner_Wide</include><!-- 535 -->
			<include>Viewtype_Banner_List</include><!-- 536 -->
			<include>Viewtype_Directors_List</include><!-- 540 -->
		</control>
		<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="image">
			<visible>Skin.HasSetting(showViewOptions)</visible>
            <animation type="Visible">
                <effect type="fade" time="300" start="0" end="100" />
            </animation>
            <animation type="Hidden">
                <effect type="fade" time="300" start="100" end="0" />
            </animation>
            <include>Dimensions_Fullscreen</include>
            <texture>other_textures/black-back.png</texture>
        </control>
		
		
		<!-- This Control shows the background of 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 left menu Items -->
		<control type="grouplist" id="9000">
            <left>20</left>
            <top>70</top>
            <width>280</width>
            <height>640</height>
            <itemgap>0</itemgap>
			<onright>Skin.Reset(showViewOptions)</onright>
            <onright>50</onright>
            <onup></onup>
            <ondown></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="10">
                <description>All Videos Watched Unwatched</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>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>137</label>
				<font>List_Left_Menu</font>
            </control>
            <control type="edit" id="19">
                <description>mediafilter</description>
                <height>40</height>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <textwidth>260</textwidth>
                <align>left</align>
				<font>List_Left_Menu</font>
                <textcolor>white</textcolor>
				<focusedcolor>Accent</focusedcolor>
				<texturefocus>tile.png</texturefocus>
                <label>587</label>
            </control>
			<control type="radiobutton" id="9004">
                 <description>Wide List</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31041]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(EnableMoviesExtrafanart)</onclick>
                <selected>Skin.HasSetting(EnableMoviesExtrafanart)</selected>
				<visible>Container.Content(movies)</visible>
			</control>
			<control type="radiobutton" id="9005">
                 <description>Wide List</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31041]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(EnableTvShowsExtrafanart)</onclick>
                <selected>Skin.HasSetting(EnableTvShowsExtrafanart)</selected>
				<visible>Container.Content(tvshows)</visible>
			</control>
			<control type="radiobutton" id="9006">
                 <description>Wide List</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31041]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(EnableSeasonsExtrafanart)</onclick>
                <selected>Skin.HasSetting(EnableSeasonsExtrafanart)</selected>
				<visible>Container.Content(seasons)</visible>
			</control>
			<control type="radiobutton" id="9007">
                 <description>Wide List</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31041]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(EnableEpisodesExtrafanart)</onclick>
                <selected>Skin.HasSetting(EnableEpisodesExtrafanart)</selected>
				<visible>Container.Content(episodes)</visible>
			</control>
			<control type="radiobutton" id="9008">
                 <description>Numerical Rating</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31213]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(ShowNumericalRatingForTvShows)</onclick>
                <selected>Skin.HasSetting(ShowNumericalRatingForTvShows)</selected>
				<visible>Container.Content(tvshows) | Container.Content(episodes)</visible>
			</control>
			<control type="radiobutton" id="9009">
                 <description>Numerical Rating</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>$LOCALIZE[31213]</label>
				<font>List_Left_Menu</font>
                <onclick>Skin.ToggleSetting(ShowNumericalRatingForMovies)</onclick>
                <selected>Skin.HasSetting(ShowNumericalRatingForMovies)</selected>
				<visible>Container.Content(movies)</visible>
			</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="9010">
                <description>Now Playing</description>
                <width>280</width>
				<textoffsetx>10</textoffsetx>
                <align>left</align>
                <label>13350</label>
				<font>List_Left_Menu</font>
				<onclick>ActivateWindow(videoplaylist)</onclick>
				<visible>[Window.IsActive(Videos) + !String.IsEqual(Playlist.Length(video),0)] | [Window.IsActive(Music) + !String.IsEqual(Playlist.Length(music),0)]</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.isscanningvideo</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(2003)]</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>


	