@Initialize
{
	SetAutoDeleteObject(true);

	TBackground();
}


@MainLoop
{

	yield;
}

@Finalize
{
}

task TBackground()
{
	alternative(GetAreaCommonData("TUNING","DemoCount",0)%3)
	case(0){SetScriptResult(GetCurrentScriptDirectory~"../demo/Demo01.dat");}
	case(1){SetScriptResult(GetCurrentScriptDirectory~"../demo/Demo02.dat");}
	case(2){SetScriptResult(GetCurrentScriptDirectory~"../demo/Demo03.dat");}
	CloseScript(GetOwnScriptID());
}