<?xml version="1.0" encoding="UTF-8"?>
<window>
	<include>ViewIDs</include>
	<onload>ClearProperty(GeneralSearchCalledInfo)</onload>
	<onload>ClearProperty(SingleSearchCalledInfo)</onload>
	<onload>ClearProperty(InfoCalledGeneralSearch)</onload>
	<onload>ClearProperty(InfoCalledSingleSearch)</onload>
	<onload>Skin.Reset(CustomSearchTerm)</onload>
	<onload>Skin.Reset(SingleSearchTerm)</onload>
	<onload>ClearProperty(MediaMenu,Home)</onload>
	<onload>ClearProperty(gallery)</onload>
	<onload condition="System.AddonIsEnabled(script.skin.info.service) + String.IsEmpty(Window(home).Property(skininfos_daemon_running))">RunScript(script.skin.info.service)</onload>
	<onload condition="System.AddonIsEnabled(script.tv.show.next.aired)">RunScript(script.tv.show.next.aired,backend=True)</onload>
	<onload condition="!String.IsEmpty(Window(home).Property(OSDinfodialogButtonActive))">ClearProperty(OSDinfodialogButtonActive,home)</onload>
	<onunload>ClearProperty(GeneralSearchCalledInfo)</onunload>
	<onunload>ClearProperty(SingleSearchCalledInfo)</onunload>
	<onunload>ClearProperty(InfoCalledGeneralSearch)</onunload>
	<onunload>ClearProperty(InfoCalledSingleSearch)</onunload>
	<onunload>Skin.Reset(CustomSearchTerm)</onunload>
	<onunload>Skin.Reset(SingleSearchTerm)</onunload>
	<onunload>ClearProperty(gallery)</onunload>
	<menucontrol>9000</menucontrol>
	<controls>
		<!-- Extra fanart -->
		<control type="fadelabel" id="4410">
			<top>-100</top>
			<width>2560</width>
			<height>0</height>
			<scrollspeed>20</scrollspeed>
			<scroll>false</scroll>
			<scrollout>false</scrollout>
			<randomize>true</randomize>
			<resetonlabelchange>true</resetonlabelchange>
			<visible>Skin.HasSetting(EnableExtraFanart) | [Control.IsVisible(56) + $EXP[ShowExtraFanartOnInfo]]</visible>
			<include>FadeLabelTime</include>
			<label>$INFO[ListItem.Art(fanart)]</label>
			<label>$INFO[ListItem.Art(fanart1)]</label>
			<label>$INFO[ListItem.Art(fanart2)]</label>
			<label>$INFO[ListItem.Art(fanart3)]</label>
			<label>$INFO[ListItem.Art(fanart4)]</label>
			<label>$INFO[ListItem.Art(fanart5)]</label>
			<label>$INFO[ListItem.Art(fanart6)]</label>
			<label>$INFO[ListItem.Art(fanart7)]</label>
			<label>$INFO[ListItem.Art(fanart8)]</label>
			<label>$INFO[ListItem.Art(fanart9)]</label>
			<label>$INFO[ListItem.Art(fanart10)]</label>
			<label>$INFO[ListItem.Art(fanart11)]</label>
			<label>$INFO[ListItem.Art(fanart12)]</label>
			<label>$INFO[ListItem.Art(fanart13)]</label>
			<label>$INFO[ListItem.Art(fanart14)]</label>
			<label>$INFO[ListItem.Art(fanart15)]</label>
			<label>$INFO[ListItem.Art(fanart16)]</label>
			<label>$INFO[ListItem.Art(fanart17)]</label>
			<label>$INFO[ListItem.Art(fanart18)]</label>
			<label>$INFO[ListItem.Art(fanart19)]</label>
			<label>$INFO[ListItem.Art(fanart20)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart1)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart2)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart3)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart4)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart5)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart6)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart7)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart8)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart9)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart10)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart11)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart12)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart13)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart14)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart15)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart16)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart17)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart18)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart19)]</label>
			<label>$INFO[ListItem.Art(tvshow.fanart20)]</label>
		</control>
		<!-- Extra fanart (container) -->
		<control type="fadelabel" id="4411">
			<top>-100</top>
			<width>2560</width>
			<height>0</height>
			<scrollspeed>20</scrollspeed>
			<scrollout>false</scrollout>
			<randomize>true</randomize>
			<visible>Skin.HasSetting(EnableExtraFanart) | [Control.IsVisible(56) + $EXP[ShowExtraFanartOnInfo]]</visible>
			<resetonlabelchange>true</resetonlabelchange>
			<include>FadeLabelTime</include>
			<label>$INFO[Container.ListItem.Art(fanart)]</label>
			<label>$INFO[Container.ListItem.Art(fanart1)]</label>
			<label>$INFO[Container.ListItem.Art(fanart2)]</label>
			<label>$INFO[Container.ListItem.Art(fanart3)]</label>
			<label>$INFO[Container.ListItem.Art(fanart4)]</label>
			<label>$INFO[Container.ListItem.Art(fanart5)]</label>
			<label>$INFO[Container.ListItem.Art(fanart6)]</label>
			<label>$INFO[Container.ListItem.Art(fanart7)]</label>
			<label>$INFO[Container.ListItem.Art(fanart8)]</label>
			<label>$INFO[Container.ListItem.Art(fanart9)]</label>
			<label>$INFO[Container.ListItem.Art(fanart10)]</label>
			<label>$INFO[Container.ListItem.Art(fanart11)]</label>
			<label>$INFO[Container.ListItem.Art(fanart12)]</label>
			<label>$INFO[Container.ListItem.Art(fanart13)]</label>
			<label>$INFO[Container.ListItem.Art(fanart14)]</label>
			<label>$INFO[Container.ListItem.Art(fanart15)]</label>
			<label>$INFO[Container.ListItem.Art(fanart16)]</label>
			<label>$INFO[Container.ListItem.Art(fanart17)]</label>
			<label>$INFO[Container.ListItem.Art(fanart18)]</label>
			<label>$INFO[Container.ListItem.Art(fanart19)]</label>
			<label>$INFO[Container.ListItem.Art(fanart20)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart1)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart1)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart2)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart3)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart4)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart5)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart6)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart7)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart8)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart9)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart10)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart11)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart12)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart13)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart14)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart15)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart16)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart17)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart18)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart19)]</label>
			<label>$INFO[Container.ListItem.Art(tvshow.fanart20)]</label>
		</control>
		<!-- Extra posters (character posters -->
		<control type="fadelabel" id="4412">
			<top>-100</top>
			<width>2560</width>
			<height>0</height>
			<scrollspeed>20</scrollspeed>
			<scroll>false</scroll>
			<scrollout>false</scrollout>
			<resetonlabelchange>true</resetonlabelchange>
			<label>$INFO[ListItem.Art(poster)]</label>
			<label>$INFO[ListItem.Art(poster1)]</label>
			<label>$INFO[ListItem.Art(poster2)]</label>
			<label>$INFO[ListItem.Art(poster3)]</label>
			<label>$INFO[ListItem.Art(poster4)]</label>
			<label>$INFO[ListItem.Art(poster5)]</label>
			<label>$INFO[ListItem.Art(poster6)]</label>
			<label>$INFO[ListItem.Art(poster7)]</label>
			<label>$INFO[ListItem.Art(poster8)]</label>
			<label>$INFO[ListItem.Art(poster9)]</label>
			<label>$INFO[ListItem.Art(poster10)]</label>
			<label>$INFO[ListItem.Art(poster11)]</label>
			<label>$INFO[ListItem.Art(poster12)]</label>
			<label>$INFO[ListItem.Art(poster13)]</label>
			<label>$INFO[ListItem.Art(poster14)]</label>
			<label>$INFO[ListItem.Art(poster15)]</label>
			<label>$INFO[ListItem.Art(poster16)]</label>
			<label>$INFO[ListItem.Art(poster17)]</label>
			<label>$INFO[ListItem.Art(poster18)]</label>
			<label>$INFO[ListItem.Art(poster19)]</label>
			<label>$INFO[ListItem.Art(poster20)]</label>
			<include>FadeLabelTime</include>
		</control>

		<control type="image" id="4444">
			<visible>Skin.HasSetting(Use.ParentFolderFanart)</visible>
			<top>-1000</top>
			<width>1</width>
			<height>1</height>
			<texture>$INFO[ListItem.Path]fanart.jpg</texture>
		</control>

		<control type="image" id="4445">
			<visible>Skin.HasSetting(Use.ParentFolderFanart)</visible>
			<top>-1000</top>
			<width>1</width>
			<height>1</height>
			<texture>$INFO[ListItem.Path]../fanart.jpg</texture>
		</control>

		<include condition="Skin.HasSetting(ShowSetCount)">SetCountList</include>
		<include condition="Skin.HasSetting(ShowSpecialFanart)">SpecialFanartList</include>
		<include condition="System.AddonIsEnabled(script.embuary.helper) + Skin.HasSetting(ShowRatingMain)">EmbuaryHelperDetailsList</include>

		<include condition="Skin.HasSetting(Sub_MainMenuBG)">SubBackgroundLists</include>

		<include>DefaultBackground</include>

		<control type="group">

			<!-- Slide down the media items when trailer is playing -->
			<animation effect="slide" start="0,0" end="0,1080" time="250" tween="sine" easing="in" condition="Skin.HasSetting(Trailer.MediaSlideOut) + Player.HasVideo + Skin.HasSetting(AutoPlayTrailer) + !String.IsEmpty(Window(Home).Property(MovieTrailerPlaying))">Conditional</animation>

			<include content="View_50_List" condition="!Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">list</param>
			</include>
			<include content="View_50_List" condition="Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">fixedlist</param>
			</include>

			<include>View_51_Panel</include>
			<include>View_511_Panel2</include>
			<include content="View_52_BigList" condition="!Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">list</param>
			</include>
			<include content="View_52_BigList" condition="Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">fixedlist</param>
			</include>

			<include>View_53_Icons</include>
			<include content="View_54_LowList" condition="!Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">list</param>
			</include>
			<include content="View_54_LowList" condition="Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">fixedlist</param>
			</include>

			<include>View_55_BigPanel</include>
			<include>View_551_BigPanel2</include>

			<include content="View_501_TallList" condition="!Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">list</param>
			</include>
			<include content="View_501_TallList" condition="Skin.HasSetting(ListCenterFocus)">
				<param name="ListType">fixedlist</param>
			</include>

			<include>View_57_SimpleList</include>

			<include>View_600_Triple</include>

			<include>View_58_Logo</include>

			<include >View_502_RightList</include>
		</control>

		<include content="View_56_Fanart" condition="!Skin.HasSetting(FanartCenterFocus)">
			<param name="focusposition">2</param>
		</include>
		<include content="View_56_Fanart" condition="Skin.HasSetting(FanartCenterFocus)">
			<param name="focusposition">4</param>
		</include>

		<control type="group">
			<left>0</left>
			<top>900</top>
			<visible>Skin.HasSetting(Trailer.MediaSlideOut) + Player.HasVideo + Skin.HasSetting(AutoPlayTrailer) + !String.IsEmpty(Window(Home).Property(MovieTrailerPlaying))</visible>
			<control type="image">
				<left>0</left>
				<top>0</top>
				<right>0</right>
				<bottom>0</bottom>
				<fadetime>200</fadetime>
				<aspectratio scalediffuse="true">scale</aspectratio>
				<texture background="true" colordiffuse="ffffffff">img/BackgroundMaskBlack.png</texture>
			</control>
			<control type="label" description="Main label">
				<left>30</left>
				<width>1305</width>
				<height>60</height>
				<scroll>false</scroll>
				<align>left</align>
				<font>font38_title</font>
				<textcolor>$VAR[HighlightColor]</textcolor>
				<label>$VAR[panelheading]</label>
			</control>
			<control type="label" description="Main label">
				<left>30</left>
				<top>70</top>
				<width>1305</width>
				<height>30</height>
				<scroll>false</scroll>
				<align>left</align>
				<label>[B]$VAR[panelsubheading][/B]</label>
			</control>
		</control>



		<control type="group" description="Showcase trigger">
			<animation effect="slide" easing="out" start="0,0" end="0,-90" time="350" delay="0" center="120,350" reversible="true" condition="!String.IsEmpty(Window.Property(gallery))">Conditional</animation>
			<include>VignetteFade</include>
			<include>Time</include>
		</control>

		<!-- SIDE MENU -->
		<control type="group" id="8999" description="Side menu 9000 group">
			<include>9000Commons</include>
			<include>9000NavCommons</include>
			<control type="group">
				<posx>-60</posx>
				<posy>-13</posy>
				<include condition="Skin.HasSetting(Enable.TouchSupport)" content="DialogCloseButtonCommons">
					<param name="Action">SetFocus(50)</param>
					<param name="ondown">9000</param>
				</include>
				<animation effect="fade" time="200" start="100" end="20" reversible="true" condition="!ControlGroup(9000).HasFocus() + !Control.HasFocus(909090)">Conditional</animation>
			</control>
			<control type="grouplist" id="9000">
				<include>9000GrouplistParameters</include>
				<control type="button" id="10">
					<description>Watched Toggle</description>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[20367]</label>
					<label2>$INFO[Container.NumItems]</label2>
					<visible>Container.Content(movies) | Container.Content(sets) | Container.Content(tvshows) | Container.content(seasons) | Container.Content(episodes)</visible>
				</control>
				<control type="label" id="9180" description="Spacer">
					<height>36</height>
					<textcolor>$VAR[HighlightColor]</textcolor>
					<align>left</align>
					<textoffsetx>10</textoffsetx>
					<include>9000ViewButtons</include>
					<label></label>
				</control>
				<control type="label" id="9181">
					<textcolor>$VAR[HighlightColor]</textcolor>
					<align>left</align>
					<textoffsetx>10</textoffsetx>
					<include>9000ViewButtons</include>
					<label>$LOCALIZE[31026]</label>
				</control>
				<control type="button" id="622">
					<description>Play Random</description>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[32392]</label>
					<onclick>RunScript(script.playrandomvideos, "$INFO[Container.FolderPath]", "label=$INFO[Container.FolderName]")</onclick>
					<visible>System.AddonIsEnabled(script.playrandomvideos)</visible>
					<visible>!String.Contains(Container.FolderPath,plugin) + !String.Contains(Container.FolderPath,addons) + !String.Contains(Container.FolderPath,sources)</visible>
				</control>
				<control type="radiobutton" id="16">
					<description>PartyMode</description>
					<label>$LOCALIZE[589]</label>
					<include>9000SysButtons</include>
					<visible>Container.Content(MusicVideos)</visible>
				</control>
				<control type="radiobutton" id="11">
					<description>Unlock Shares</description>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[20336]</label>
					<onclick>xbmc.mastermode</onclick>
					<selected>system.ismaster</selected>
					<visible>system.haslocks</visible>
				</control>
				<control type="togglebutton" id="620">
					<description>Update library</description>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[653]</label>
					<onclick>UpdateLibrary(video)</onclick>
					<altlabel>$LOCALIZE[13353]</altlabel>
					<usealttexture>library.isscanningvideo</usealttexture>
				</control>
				<control type="button" id="612">
					<description>Go to playlist</description>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[559]</label>
					<onclick>ActivateWindow(videoplaylist)</onclick>
					<visible>Integer.IsGreater(Playlist.Length(video),0)</visible>
				</control>
				<control type="button" id="621">
					<description>Get more</description>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[21452]</label>
					<onclick>ActivateWindow(addonbrowser,addons://more/video/,return)</onclick>
					<visible>Container.Content(addons)</visible>
				</control>
				<control type="button" id="624">
					<include>9000SysButtons</include>
					<label>$LOCALIZE[10140]</label>
					<onclick>Addon.OpenSettings($INFO[Container.PluginName])</onclick>
					<visible>!String.IsEmpty(Container.PluginName)</visible>
				</control>
				<control type="button" id="699" description="Playing">
					<enable>Player.HasMedia</enable>
					<include>9000SysButtons</include>
					<label>$LOCALIZE[16003]</label>
					<onclick>fullscreen</onclick>
				</control>
			</control>
		</control>
		<include condition="Skin.HasSetting(Show.EHJumpToLetter)">ScriptJumpToLetter</include>
	</controls>
</window>