local	POPUP_START = -1;
local	POPUP_START2 = 1;
local	POPUP_TO    = 0.03;
local	POPUP_END	= 0.0;
local	XFADE_DURATION = 0.1;
local	MOVE_DURATION = 0.05;
local	MOVE_DURATION2 = 0.10;
local	PART_DURATION = 0.5;

PopupStart1 = 
{
	{
		Duration	= XFADE_DURATION,
		From		= {POPUP_START, 0.0},
		To			= {POPUP_TO, 0.0},
		XFade		= {0, 0},
	},
	{
		Duration	= MOVE_DURATION,
		From		= {POPUP_TO, 0.0},
		To			= {0.0, 0.0},
	},
	{
		Duration	= PART_DURATION,
        PartSys 	= "effects/popup_fx.p2d",
	}
}

PopupStart2 = 
{
	{
		Duration	= XFADE_DURATION,
		From		= {POPUP_START2, 0.0},
		To			= {-POPUP_TO, 0.0},
		XFade		= {0, 0},
	},
	{
		Duration	= MOVE_DURATION,
		From		= {-POPUP_TO, 0.0},
		To			= {0.0, 0.0},
	},
	{
		Duration	= PART_DURATION,
        PartSys 	= "effects/popup_fx.p2d",
	}
}

PopupStart3 = 
{
	{
		Duration	= XFADE_DURATION,
		From		= {0, -1},
		To			= {0, POPUP_TO},
		XFade		= {0, 0},
	},
	{
		Duration	= MOVE_DURATION,
		From		= {0, POPUP_TO},
		To			= {0, 0},
	},
	{
		Duration	= PART_DURATION,
        PartSys 	= "effects/popup_fx.p2d",
	}
}

PopupStart4 = 
{
	{
		Duration	= XFADE_DURATION,
		From		= {0, 1},
		To			= {0, -POPUP_TO},
		XFade		= {0, 0},
	},
	{
		Duration	= MOVE_DURATION,
		From		= {0, -POPUP_TO},
		To			= {0, 0},
	},
	{
		Duration	= PART_DURATION,
        PartSys		= "effects/popup_fx.p2d",
	}
}


--------------------------------------
PopupEnd1 = 
{
	{
		Duration	= XFADE_DURATION,
	},
	{
		Duration	= MOVE_DURATION,
		From		= {0, 0.0},
		To			= {0.05, 0.0},
	},
	{
		Duration	= MOVE_DURATION2,
		From		= {0.05, 0.0},
		To			= {-1, 0.0},
	},
}

PopupEnd2 = 
{
	{
		Duration	= 0.2,
	},
	{
		Duration	= MOVE_DURATION,
		From		= {0.0, 0.0},
		To			= {0.0, 0.05},
	},
	{
		Duration	= MOVE_DURATION2,
		From		= {0.0, 0.05},
		To			= {0.0, -1.0 },
	},
}

PopupEnd3 = 
{
	{
		Duration	= 0.2,
	},
	{
		Duration	= MOVE_DURATION,
		From		= {0.0, 0.0},
		To			= {0.0, -0.05},
	},
	{
		Duration	= MOVE_DURATION2,
		From		= {0.0, -0.05},
		To			= {0.0, 1.0 },
	},
}

PopupEnd4 = 
{
	{
		Duration	= 0.2,
	},
	{
		Duration	= MOVE_DURATION,
		From		= {0.0, 0.0},
		To			= {-0.05, 0.0},
	},
	{
		Duration	= MOVE_DURATION2,
		From		= {-0.05, 0.0},
		To			= {1.0, 0.0 },
	},
}

-- Define the ones that are used for basic popup start/end cycles
StartAnimations =
{
	"PopupStart1",
	"PopupStart2",
	"PopupStart3",
	"PopupStart4",
}

EndAnimations = 
{
	"PopupEnd1",
	"PopupEnd2",
	"PopupEnd3",
	"PopupEnd4",
}