<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">9000</defaultcontrol>
	<onload>ClearProperty(musicinfo)</onload>
	<onunload>ClearProperty(chooseart,Home)</onunload>
	<controls>

		<control type="group" id="9001">
			<defaultcontrol>9002</defaultcontrol>
			<top>50</top>
			<animation effect="slide" start="0,0" end="0,60" condition="String.IsEqual(ListItem.DBType,song)">Conditional</animation>
			<visible>![Window.Is(songinformation) + Window.IsActive(musicinformation)]</visible>
			<visible>$EXP[InfoDialogsCondition]</visible>
			<include>InfoDialogs_OpenCloseAnimation</include>
			<control type="group">
				<left>45</left>
				<top>115</top>
				<include>InfoDialogsThumb</include>
				<include content="InfoDialogsHeadTitle">
					<param name="left" value="276"/>
					<param name="width" value="910"/>
					<param name="visible" value="String.IsEmpty(Window.Property(musicinfo))"/>
				</include>
			</control>

			<!-- Sub Labels -->
			<control type="group">
				<left>320</left>
				<top>115</top>
				<visible>String.IsEmpty(Window.Property(musicinfo))</visible>
				<include content="VideoInfoSeperator">
					<param name="top" value="40"/>
					<param name="width" value="910"/>
				</include>
				<!-- Left Part -->
				<control type="grouplist">
					<left>2</left>
					<top>52</top>
					<itemgap>10</itemgap>
					<orientation>horizontal</orientation>
					<control type="image">
						<width>56</width>
						<height>24</height>
						<texture colordiffuse="viewsinfo">$INFO[ListItem.FileExtension,flags/audio/,.png]</texture>
						<visible>String.IsEqual(ListItem.DBType,song)</visible>
					</control>
					<include content="VideoInfoLabel">
						<param name="max_width" value="530"/>
						<param name="height" value="24"/>
						<param name="label" value="$VAR[InfoDialogsLeftSubLabel]"/>
					</include>
					<include content="VideoInfoLabel">
						<param name="height" value="24"/>
						<param name="label" value="$INFO[ListItem.Year,|  ]"/>
						<param name="visible" value="![String.IsEmpty(ListItem.Year) | String.IsEqual(ListItem.DBType,song)]"/>
					</include>
				</control>
				<!-- Right Part Songs -->
				<control type="grouplist">
					<right>52</right>
					<top>52</top>
					<align>right</align>
					<itemgap>10</itemgap>
					<orientation>horizontal</orientation>
					<visible>String.IsEqual(ListItem.DBType,song) + !String.IsEmpty(ListItem.Property(Album_Label))</visible>
					<include content="VideoInfoLabel">
						<param name="height" value="24"/>
						<param name="label" value="$INFO[ListItem.Property(Album_Label)]"/>
					</include>
					<control type="image">
						<width>22</width>
						<height>22</height>
						<texture colordiffuse="viewsinfo">icons/submenu_info.png</texture>
					</control>
				</control>
				<!-- Right Part Artists/Albums -->
				<control type="grouplist">
					<right>52</right>
					<top>52</top>
					<align>right</align>
					<itemgap>10</itemgap>
					<orientation>horizontal</orientation>
					<visible>!String.IsEqual(ListItem.DBType,song)</visible>
					<include content="VideoInfoLabel">
						<param name="height" value="24"/>
						<param name="label" value="$INFO[ListItem.Property(Album_Label)]"/>
						<param name="visible" value="!String.IsEmpty(ListItem.Property(Album_Label))"/>
					</include>
					<include content="VideoInfoLabel">
						<param name="height" value="24"/>
						<param name="label" value="$INFO[ListItem.Property(Artist_YearsActive)]"/>
						<param name="visible" value="!String.IsEmpty(ListItem.Property(Artist_YearsActive))"/>
					</include>
					<include content="VideoInfoLabel">
						<param name="height" value="24"/>
						<param name="label" value="$VAR[ArtistDiedDisbandedLabel]"/>
						<param name="visible" value="![String.IsEmpty(ListItem.Property(Artist_Died)) + String.IsEmpty(ListItem.Property(Artist_Disbanded))]"/>
					</include>
					<control type="image">
						<width>22</width>
						<height>22</height>
						<texture colordiffuse="viewsinfo">icons/submenu_info.png</texture>
						<visible>![String.IsEmpty(ListItem.Property(Artist_Died)) + String.IsEmpty(ListItem.Property(Artist_YearsActive)) + String.IsEmpty(ListItem.Property(Album_Label)) + String.IsEmpty(ListItem.Property(Artist_Disbanded))]</visible>
					</control>
				</control>
				<include content="VideoInfoSeperator">
					<param name="top" value="86"/>
					<param name="width" value="910"/>
					<param name="visible" value=""/>
				</include>
			</control>

			<control type="group" id="9003">
				<defaultcontrol>44</defaultcontrol>
				<visible>String.IsEmpty(Window.Property(musicinfo))</visible>
				<!-- Labels -->
				<control type="group">
					<left>320</left>
					<top>245</top>
					<include content="VideoInfoSeperator">
						<param name="top" value="68"/>
						<param name="width" value="580"/>
						<param name="visible" value="!String.IsEqual(ListItem.DBType,song)"/>
					</include>
					<!-- Songs -->
					<control type="grouplist">
						<left>0</left>
						<top>-15</top>
						<itemgap>10</itemgap>
						<visible>String.IsEqual(ListItem.DBType,song)</visible>
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.Album,[COLOR=white]$LOCALIZE[558]:[/COLOR] ]$INFO[ListItem.Year, (,)]"/>
						</include>
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.TrackNumber,[COLOR=white]$LOCALIZE[554]:[/COLOR] #]"/>
						</include>
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.Duration,[COLOR=white]$LOCALIZE[180]:[/COLOR] ]"/>
						</include>
						<include content="VideoInfoLabel">
							<param name="label" value="$INFO[ListItem.FileName,[COLOR=white]$LOCALIZE[20331]:[/COLOR] ]"/>
						</include>
						<!--
						<include content="VideoInfoLabel">
							<param name="max_width" value="910"/>
							<param name="label" value="$INFO[ListItem.Path,[COLOR=white]$LOCALIZE[573]:[/COLOR] ]"/>
						</include>
						-->
					</control>

					<!-- Artists/Albums -->
					<control type="grouplist">
						<left>0</left>
						<top>-28</top>
						<itemgap>10</itemgap>
						<visible>!String.IsEqual(ListItem.DBType,song)</visible>
						<!-- 1st label -->
						<include content="VideoInfoLabel">
							<param name="label" value="$VAR[ArtistAlbumGenreLabel]"/>
						</include>
						<!-- 2nd label -->
						<include content="VideoInfoLabel">
							<param name="label" value="$VAR[ArtistAlbumMoodLabel]"/>
							<param name="visible" value=""/>
						</include>
						<!-- 3rd label -->
						<include content="VideoInfoLabel">
							<param name="label" value="$VAR[ArtistAlbumStyleLabel]"/>
							<param name="visible" value=""/>
						</include>
					</control>
					<include content="VideoInfoSeperator">
						<param name="top" value="268"/>
						<param name="width" value="910"/>
						<param name="visible" value="!String.IsEqual(ListItem.DBType,song)"/>
					</include>
					<include content="VideoInfoSeperator">
						<param name="top" value="122"/>
						<param name="width" value="910"/>
						<param name="visible" value="String.IsEqual(ListItem.DBType,song)"/>
					</include>
				</control>

				<!-- Plot -->
				<control type="group">
					<left>320</left>
					<top>322</top>
					<width>650</width>
					<include content="InfoDialogsDescription">
						<param name="textbox_top" value="3"/>
						<param name="textbox_width" value="580"/>
						<param name="textbox_height" value="175"/>
						<param name="font" value="TextboxFont_22"/>
						<param name="onup" value="9000"/>
						<param name="onleft" value="9002"/>
						<param name="onright" value="9005"/>
						<param name="button_top" value="-8"/>
						<param name="button_width" value="582"/>
						<param name="button_height" value="200"/>
						<param name="label" value="[COLOR=white]$VAR[BiographyReview_HeadLabel]:[/COLOR][CR]$VAR[InfoDialogsDescriptionLabel]"/>
						<param name="visible" value="!String.IsEqual(ListItem.DBType,song)"/>
					</include>
				</control>
			</control>

			<!-- Albums/Tracks -->
			<control type="group" id="9005">
				<left>940</left>
				<top>217</top>
				<visible>String.IsEmpty(Window.Property(musicinfo)) + !String.IsEqual(ListItem.DBType,song)</visible>
				<include content="VideoInfoLabel">
					<param name="label" value="$VAR[AlbumsTracks_NumLabel]$VAR[ListItemDurationVar, (,)]"/>
				</include>
				<control type="panel" id="50">
					<visible>String.IsEqual(ListItem.DBType,artist)</visible>
					<include>AlbumsTracksListVars</include>
					<include>Albums_Layout</include>
				</control>
				<control type="panel" id="550">
					<visible>String.IsEqual(ListItem.DBType,album)</visible>
					<include>AlbumsTracksListVars</include>
					<onclick>Dialog.Close(MusicInformation)</onclick>
					<onclick>AlarmClock(PlayMovie,PlayMedia($INFO[Container(550).ListItem.FilenameAndPath]),00:01,silent)</onclick>
					<include>Tracks_Layout</include>
					<content target="music" browse="never">musicdb://albums/$INFO[ListItem.DBID]/</content>
				</control>
			</control>

			<!-- Refresh/Art/Videos Buttons -->
			<control type="grouplist" id="9002">
				<left>45</left>
				<top>380</top>
				<onleft>9000</onleft>
				<onright condition="!String.IsEmpty(Window(Home).Property(chooseart))">ClearProperty(chooseart,Home)</onright>
				<onright condition="String.IsEqual(Window.Property(musicinfo),1)">9004</onright>
				<onright condition="String.IsEmpty(Window.Property(musicinfo))">9003</onright>
				<onup>9000</onup>
				<onup>ClearProperty(chooseart,Home)</onup>
				<itemgap>8</itemgap>
				<visible>!String.IsEqual(ListItem.DBType,song)</visible>
				<control type="button" id="6">
					<description>Refresh</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label></label>
					<onfocus>ClearProperty(chooseart,Home)</onfocus>
				</control>
				<control type="button" id="14">
					<description>Get Art</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<onclick>SetProperty(chooseart,1,home)</onclick>
					<onclick>SendClick(10)</onclick>
					<label></label>
				</control>
				<control type="togglebutton" id="83">
					<description>YouTube</description>
					<width>256</width>
					<include>InfoDialogsButton</include>
					<label>YouTube</label>
					<altlabel>$LOCALIZE[29915]</altlabel>
					<usealttexture>String.IsEqual(Window.Property(musicinfo),1) + !String.IsEmpty(Window.Property(musicinfo))</usealttexture>
					<onclick>SetProperty(musicinfo,1)</onclick>
					<onclick>160</onclick>
					<altclick>ClearProperty(musicinfo)</altclick>
					<onfocus>ClearProperty(chooseart,Home)</onfocus>
				</control>
			</control>
			<control type="grouplist">
				<left>45</left>
				<top>389</top>
				<onup>9000</onup>
				<itemgap>8</itemgap>
				<visible>!String.IsEqual(ListItem.DBType,song)</visible>
				<control type="grouplist">
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(6)" reversible="true">Conditional</animation>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>icons/refresh.png</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(6)]</label>
					</control>
				</control>
				<control type="grouplist">
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(10)" reversible="true">Conditional</animation>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>icons/art.png</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(10)]</label>
					</control>
				</control>
				<control type="grouplist">
					<align>center</align>
					<height>40</height>
					<width>256</width>
					<orientation>horizontal</orientation>
					<animation effect="fade" start="100" end="50" condition="!Control.HasFocus(83)" reversible="true">Conditional</animation>
					<control type="image">
						<include>InfoDialogsButtonIcon</include>
						<texture>$VAR[ToggleIconYouTubeMusic]</texture>
					</control>
					<control type="label">
						<include>InfoDialogsButtonLabel</include>
						<label>$INFO[Control.GetLabel(83)]</label>
					</control>
				</control>
			</control>

			<!-- YouTube -->
			<control type="group" id="9004">
				<left>320</left>
				<top>110</top>
				<control type="group" id="160">
					<defaultcontrol>161</defaultcontrol>
					<width>955</width>
					<height>345</height>
					<visible>String.IsEqual(Window.Property(musicinfo),1)</visible>
					<include content="InfoDialogsListHeader">
						<param name="container_id" value="161"/>
						<param name="header_icon" value="icons/youtube.png"/>
						<param name="header_label" value="YouTube $LOCALIZE[3]"/>
					</include>
					<include content="InfoDialogsListContainer">
						<param name="container_id" value="161"/>
						<param name="art" value="thumb"/>
						<param name="list_label" value="$INFO[Listitem.Premiered,, | ]$INFO[Listitem.Duration,, | ]$INFO[Listitem.Label]"/>
						<param name="onleft" value="9002"/>
						<param name="onup" value="9000"/>
						<param name="visible" value="Integer.IsGreater(Container(161).NumItems,0) | Container(161).IsUpdating" />
						<param name="custom_click" value="AlarmClock(PlayVideo,PlayMedia($INFO[Container(161).ListItem.FileNameAndPath]),00:01,silent)"/>
						<param name="content" value="$VAR[VideosListContent]"/>
					</include>
				</control>
			</control>

			<!-- Path -->
			<control type="grouplist">
				<left>45</left>
				<top>525</top>
				<width>1190</width>
				<align>left</align>
				<itemgap>5</itemgap>
				<orientation>horizontal</orientation>
				<visible>![String.IsEmpty(ListItem.FilenameAndPath) | String.IsEqual(ListItem.DBType,song)]</visible>
				<control type="image">
					<width>18</width>
					<height>18</height>
					<colordiffuse>disabled</colordiffuse>
					<texture background="true">icons/submenu_info.png</texture>
				</control>
				<control type="label">
					<width>1170</width>
					<height>18</height>
					<font>FontSize_14B</font>
					<label>$INFO[ListItem.FilenameAndPath]</label>
					<textcolor>disabled</textcolor>
					<haspath>true</haspath>
					<scroll>false</scroll>
				</control>
			</control>
		</control>


		<!-- ================= -->
		<!-- == Top Buttons == -->
		<!-- ================= -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<include>TextViewerHideAnimations</include>
			<include>InfoDialogs_OpenCloseAnimation</include>
			<visible>![Window.Is(songinformation) + Window.IsActive(musicinformation)]</visible>
			<!-- Rating -->
			<control type="grouplist">
				<right>45</right>
				<top>10</top>
				<height>0</height>
				<width>190</width>
				<itemgap>5</itemgap>
				<align>right</align>
				<orientation>horizontal</orientation>
				<include>VolumeBarSlideAnimations</include>
				<visible>!String.IsEqual(ListItem.DBTYPE,artist)</visible>
				<control type="image">
					<width>38</width>
					<height>36</height>
					<aspectratio>keep</aspectratio>
					<texture colordiffuse="$VAR[Text.GlobalColor]">rating/star_full_user.png</texture>
					<visible>!String.IsEmpty(ListItem.UserRating)</visible>
				</control>
				<control type="label">
					<height>35</height>
					<width>auto</width>
					<font>FontSize_40</font>
					<textcolor>$VAR[Text.GlobalColor]</textcolor>
					<label>$INFO[ListItem.UserRating]  </label>
					<visible>!String.IsEmpty(ListItem.UserRating)</visible>
				</control>
				<control type="image">
					<width>38</width>
					<height>36</height>
					<aspectratio>keep</aspectratio>
					<texture>$VAR[InfoDialogsStarRating]</texture>
				</control>
				<control type="label">
					<height>35</height>
					<width>auto</width>
					<font>FontSize_40</font>
					<textcolor>viewsinfo</textcolor>
					<label fallback="12310">$INFO[ListItem.Rating]</label>
				</control>
			</control>
			<!-- Main Buttons -->
			<control type="grouplist" id="9000">
				<onright>9005</onright>
				<ondown>9001</ondown>
				<include>InfoDialogs_TopMenuVars</include>
				<control type="label" id="999">
					<width min="0" max="300">auto</width>
					<include>TopBigLabel</include>
					<label>$LOCALIZE[29915]</label>
				</control>
				<control type="button" id="87">
					<description>Play/Browse</description>
					<label>$VAR[PlayBrowseButtonLabel]</label>
					<include>TopMenuButton</include>
					<onclick>Dialog.Close(SongInformation)</onclick>
					<onclick condition="String.IsEqual(ListItem.DBTYPE,song)">AlarmClock(PlayMusic,PlayMedia($INFO[ListItem.FilenameAndPath]),00:01,silent)</onclick>
					<onclick>Dialog.Close(MusicInformation)</onclick>
					<onclick condition="String.IsEqual(ListItem.DBTYPE,album)">AlarmClock(PlayMusic,PlayMedia($INFO[ListItem.FilenameAndPath],isdir),00:01,silent)</onclick>
					<onclick condition="String.IsEqual(ListItem.DBTYPE,artist)">ActivateWindow(music,musicdb://artists/$INFO[ListItem.DBID]/,return)</onclick>
				</control>
				<control type="button" id="84">
					<description>Album Information</description>
					<label>$VAR[ArtistOrAlbumLabel]</label>
					<include>TopMenuButton</include>
					<onclick>SendClick(12)</onclick>
					<visible>String.IsEqual(ListItem.DBType,song)</visible>
				</control>
				<control type="button" id="85">
					<description>User Rating</description>
					<label>$LOCALIZE[38018]</label>
					<include>TopMenuButton</include>
					<onclick>SendClick(7)</onclick>
					<visible>Control.IsVisible(7)</visible>
				</control>
				<control type="button" id="16">
					<description>Metadata Editor</description>
					<label>$LOCALIZE[31125]</label>
					<include>TopMenuButton</include>
					<onfocus>ClearProperty(chooseart,Home)</onfocus>
					<onclick>RunScript(script.metadata.editor,dbid=$INFO[ListItem.DBID],type=$INFO[ListItem.DBType])</onclick>
					<visible>System.HasAddon(script.metadata.editor) + !String.IsEmpty(ListItem.DBID)</visible>
				</control>
				<control type="button" id="15">
					<description>Get Extra Art</description>
					<label>$LOCALIZE[31221]</label>
					<include>TopMenuButton</include>
					<!-- <onclick condition="!System.HasAddon(script.artwork.beef)">InstallAddon(script.artwork.beef)</onclick> -->
					<onclick>SetProperty(chooseart,1,home)</onclick>
					<onclick condition="System.HasAddon(script.artwork.beef) + String.IsEqual(ListItem.DBTYPE,Artist)">RunScript(script.artwork.beef, mode=gui, mediatype=artist, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="System.HasAddon(script.artwork.beef) + String.IsEqual(ListItem.DBTYPE,Album)">RunScript(script.artwork.beef, mode=gui, mediatype=album, dbid=$INFO[ListItem.DBID])</onclick>
					<onclick condition="System.HasAddon(script.artwork.beef) + String.IsEqual(ListItem.DBTYPE,Song)">RunScript(script.artwork.beef, mode=gui, mediatype=song, dbid=$INFO[ListItem.DBID])</onclick>
					<visible>System.HasAddon(script.artwork.beef) + [String.IsEqual(ListItem.DBType,Artist) | String.IsEqual(ListItem.DBType,Album) | String.IsEqual(ListItem.DBType,Song)]</visible>
					<visible>!String.IsEmpty(ListItem.DBID)</visible>
				</control>
			</control>
			<!-- Top Content Info -->
			<include content="PageCountLabel">
				<param name="left" value="0"/>
				<param name="top" value="45"/>
				<param name="label" value="$VAR[InfoDialogsContentInfoLabels]"/>
			</include>
		</control>


		<!-- Hidden Buttons -->
		<control type="button" id="7">
			<description>User Rating</description>
			<include>HiddenItem</include>
		</control>
		<control type="button" id="10">
			<description>Choose Art</description>
			<include>HiddenItem</include>
		</control>
		<control type="button" id="12">
			<description>Album/Artist Information</description>
			<include>HiddenItem</include>
		</control>
		<control type="label" id="777">
			<label>$INFO[ListItem.Album] - $INFO[ListItem.Artist]</label>
			<include>HiddenItem</include>
		</control>

	</controls>
</window>