<?xml version="1.0" encoding="UTF-8"?>
<includes>
	<!--STRIP LAYOUT -->
	<include name="View_504_Gallery">
		<top>15</top>
		<!--content detail -->
		<control type="group">
			<visible>Control.IsVisible(504) + !$EXP[isInfoDialog]</visible>
			<include>Animation.Common</include>
			<!--labels -->
			<control type="group">
				<visible>Control.IsVisible(504)</visible>
				<control type="label">
					<visible>![Container.Content(images) + Skin.HasSetting(PictureInfo.Disabled)]</visible>
					<left>383</left>
					<top>760</top>
					<label>$INFO[ListItem.Label]</label>
					<width>1225</width>
					<font>font30</font>
				</control>
				<control type="label">
					<left>383</left>
					<top>945</top>
					<width>1225</width>
					<height>30</height>
					<font>font14</font>
                    <textcolor>AltTextColor</textcolor>
					<label>$VAR[FloorSubLabelVar]</label>
					<visible>![$EXP[isArtist] | Container.Content(images)]</visible>
				</control>
				<control type="label">
					<left>383</left>
					<top>945</top>
					<width>1225</width>
					<height>30</height>
					<font>font14</font>
					<textcolor>AltTextColor</textcolor>
					<label>$INFO[ListItem.Property(Artist_Genre)]</label>
					<visible>$EXP[isArtist]</visible>
				</control>
				<include content="OverlayList">
					<param name="OverlayListLeft" value="1400" />
					<param name="OverlayListTop" value="764" />
				</include>
				
			</control>
			<!--strip top -->
			<control type="image">
				<visible>Control.HasFocus(504)</visible>
				<include>FocusedBackgroundFade</include>
				<top>203</top>
				<left>370</left>
				<width>1179</width>
				<height>674</height>
				<texture border="5">listselect_fo.png</texture>
				<colordiffuse>FocusColor</colordiffuse>
			</control>
			<!--container -->
			<control type="wraplist" id="504">
				<viewtype label="31054">info</viewtype>
				<left>-791</left>
				<top>209</top>
				<width>3464</width>
				<height>1200</height>
				<onleft>504</onleft>
				<onright>504</onright>
				<scrolltime tween="sine" easing="inout">400</scrolltime>
				<onup>SetProperty(MediaMenu,True,home)</onup>
				<onup>SetFocus(9050)</onup>
				<pagecontrol>60</pagecontrol>
				<focusposition>1</focusposition>
				<orientation>horizontal</orientation>
				<visible>[Container.Content(favourites) | Container.Content(movies) | Container.Content(sets)| Container.Content(seasons)| Container.Content(tvshows) | Container.Content(images) | Container.Content(artists) |
					Container.Content(albums) ] + !Container.Content(addons)
				</visible>
				<itemlayout width="1167" height="650">
					<control type="group">
						<top>6</top>
						<left>6</left>

						<control type="image">
							<visible>!Container.Content(images)</visible>
							<width>1155</width>
							<height>650</height>
							<texture fallback="special://skin/backgrounds/default_bg.jpg" background="true" diffuse="diffuse/gallery.png">$VAR[Art1Image]</texture>
							<aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
						</control>

						<control type="image">
							<visible>Container.Content(images)</visible>
							<width>1155</width>
							<height>650</height>
							<texture background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.PicturePath]</texture>
							<aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
						</control>
						<control type="image">
							<visible>ListItem.IsFolder + Container.Content(images)</visible>
							<width>1155</width>
							<height>650</height>
							<aspectratio scalediffuse="false">keep</aspectratio>
							<texture background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.Art(thumb)]</texture>
						</control>

						<control type="image">
							<visible>![Container.Content(images) | Container.Content(artists)]</visible>
							<left>6</left>
							<top>420</top>
							<width>1155</width>
							<height>168</height>
							<aspectratio align="center">keep</aspectratio>
							<texture background="true">$INFO[ListItem.Art(clearlogo)]</texture>
						</control>
						<control type="image">
							<width>1155</width>
							<height>650</height>
							<texture border="5">overlays/diffuse-overlay.png</texture>
 						<visible>Skin.HasSetting(Enable.HighlightFocused)</visible>
						</control>
<!-- 						<include content="OverlayIcons" condition="![Container.Content(images) | Container.Content(artists)]"> -->
<!-- 							<param name="OverlayLeft" value="1123" /> -->
<!-- 							<param name="OverlayTop" value="8" /> -->
<!-- 						</include> -->
					</control>
				</itemlayout>
				<focusedlayout width="1167" height="650">
					<control type="group">
						<include>PanelFocusedItemZoom</include>
						<top>6</top>
						<left>6</left>
						<control type="image">
							<visible>ListItem.IsFolder + !Container.Content(artists)</visible>
							<width>1155</width>
							<height>650</height>
							<aspectratio>keep</aspectratio>
							<texture background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.Art(thumb)]</texture>
						</control>

						<!-- show image+logo (or landscape) if we are not picture container -->
						<control type="group">
							<visible>!Container.Content(images)</visible>
							<!-- If we have fanart to show -->
							<control type="image">
								<visible>!String.IsEmpty(ListItem.Art(fanart))</visible>
								<width>1155</width>
								<height>650</height>
								<texture fallback="special://skin/backgrounds/default_bg.jpg" background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.Art(fanart)]</texture>
								<aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
							</control>

							<!-- If we have no fanart, then fallback to landscape -->
							<control type="image">
								<visible>String.IsEmpty(ListItem.Art(fanart)) + !String.IsEmpty(ListItem.Art(landscape))</visible>
								<width>1155</width>
								<height>650</height>
								<texture fallback="special://skin/backgrounds/default_bg.jpg" background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.Art(landscape)]</texture>
								<aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
							</control>

							<!-- If we have no fanart or landscape, then fallback to thumb -->
							<control type="image">
								<visible>String.IsEmpty(ListItem.Art(fanart)) + String.IsEmpty(ListItem.Art(landscape))</visible>
								<width>1155</width>
								<height>650</height>
								<texture fallback="special://skin/backgrounds/default_bg.jpg" background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.Art(thumb)]</texture>
								<aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
							</control>

							<!-- show clearlogo, (unless we showed landscape, skip it then) -->
							<control type="image">
								<!-- if we have fanart, or did not have landscape, then show -->
								<visible>!String.IsEmpty(ListItem.Art(clearlogo))+ [!String.IsEmpty(ListItem.Art(fanart)) | String.IsEmpty(ListItem.Art(landscape))]</visible>
								<left>6</left>
								<top>420</top>
								<width>1155</width>
								<height>168</height>
								<aspectratio align="center">keep</aspectratio>
								<texture background="true">$INFO[ListItem.Art(clearlogo)]</texture>
							</control>

							<!-- if we had no clearlog, fallback to logo -->
							<control type="image">
								<!-- if we have fanart, or did not have landscape, then show -->
								<visible>String.IsEmpty(ListItem.Art(clearlogo))+ [!String.IsEmpty(ListItem.Art(fanart)) | String.IsEmpty(ListItem.Art(landscape))]</visible>
								<left>6</left>
								<top>420</top>
								<width>1155</width>
								<height>168</height>
								<aspectratio align="center">keep</aspectratio>
								<texture background="true">$INFO[ListItem.Art(logo)]</texture>
							</control>

						</control>

						<control type="image">
							<visible>Container.Content(images)</visible>
							<width>1155</width>
							<height>650</height>
							<texture background="true" diffuse="diffuse/gallery.png">$INFO[ListItem.PicturePath]</texture>
							<aspectratio align="center" aligny="center" scalediffuse="false">keep</aspectratio>
						</control>

						<include content="OverlayIcons" condition="![Container.Content(images) | Container.Content(artists)]">
							<param name="OverlayLeft" value="1113" />
							<param name="OverlayTop" value="18" />
						</include>
					</control>
				</focusedlayout>
			</control>
			<control type="image">
				<left>388</left>
				<top>640</top>
				<width>1155</width>
				<height>168</height>
				<aspectratio>keep</aspectratio>
				<texture background="true">$INFO[ListItem.Art(clearLogo)]</texture>
				<visible>$EXP[isArtist]</visible>
			</control>
		</control>
		<control type="group">
			<visible>Control.IsVisible(504)</visible>
			<top>-15</top>
			<include>Scrollbar_Horizontal</include>
		</control>
	</include>
</includes>