var CSlide=new Class(
{
	elem: false,
	slided: false,
	init: function(elem)
	{
		this.elem=elem;
		var curHeight=tool.getStyleProp(elem, 'height');
		if(tool.ie || curHeight=='auto')
		{
			elem.style['display']='';
			curHeight=elem.offsetHeight;
		}
		elem.style['height']='0px';
		this.fx=new TFx(elem);
		this.fx.fps=25;
		this.fx.setActions(
		{
			'show': {'height': [false, curHeight, [TFx.style.pow,[0.5]]]},
			'hide': {'height': [false, 0, [TFx.style.pow,[0.5]]]}
		});
	},
	toggle: function()
	{
		this.fx.stop();
		if(!this.slided)
		{
			this.elem.style['display']='';
			this.fx.start(1000, 'show');
			this.slided=true;
		}
		else
		{
			this.fx.start(1000, 'hide');
			this.slided=false;
		}
	}
});
