ConfigureVarSys()
{
	
	CreateInteger("images.page", 0);
	SetIntegerRange("images.page", 0, 4);

	
	CreateString("images.models", "Edflogo.xsi");
}

CreateControl("INFO1", "STATIC")
{

	Geom("HCENTRE", "VCENTRE");


	Size(1500, 1000);


	BorderSize(25);
	BevelSize(13);


	TabSize(500, 25);

	Style("OUTLINE", "INERT");

	Title("Earth Defense Forces");

	TitleFont("MEDIUM");

	CreateControl("ReturnButt", "BUTTON")
	{
		Pos(695, 25);
		Size(250, 25);
		BorderSize(13);
		BevelSize(13);
		Font("TINY");
		Text("Exit Message");
		Style("ROLLOVER", "RADIO","OUTLINE");
		Value(4);
		UseVar("images.page");
		NotifyParent("Button::Select", "Return");
	}	
	
		CreateControl("Image1", "Static")
	{
		//ColorGroup: What colorgroup to use. Base colorgroups are defined in bzgame_init.cfg.
		ColorGroup("WHITE");

		Geom("Top", "Left");
		Size(900, 875);
		Pos(0, 100);
		Image("wlogo.tga",  0, 0, 360, 350);
	}

		CreateControl("XSIView", "VIEWER")
	{
		Geom("TOP", "LEFT");
		Position(925, 125);
		Size(500, 500);
		BorderSize(13);
		BevelSize(8);
		ColorGroup("LISTBOX");

		UseVar("images.models");


		SetAmbientColor(1.0, 1.0, 1.0);
		SetDiffuseColor(1.0, 1.0, 1.0);
		SetDiffuseDir(2.0, -5.0, 1.0);
		SetModelDistance(300.0);
		SetModelInclination(0.0);
		SetModelRotation(60.0);
	}


	OnEvent("Control::Activate")
	{
		Cmd("images.page 0");
		Activate("|Start1");
	}

		OnEvent("Control::Deactivate")
	{
		
		Deactivate("|Message");
	}

		OnEvent("Return")
	{

		Deactivate("|Start1");
		Deactivate("|Message");
		Cmd("images.page 4");

	}


}

CreateControl("Start1", "STATIC")
{
	Geom("HCENTRE", "VCENTRE");
	Pos(0, 50);
	Size(1500, 900);
	Style("TRANSPARENT");
	BevelSize(8);

}


CreateControl("Message", "STATIC")
{
	Geom("HCENTRE", "VCENTRE");
	Pos(0, 50);
	Size(1500, 900);
	Style("TRANSPARENT");
	BevelSize(8);


	CreateControl("List", "LISTBOX")
	{
		Style("INERT", "NOSELECTION", "VSLIDER");
		Geometry("LEFT", "TOP");
		Position(0, 0);
		Size(900, 875);
		ColorGroup("LISTBOX");
		CellSize(850, 25);
		SliderPadding(10);
		Font("SMALL");
		ItemConfig()
		{
			Style("TRANSPARENT");
		}
		FillFromFile("mercstart.txt");

	}





}
