<?xml version="1.0" encoding="UTF-8"?>
<window>
    <include file="Includes_GenreIcons.xml"/>    
	<defaultcontrol always="true">50</defaultcontrol>
    <views>50,52,507,51,57,59,500,501,502,504,505,509,520,55,900,902,903,909</views>
    <menucontrol>9051</menucontrol>
    <allowoverlay>true</allowoverlay>
    <onload>SetProperty(Window.HasSettings,True,home)</onload>
    <onload>ClearProperty(MediaMenu,Home)</onload>
    <onunload>ClearProperty(MediaMenu,Home)</onunload>
    <onunload>ClearProperty(Window.HasSettings,Home)</onunload>

   <controls>

        <include>CommonBackground</include>
        <control type="group">
            <include>View_50_List</include>
            <!-- view id = 50 -->
            <include>View_52_Thumbnail</include>
            <!-- view id = 52 -->
            <include>VideoInfoWall</include>
            <!-- view id = 51 -->
            <include>View_55_LowPanel</include>
            <!-- view id = 55 -->
            <include>ShiftFixedList</include>
            <!-- view id = 57 -->
            <include>View_59_Fanart</include>
            <!-- view id = 59 -->
            <include>VideoWall</include>
            <!-- view id = 500 -->
            <include>AddonWall</include>
            <!-- view id = 520 -->
            <include>VideoLowList</include>
            <!-- view id = 501 -->
            <include>VideoEpisode</include>
            <!-- view id = 502 -->
            <include>View_504_Gallery</include>
            <!-- view id = 504 -->
            <include>View_505_Panel</include>
            <!-- view id = 505 -->
            <include>View_507_BigList</include>
            <!-- view id = 507 -->
            <include>View_509_BigWall</include>
            <!-- view id = 509 -->
			<include>View_900_Arcade</include>
			<include>View_902_KeibertzPlus</include>
			<include>View_903_Coverflow</include>
			<include>View_909_Sauna</include>


        </control>
		<control type="group">
			<visible>Skin.HasSetting(Enable.MediaFlags)+[Control.IsVisible(50) | Control.IsVisible(51)| Control.IsVisible(500)| Control.IsVisible(501)| Control.IsVisible(52)| Control.IsVisible(55)| Control.IsVisible(57)] + !$EXP[isInfoDialog]</visible>
			<include content="VideoMediaFlags">
				<param name="left" value="0" />
				<param name="top" value="1028" />
				<param name="width" value="1920" />
				<param name="height" value="50" />
				<param name="align" value="center" />
				<param name="orientation" value="horizontal" />
			</include>
		</control>
        <include>Topbar</include>
        <control type="group">
            <left>-440</left>
            <include>SideBladeLeft</include>
            <control type="grouplist" id="9050">
                <include>MediaMenuTop</include>
                <control type="button" id="10">
                    <description>Watched Toggle</description>
                    <textwidth>255</textwidth>
                    <include>ButtonCommonValues</include>
                    <label>20367</label>
                    <label2>$INFO[Container.NumItems]</label2>
                </control>
                <control type="edit" id="19">
                    <visible>Container.CanFilter + !Container.CanFilterAdvanced</visible>
                    <description>Filter</description>
                    <textwidth>372</textwidth>
                    <include>ButtonCommonValues</include>
                    <label>587</label>
                </control>
                <control type="radiobutton" id="98">
                    <visible>Container.CanFilterAdvanced</visible>
                    <description>Filter</description>
                    <include>ButtonCommonValues</include>
                    <label>587</label>
                    <selected>Container.Filtered</selected>
                    <onclick>right</onclick>
                    <onclick>Filter</onclick>
                </control>
                <control type="radiobutton" id="11">
                    <description>Unlock Shares</description>
                    <textwidth>255</textwidth>
                    <include>ButtonCommonValues</include>
                    <label>20336</label>
                    <onclick>mastermode</onclick>
                    <selected>system.ismaster</selected>
                    <visible>system.haslocks</visible>
                </control>
                <control type="button" id="203">
                    <description>Actions label</description>
                    <textwidth>352</textwidth>
                    <font>font13_title</font>
                    <include>ButtonCommonValues</include>
                    <label>31039</label>
                    <enable>no</enable>
                    <disabledcolor>DisabledColor</disabledcolor>
                </control>
                <control type="radiobutton" id="16">
                    <description>PartyMode</description>
                    <label>589</label>
                    <include>ButtonCommonValues</include>
                    <visible>Container.Content(MusicVideos)</visible>
                </control>
                <control type="button" id="202">
                    <description>Global Search</description>
                    <label>137</label>
                    <include>ButtonCommonValues</include>
                    <visible>System.HasAddon(script.globalsearch)</visible>
                    <onclick>ClearProperty(MediaMenu,Home)</onclick>
                    <onclick>SetFocus(50)</onclick>
                    <onclick>RunScript(script.globalsearch)</onclick>
                </control>
                <control type="button" id="204">
                    <description>Settings button</description>
                    <include>ButtonCommonValues</include>
                    <label>5</label>
                    <onclick>ActivateWindow(mediasettings,video)</onclick>
                    <visible>String.IsEmpty(Container.PluginName)</visible>
                </control>
                <control type="button" id="205">
                    <include>ButtonCommonValues</include>
                    <label>10140</label>
                    <onclick>Addon.OpenSettings($INFO[Container.PluginName])</onclick>
                    <visible>!String.IsEmpty(Container.PluginName)</visible>
                </control>
                <control type="togglebutton" id="20">
                    <description>Update library</description>
                    <include>ButtonCommonValues</include>
                    <label>653</label>
                    <altlabel>13353</altlabel>
                    <usealttexture>library.isscanningvideo</usealttexture>
                </control>
                <control type="button" id="622">
                    <include>ButtonCommonValues</include>
                    <label>31013</label>
                    <onclick condition="System.HasAddon(plugin.library.node.editor)">ActivateWindow(programs,plugin://plugin.library.node.editor/?ltype=video,return)</onclick>
                    <onclick condition="!System.HasAddon(plugin.library.node.editor)">InstallAddon(plugin.library.node.editor)</onclick>
                    <visible>Container.Content() + String.IsEmpty(Container.PluginName)</visible>
                </control>
                <include>QuicknavButton</include>
                <include>PlaylistButtons</include>
                <include content="MenuPlayerControls">
                    <param name="PlayerControlsOnDown" value="1802" />
                </include>
            </control>
            <include condition="!Skin.HasSetting(Disable.Quicknav)">QuicknavMenu</include>
        </control>
    </controls>
</window>