BaseKit.Widget.CoreExpander = BaseKit.Widget.Base.extend(
{
	open: function()
	{
		switch (this.animation.toLowerCase())
		{
		case 'slide':
			Effect.SlideDown(this.getID(), {duration: this.duration, queue: 'end'});
			break;

		case 'blind':
			Effect.BlindDown(this.getID(), {duration: this.duration, queue: 'end'});
			break;

		default:
			Element.show(this.getID());
			break;
		}
	},

	close: function()
	{
		switch (this.animation.toLowerCase())
		{
		case 'slide':
			Effect.SlideUp(this.getID(), {duration: this.duration, queue: 'end'});
			break;

		case 'blind':
			Effect.BlindUp(this.getID(), {duration: this.duration, queue: 'end'});
			break;

		default:
			Element.hide(this.getID());
			break;
		}
	}
});

