<includes>
	<include name="VideoCodecFlagging">
		<control type="image">
			<description>Video rez Image</description>
			<width>50</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>$INFO[ListItem.VideoResolution,flagging/video/,.png]</texture>
		</control>
		<control type="image">
			<description>Common Codec Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>$INFO[ListItem.VideoCodec,flagging/video/,.png]</texture>
			<!-- Don't show if its one of the 500 divx codecs -->
			<visible>![substring(ListItem.VideoCodec,div,left) | stringcompare(ListItem.VideoCodec,dx50)]</visible>
		</control>
		<control type="image">
			<description>Divx Codec Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>flagging/video/divx.png</texture>
			<visible>[substring(ListItem.VideoCodec,div,left) | stringcompare(ListItem.VideoCodec,dx50)]</visible>
		</control>
	</include>
	<include name="AudioCodecFlagging">
		<control type="image">
			<description>Audio Codec Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>$INFO[ListItem.AudioCodec,flagging/audio/,.png]</texture>
		</control>
		<control type="image">
			<description>Audio Channels Image</description>
			<width>50</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>$INFO[ListItem.AudioChannels,flagging/audio/,.png]</texture>
		</control>
	</include>
	<include name="AspectCodecFlagging">
		<control type="image">
			<description>Aspectratio Image</description>
			<width>50</width>
			<height>35</height>
			<aspectratio align="left">keep</aspectratio>
			<texture>$INFO[ListItem.VideoAspect,flagging/aspectratio/,.png]</texture>
		</control>
	</include>
	<include name="VideoTypeHackFlaggingConditions">
		<control type="image">
			<description>Bluray Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/video/bluray.png</texture>
			<visible>[substring(ListItem.FilenameAndPath,bluray) | substring(ListItem.FilenameAndPath,bdrip) | substring(ListItem.FilenameAndPath,brrip)] + !Skin.HasSetting(HideFilenameFlagging)</visible>
		</control>
		<control type="image">
			<description>HDDVD Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/video/hddvd.png</texture>
			<visible>substring(ListItem.FilenameAndPath,hddvd) + !Skin.HasSetting(HideFilenameFlagging)</visible>
		</control>
		<control type="image">
			<description>DVD Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/video/dvd.png</texture>
			<visible>[substring(ListItem.FilenameAndPath,dvd) + ![substring(ListItem.FilenameAndPath,hddvd) | substring(ListItem.FilenameAndPath,bluray) | substring(ListItem.FilenameAndPath,bdrip)]] + !Skin.HasSetting(HideFilenameFlagging)</visible>
		</control>
		<control type="image">
			<description>TV Types Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/video/tv.png</texture>
			<visible>[substring(ListItem.FilenameAndPath,pdtv) | substring(ListItem.FilenameAndPath,hdtv) | substring(ListItem.FilenameAndPath,dsr)] + !Skin.HasSetting(HideFilenameFlagging)</visible>
		</control>
		<control type="image">
			<description>VHS Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/video/vhs.png</texture>
			<visible>substring(ListItem.FilenameAndPath,vhs) + !Skin.HasSetting(HideFilenameFlagging)</visible>
		</control>
	</include>

	<include name="AudioTypeHackFlaggingConditions">
		<control type="image">
			<description>WAV Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/wav.png</texture>
			<visible>substring(ListItem.Filename,.wav,right)</visible>
		</control>
		<control type="image">
			<description>MP3 Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/mp3.png</texture>
			<visible>substring(ListItem.Filename,.mp3,right)</visible>
		</control>
		<control type="image">
			<description>WMA Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/wma.png</texture>
			<visible>substring(ListItem.Filename,.wma,right)</visible>
		</control>
		<control type="image">
			<description>MPA Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/mpa.png</texture>
			<visible>substring(ListItem.Filename,.mpa,right)</visible>
		</control>
		<control type="image">
			<description>AAC, MP4 and M4A Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/aac.png</texture>
			<visible>substring(ListItem.Filename,.aac,right) | substring(ListItem.Filename,.m4a,right) | substring(ListItem.Filename,.mp4,right)</visible>
		</control>
		<control type="image">
			<description>flac Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/flac.png</texture>
			<visible>substring(ListItem.Filename,.flac,right)</visible>
		</control>
		<control type="image">
			<description>APE Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/ape.png</texture>
			<visible>substring(ListItem.Filename,.ape,right)</visible>
		</control>
		<control type="image">
			<description>OGG Image</description>
			<width>80</width>
			<height>35</height>
			<aspectratio align="right">keep</aspectratio>
			<texture>flagging/audio/ogg.png</texture>
			<visible>substring(ListItem.Filename,.ogg,right)</visible>
		</control>
		<control type="group">
			<description>Rating</description>
			<width>90</width>
			<height>35</height>
			<visible>!IsEmpty(ListItem.Year)</visible>
			<control type="image">
				<description>Runtime back</description>
				<posx>0</posx>
				<posy>0</posy>
				<width>90</width>
				<height>35</height>
				<aspectratio align="left">stretch</aspectratio>
				<texture border="5">flagging/blank.png</texture>
			</control>
			<control type="label">
				<description>Runtime</description>
				<posx>10</posx>
				<posy>8</posy>
				<width>70</width>
				<height>19</height>
				<align>center</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>blue</textcolor>
				<label>$INFO[ListItem.Year]</label>
			</control>
		</control>
		<control type="group">
			<description>Rating</description>
			<width>120</width>
			<height>35</height>
			<visible>!IsEmpty(ListItem.StarRating)</visible>
			<control type="image">
				<description>Rating back</description>
				<posx>0</posx>
				<posy>0</posy>
				<width>110</width>
				<height>35</height>
				<aspectratio align="left">stretch</aspectratio>
				<texture border="5">flagging/blank.png</texture>
			</control>
			<control type="image">
				<description>Rating</description>
				<posx>5</posx>
				<posy>5</posy>
				<width>100</width>
				<height>25</height>
				<aspectratio>keep</aspectratio>
				<texture fallback="rating/rating0.png">$INFO[ListItem.StarRating,rating/]</texture>
			</control>
		</control>
	</include>

	<include name="PictureTypeHackFlaggingConditions">
		<control type="group">
			<description>Date</description>
			<width>150</width>
			<height>40</height>
			<visible>!IsEmpty(ListItem.Date)</visible>
			<control type="image">
				<description>Date back</description>
				<posx>0</posx>
				<posy>0</posy>
				<width>150</width>
				<height>40</height>
				<aspectratio align="left">stretch</aspectratio>
				<texture border="5">flagging/blank.png</texture>
			</control>
			<control type="label">
				<description>Runtime</description>
				<posx>10</posx>
				<posy>8</posy>
				<width>130</width>
				<height>22</height>
				<align>center</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>blue</textcolor>
				<label>$INFO[ListItem.Date]</label>
			</control>
		</control>
		<control type="group">
			<description>Resolution</description>
			<width>150</width>
			<height>40</height>
			<visible>!IsEmpty(ListItem.PictureResolution)</visible>
			<control type="image">
				<description>Rating back</description>
				<posx>0</posx>
				<posy>0</posy>
				<width>150</width>
				<height>40</height>
				<aspectratio align="left">stretch</aspectratio>
				<texture border="5">flagging/blank.png</texture>
			</control>
			<control type="label">
				<description>Runtime</description>
				<posx>10</posx>
				<posy>8</posy>
				<width>130</width>
				<height>22</height>
				<align>center</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>green</textcolor>
				<label>$INFO[ListItem.PictureResolution]</label>
			</control>
		</control>
	</include>
</includes>