<?xml version="1.0" encoding="UTF-8"?>
<includes>
	<!-- includes -->
	<include name="SaunaHorizontalControls">
		<ondown>909</ondown>
		<onleft>909</onleft>
		<onright>909</onright>
		<onup>SetProperty(MediaMenu,True,home)</onup>
		<onup>SetFocus(9050)</onup>
		<orientation>horizontal</orientation>
	</include>
	<include name="SaunaVerticalControls">
		<ondown>909</ondown>
		<onleft>SetProperty(MediaMenu,True,home)</onleft>
		<onleft>SetFocus(9050)</onleft>
		<onright>909</onright>
		<onup>909</onup>
		<orientation>vertical</orientation>
	</include>
	<!-- view -->
	<include name="View_909_Sauna">
		<control type="group">
			<visible>Control.IsVisible(909) + !$EXP[isInfoDialog]</visible>
			<animation type="Visible" reversible="false">
				<effect type="fade" center="960,345" start="0" end="100" time="300" tween="sine" easing="in" />
				<effect type="slide" start="0,600" end="0" time="300" center="auto" tween="quadratic" easing="out" />
			</animation>
			<control type="image">
				<left>30</left>
				<top>600</top>
				<right>30</right>
				<bottom>30</bottom>
				<texture colordiffuse="66000000" border="5">listselect_fo.png</texture>
				<visible>Control.IsVisible(909)</visible>
			</control>
			<control type="image">
				<left>40</left>
				<top>610</top>
				<right>40</right>
				<bottom>40</bottom>
				<texture colordiffuse="66000000" border="5">listselect_fo.png</texture>
				<visible>Control.IsVisible(909)</visible>
			</control>
			<control type="panel" id="909">
				<left>45</left>
				<top>615</top>
				<width>1830</width>
				<height>420</height>
				<include condition="!Skin.HasSetting(SaunaVertical)">SaunaHorizontalControls</include>
				<include condition="Skin.HasSetting(SaunaVertical)">SaunaVerticalControls</include>
				<viewtype label="$LOCALIZE[90900]">list</viewtype>
				<scrolltime tween="quadratic">400</scrolltime>
				<itemlayout width="305" height="140">
					<control type="image">
						<width>305</width>
						<height>140</height>
						<texture background="true" diffuse="diffuse/thumbnail.png" fallback="black.png">$INFO[ListItem.Art(banner)]</texture>
						<aspectratio>stretch</aspectratio>
						<bordersize>5</bordersize>
					</control>
					<control type="image">
						<width>305</width>
						<height>140</height>
						<texture diffuse="diffuse/thumbnail.png">overlays/icon-overlay.png</texture>
						<aspectratio>stretch</aspectratio>
						<bordersize>5</bordersize>
						<visible>!Skin.HasSetting(Enable.HighlightFocused)</visible>
					</control>
				</itemlayout>
				<focusedlayout width="305" height="140">
					<control type="group">
						<animation type="Focus" condition="!Skin.HasSetting(SaunaDisableZoom)" reversible="true">
							<effect type="zoom" center="152.5,70" start="100" end="120" time="200" />
						</animation>
						<animation type="Unfocus" condition="!Skin.HasSetting(SaunaDisableZoom)">
							<effect type="zoom" center="152.5,70" start="120" end="100" time="0" />
						</animation>
						<control type="image">
							<width>305</width>
							<height>140</height>
							<texture background="true" diffuse="diffuse/thumbnail.png">black.png</texture>
							<aspectratio>stretch</aspectratio>
							<bordersize>5</bordersize>
							<bordertexture colordiffuse="FocusColor" border="5">listselect_fo.png</bordertexture>
							<animation effect="fade" start="0" end="100" time="400">Focus</animation>
							<animation effect="fade" start="100" end="0" time="0">UnFocus</animation>
						</control>
						<control type="image">
							<width>305</width>
							<height>140</height>
							<texture background="true" diffuse="diffuse/thumbnail.png" fallback="black.png">$INFO[ListItem.Art(banner)]</texture>
							<aspectratio>stretch</aspectratio>
							<bordersize>5</bordersize>
						</control>
					</control>
					<control type="group">
						<visible>Skin.HasSetting(SaunaTrailers)</visible>
						<include>GameTrailerAutoplay</include>
					</control>
				</focusedlayout>				
			</control>
		</control>
		<control type="group">
			<visible>Control.IsVisible(909)</visible>
			<animation type="Visible" reversible="false">
				<effect type="fade" start="0" end="100" delay="300" time="300" tween="sine" easing="in" />
				<effect type="zoom" start="50" end="100" delay="300" time="300" center="auto" tween="quadratic" easing="out" />
			</animation>
			<control type="group">
				<visible>!Skin.HasSetting(SaunaBoxshot) + !Skin.HasSetting(SaunaDouble)</visible>
				<include>SaunaLayoutDefault</include>
			</control>
			<control type="group">
				<visible>Skin.HasSetting(SaunaBoxshot)</visible>
				<include>SaunaLayoutBoxshot</include>
			</control>
			<control type="group">
				<visible>Skin.HasSetting(SaunaDouble)</visible>
				<include>SaunaLayoutDouble</include>
			</control>
		</control>
	</include>
	<include name="GameTrailerAutoplay">
		<control type="button">
			<left>0</left>
			<top>0</top>
			<onfocus condition="!String.IsEmpty(ListItem.Trailer)">PlayMedia($INFO[ListItem.trailer],1)</onfocus>
			<onfocus condition="String.IsEmpty(ListItem.Trailer)">PlayerControl(stop)</onfocus>
			<texturefocus>-</texturefocus>
			<texturenofocus>-</texturenofocus>						
			<animation type="Focus" condition="!String.IsEmpty(ListItem.Trailer)" reversible="false">
				<effect type="fade" delay="1200" time="0" />
			</animation>
			<animation type="Focus" condition="String.IsEmpty(ListItem.Trailer)" reversible="false">
				<effect type="fade" delay="400" time="0" />
			</animation>
		</control>
	</include>
	<!-- layout_includes -->
	<include name="SaunaLayoutDefault">
		<control type="label">
			<left>80</left>
			<top>140</top>
			<width>900</width>
			<height>60</height>
			<align>left</align>
			<aligny>center</aligny>
			<font>font52</font>
			<label>$INFO[ListItem.Label]</label>
			<textcolor>TitleTextColor</textcolor>
			<scrollspeed>60</scrollspeed>
			<pauseatend>1500</pauseatend>
			<scroll>true</scroll>
		</control>
		<control type="label">
			<left>80</left>
			<top>230</top>
			<width>760</width>
			<height>50</height>
			<align>left</align>
			<aligny>center</aligny>
			<font>font30</font>
			<label>[UPPERCASE]$INFO[ListItem.Year]  [COLOR=TitleTextColor]•[/COLOR]  $INFO[ListItem.Genre][/UPPERCASE]</label>
			<textcolor>AltTextColor</textcolor>
			<scroll>false</scroll>
		</control>	
		<control type="textbox">
			<left>80</left>
			<top>330</top>
			<width>1080</width>
			<height>165</height>
			<align>left</align>
			<font>font14_textbox</font>
			<label>$INFO[ListItem.Plot]</label>
			<textcolor>NormalTextColor</textcolor>
		<include>AutoscrollDefault</include>
		<autoscroll time="2000" delay="3000" repeat="5000">!Skin.HasSetting(Disable.AutoScroll) + Control.HasFocus(909)</autoscroll>
		</control>
		<control type="image">
			<left>1216</left>
			<top>140</top>
			<width>624</width>
			<height>360</height>
			<texture diffuse="diffuse/thumbnail.png">black.png</texture>
			<bordertexture border="5" colordiffuse="BorderDiffuse">listselect_fo.png</bordertexture>
			<bordersize>10</bordersize>			
		</control>
		<control type="videowindow">
			<left>1226</left>
			<top>150</top>
			<width>604</width>
			<height>340</height>
		</control>
		<control type="image">
			<left>1216</left>
			<top>140</top>
			<width>624</width>
			<height>360</height>
			<fadetime>400</fadetime>
			<texture background="true" diffuse="diffuse/thumbnail.png">$VAR[MainFanartWindowVar]</texture>
			<bordersize>10</bordersize>
			<animation effect="fade" start="0" end="100" time="1200">Visible</animation>
			<animation effect="fade" start="100" end="0" time="800">Hidden</animation>
			<visible>!Player.HasVideo</visible>
		</control>
	</include>
	<include name="SaunaLayoutDouble">
			<animation type="Conditional" condition="true" reversible="false">
				<effect type="slide" start="0,0" end="0,-20" time="0" center="auto" tween="quadratic" easing="out" />
			</animation>
		<control type="group">
		<control type="image">
			<left>60</left>
			<top>140</top>
			<right>60</right>
			<bottom>790</bottom>
			<texture colordiffuse="66000000" border="5">listselect_fo.png</texture>
		</control>
		<control type="image">
			<left>60</left>
			<top>290</top>
			<right>60</right>
			<bottom>500</bottom>
			<texture colordiffuse="66000000" border="5">listselect_fo.png</texture>
		</control>
		<control type="image">
			<left>70</left>
			<top>290</top>
			<right>70</right>
			<bottom>510</bottom>
			<texture colordiffuse="99000000" border="5">listselect_fo.png</texture>
		</control>	
		<control type="image">
			<left>950</left>
			<top>290</top>
			<right>75</right>
			<bottom>510</bottom>
			<texture colordiffuse="99000000" border="5">listselect_fo.png</texture>
		</control>
		<control type="image">
			<left>50</left>
			<top>125</top>
			<width>380</width>
			<height>180</height>
			<fadetime>200</fadetime>
			<texture>$INFO[ListItem.Art(banner)]</texture>
			<aspectratio>stretch</aspectratio>
			<bordersize>6</bordersize>
			<bordertexture border="6" colordiffuse="BorderDiffuse">listselect_fo.png</bordertexture>
		</control>
		<control type="label">
			<left>470</left>
			<top>160</top>
			<width>1020</width>
			<height>50</height>
			<align>left</align>
			<aligny>center</aligny>
			<font>font32</font>
			<textcolor>TitleTextColor</textcolor>
			<shadowcolor>black</shadowcolor>
			<label>$INFO[ListItem.Label]</label>
			<scroll>true</scroll>
		</control>
		<control type="label">
			<left>470</left>
			<top>230</top>
			<width>1095</width>
			<height>35</height>
			<align>left</align>
			<aligny>center</aligny>
			<font>font14</font>
			<textcolor>AltTextColor</textcolor>
			<shadowcolor>black</shadowcolor>
			<label>[UPPERCASE]$INFO[ListItem.Year]  [COLOR=TitleTextColor]•[/COLOR]  $INFO[ListItem.Genre][/UPPERCASE]</label>
			<scroll>true</scroll>
		</control>
		<control type="textbox">
			<left>110</left>
			<top>350</top>
			<width>800</width>
			<height>170</height>
			<align>left</align>
			<aligny>top</aligny>
			<label>$INFO[ListItem.Plot]</label>
			<font>font13_textbox</font>
			<textcolor>NormalTextColor</textcolor>
			<shadowcolor>black</shadowcolor>
			<autoscroll time="2000" delay="3000" repeat="5000">!Skin.HasSetting(Disable.AutoScroll) + !Control.HasFocus(2)</autoscroll>
		</control>
		<control type="group">
			<left>50</left>
        <control type="image">
            <left>940</left>
            <top>315</top>
            <width>405</width>
            <height>232</height>
            <texture>black.png</texture>
            <aspectratio>stretch</aspectratio>
			<bordertexture border="6" colordiffuse="BorderDiffuse">listselect_fo.png</bordertexture>
			<bordersize>6</bordersize>
        </control>
		<control type="videowindow">
			<left>945</left>
			<top>320</top>
            <width>395</width>
            <height>222</height>
		</control>
        <control type="image">
            <left>940</left>
            <top>315</top>
            <width>405</width>
            <height>232</height>
            <fadetime>400</fadetime>
            <texture background="true">$VAR[MainFanartWindowVar]</texture>
            <aspectratio>stretch</aspectratio>
			<bordersize>6</bordersize>
			<visible>!Player.HasVideo</visible>
        </control>
		</control>
		<control type="group">
			<left>25</left>
        <control type="image">
            <left>1395</left>
            <top>315</top>
            <width>405</width>
            <height>232</height>
            <texture>black.png</texture>
            <aspectratio>stretch</aspectratio>
			<bordertexture border="6" colordiffuse="BorderDiffuse">listselect_fo.png</bordertexture>
			<bordersize>6</bordersize>
        </control>
		<control type="videowindow">
			<left>1400</left>
			<top>320</top>
            <width>395</width>
            <height>222</height>
			<visible>Skin.HasSetting(Sauna2ndVideo)</visible>
		</control>
        <control type="image">
            <left>1395</left>
            <top>315</top>
            <width>405</width>
            <height>232</height>
            <fadetime>400</fadetime>
            <texture background="true">$VAR[2ndFanartWindowVar]</texture>
            <aspectratio>stretch</aspectratio>
			<bordersize>5</bordersize>
			<visible>!Player.HasVideo | !Skin.HasSetting(Sauna2ndVideo)</visible>
        </control>
		</control>
		<control type="image">
			<left>1710</left>
			<top>170</top>
			<width>100</width>
			<height>50</height>
			<fadetime>200</fadetime>
			<texture>resource://resource.images.gamestudios.grayscale/$INFO[ListItem.Studio,,.png]</texture>
			<aspectratio align="center" aligny="center">keep</aspectratio>
		</control>
		<control type="image">
			<left>1710</left>
			<top>205</top>
			<include>MediaFlagVars</include>			
			<width>100</width>
			<height>90</height>			
			<texture background="true" colordiffuse="TitleTextColor">$VAR[StarRatingVar]</texture>
			<aspectratio align="center">keep</aspectratio>
		</control>		
		</control>
	</include>
	<include name="SaunaLayoutMini">
		<control type="label">
			<left>0</left>
			<top>255</top>
			<width>1920</width>
			<height>80</height>
			<align>center</align>
			<aligny>center</aligny>
			<font>font60</font>
			<label>$INFO[ListItem.Label]</label>
			<textcolor>TitleTextColor</textcolor>
			<scrollspeed>60</scrollspeed>
			<pauseatend>1500</pauseatend>
			<scroll>true</scroll>
		</control>
		<control type="label">
			<left>0</left>
			<top>365</top>
			<width>1920</width>
			<height>55</height>
			<align>center</align>
			<aligny>center</aligny>
			<textcolor>AltTextColor</textcolor>
			<font>font36</font>
			<label>[UPPERCASE]$INFO[ListItem.Year]  [COLOR=TitleTextColor]•[/COLOR]  $INFO[ListItem.Genre][/UPPERCASE]</label>
			<scroll>false</scroll>
		</control>
	</include>
	<include name="SaunaLayoutBoxshot">
		<control type="image">
			<left>60</left>
			<top>120</top>
			<width>440</width>
			<height>440</height>
			<fadetime>400</fadetime>
			<texture background="true" diffuse="diffuse/fanart-square.png">$INFO[ListItem.Icon]</texture>
			<bordertexture border="5" colordiffuse="BorderDiffuse">listselect_fo.png</bordertexture>
			<bordersize>10</bordersize>
		</control>
	<!--	<control type="image">
			<left>540</left>
			<top>120</top>
			<right>70</right>
			<bottom>520</bottom>
			<texture colordiffuse="66000000" border="5">listselect_fo.png</texture>
		</control>-->
		<control type="label">
			<left>540</left>
			<top>150</top>
			<width>760</width>
			<height>55</height>
			<align>left</align>
			<aligny>center</aligny>
			<font>font36</font>
			<label>$INFO[ListItem.Label]</label>
			<textcolor>TitleTextColor</textcolor>
			<scrollspeed>60</scrollspeed>
			<pauseatend>1500</pauseatend>
			<scroll>true</scroll>
		</control>
		<control type="label">
			<left>540</left>
			<top>235</top>
			<width>760</width>
			<height>20</height>
			<align>left</align>
			<aligny>center</aligny>
			<textcolor>AltTextColor</textcolor>
			<font>font16</font>
			<label>[UPPERCASE]$INFO[ListItem.Year]  [COLOR=TitleTextColor]•[/COLOR]  $INFO[ListItem.Genre][/UPPERCASE]</label>
			<scroll>false</scroll>
		</control>
		<control type="image">
			<left>540</left>
			<top>295</top>
			<width>780</width>
			<height>5</height>
			<colordiffuse>FocusColor</colordiffuse>
			<texture>lyretex/separator.png</texture>			
		</control>
		<control type="textbox">
			<left>540</left>
			<top>330</top>
			<width>780</width>
			<height>210</height>
			<font>font11</font>
			<align>left</align>
			<textcolor>TitleTextColor</textcolor>
			<label>$INFO[ListItem.Plot]</label>
			<autoscroll time="2000" delay="3000" repeat="5000">!Skin.HasSetting(Disable.AutoScroll)</autoscroll>
		</control>
		<control type="image">
			<left>1360</left>
			<top>150</top>
			<width>500</width>
			<height>290</height>
			<texture diffuse="diffuse/thumbnail.png">black.png</texture>
			<bordertexture border="5" colordiffuse="BorderDiffuse">listselect_fo.png</bordertexture>
			<bordersize>10</bordersize>			
		</control>
		<control type="videowindow">
			<left>1370</left>
			<top>160</top>
			<width>480</width>
			<height>270</height>
		</control>
		<control type="image">
			<left>1360</left>
			<top>150</top>
			<width>500</width>
			<height>290</height>
			<fadetime>400</fadetime>
			<texture background="true" diffuse="diffuse/thumbnail.png" fallback="black.png">$VAR[MainFanartWindowVar]</texture>
			<bordersize>10</bordersize>	
			<visible>!Player.HasVideo</visible>
		</control>
		<control type="image">
			<left>1380</left>
			<top>455</top>
			<include>MediaFlagVars</include>			
			<width>220</width>
			<height>100</height>			
			<texture background="true" colordiffuse="TitleTextColor">$VAR[StarRatingVar]</texture>
			<aspectratio align="center">keep</aspectratio>
		</control>
		<control type="image">
			<left>1700</left>
			<top>475</top>
			<include>MediaFlagVars</include>
			<width>180</width>				
			<height>60</height>
			<texture>resource://resource.images.gamestudios.grayscale/$INFO[ListItem.Studio,,.png]</texture>
			<aspectratio align="center">keep</aspectratio>			
			<visible>!Skin.HasSetting(Arcade.Games.HideStudioFlags)</visible>
		</control>	
	</include>
	<!-- options -->
	<include name="SaunaOptions">
		<control type="button" id="90901">
			<description>Layout Selector</description>
			<label>89010</label>
			<label2>$VAR[LayoutLabelVar]</label2>
			<include>ButtonCommonValues</include>
			<onclick>Skin.SelectBool(89010, 90901|, 90902|SaunaBoxshot, 90903|SaunaDouble)</onclick>
			<visible>Control.IsVisible(909)</visible>
		</control>
		<control type="button" id="90902">
			<description>Art Selector</description>
			<label>89000</label>
			<label2>$VAR[ImageLabelVar]</label2>
			<include>ButtonCommonValues</include>
			<onclick>Skin.SelectBool(89000, 20445|, 89001|SaunaSnaps, 89002|SaunaTitles)</onclick>
			<visible>Control.IsVisible(909)</visible>
		</control>
		<control type="button" id="90903">
			<description>Art Selector</description>
			<label> - $LOCALIZE[90959]</label>
			<label2>$VAR[2ndImageLabelVar]</label2>
			<include>ButtonCommonValues</include>
			<onclick>Skin.SelectBool(89000, 20445|, 89001|Sauna2ndSnaps, 89002|Sauna2ndTitles)</onclick>
			<visible>Control.IsVisible(909) + Skin.HasSetting(SaunaDouble)</visible>
		</control>
<!-- 		<control type="radiobutton" id="90904"> -->
<!-- 			<description>Bright Icons</description> -->
<!-- 			<label>90945</label> -->
<!-- 			<include>ButtonCommonValues</include> -->
<!-- 			<onclick>Skin.ToggleSetting(Enable.HighlightFocused)</onclick> -->
<!-- 			<visible>Control.IsVisible(909)</visible> -->
<!-- 		</control> -->
		<control type="radiobutton" id="90905">
			<description>Disable Icon Zoom</description>
			<label>90946</label>
			<include>ButtonCommonValues</include>
			<onclick>Skin.ToggleSetting(SaunaDisableZoom)</onclick>
			<visible>Control.IsVisible(909)</visible>
		</control>
		<control type="radiobutton" id="90906">
			<description>Autoplay Trailers</description>
			<label>90949</label>
			<include>ButtonCommonValues</include>
			<onclick>Skin.ToggleSetting(SaunaTrailers)</onclick>
			<onclick condition="Player.HasVideo">PlayerControl(stop)</onclick>
			<visible>Control.IsVisible(909)</visible>
		</control>
		<control type="radiobutton" id="90907">
			<description>Autoplay Trailers</description>
			<label> - $LOCALIZE[90958]</label>
			<include>ButtonCommonValues</include>
			<onclick>Skin.ToggleSetting(SaunaSwitchVideo)</onclick>
			<onclick condition="Player.HasVideo">PlayerControl(stop)</onclick>
			<visible>Control.IsVisible(909) + Skin.HasSetting(SaunaDouble)</visible>
		</control>
	</include>
</includes>