<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">10</defaultcontrol>
	<backgroundcolor>background</backgroundcolor>
	<menucontrol>6666</menucontrol>
	<!-- setup run -->
	<onload condition="!Skin.HasSetting(EmbuaryInitMessage)">ReplaceWindow(1119)</onload>
	<onload condition="Skin.HasSetting(EmbuaryInitMessage)">RunScript(script.skinshortcuts,type=buildxml&amp;mainmenuID=100&amp;levels=0&amp;group=mainmenu|moviehub|tvshowhub|musichub|customhub|sidepanel)</onload>
	<!-- script actions -->
	<onload condition="!Skin.HasSetting(FontCheck)">RunScript(script.embuary.helper,action=fontchange,locales=ja+zh+ar+he+ko+vi+bn+my+hi+ks+km+ms,font=Arial)</onload>
	<onload condition="!Skin.HasSetting(FontCheck)">Skin.ToggleSetting(FontCheck)</onload>
	<onload condition="System.HasAddon(plugin.video.embycon) + String.IsEmpty(Window(home).property(plugin.video.embycon-group_movies))">RunScript(script.embuary.helper,action=getaddonsetting,addon=plugin.video.embycon,setting=group_movies)</onload>
	<!-- fake pvr hub window history workaround -->
	<onload condition="!String.IsEmpty(Window(home).Property(pvrhub))">ActivateWindow(1124)</onload>
	<onload>ClearProperty(pvrhub,home)</onload>
	<!-- winter theme -->
	<onload condition="!Skin.HasSetting(DoNotUseHolidayThemeSound) + Window.Previous(startup) + !Player.HasMedia + $EXP[HolidayTheme] + System.Date(12-01,12-27)">RunScript(script.embuary.helper,action=playsfx,path='"special://skin/extras/holiday/winterintro.wav"')</onload>
	<!-- halloween theme -->
	<onload condition="!Skin.HasSetting(DoNotUseHolidayThemeSound) + Window.Previous(startup) + !Player.HasMedia + $EXP[HolidayTheme2]">RunScript(script.embuary.helper,action=playsfx,path='"special://skin/extras/holiday/halloween.wav"')</onload>
	<!-- sw theme -->
	<onload condition="!Skin.HasSetting(DoNotUseHolidayThemeSound) + Window.Previous(startup) + !Player.HasMedia + $EXP[HolidayTheme3]">RunScript(script.embuary.helper,action=playsfx,path='"special://skin/extras/holiday/swtheme_short.wav"')</onload>
	<!-- st theme -->
	<onload condition="!Skin.HasSetting(DoNotUseHolidayThemeSound) + Window.Previous(startup) + !Player.HasMedia + $EXP[HolidayTheme4]">RunScript(script.embuary.helper,action=playsfx,path='"special://skin/extras/holiday/sttheme_short.wav"')</onload>
	<include content="PropertyIncludes">
		<param name="ShowHeader" value="true"/>
	</include>
	<controls>
		<control type="group">
			<visible>String.IsEmpty(Window(home).Property(pvrhub))</visible>
			<!-- background -->
			<include>Background</include>
			<!-- content -->
			<include condition="!Skin.HasSetting(HomePanelLayout)">HomeDefaultLayout</include>
			<include condition="Skin.HasSetting(HomePanelLayout)">HomePanelLayout</include>
			<!-- menu fake art -->
			<include>skinshortcuts-template-itemArt</include>
			<!-- side panel -->
			<include content="SidePanel"/>
		</control>
	</controls>
</window>
