var opened = false;

var h = $j( '.teaser-text' ).height();
$j( '.teaser-text' ).css({ display: 'block', height: '0', overflow: 'hidden', fontSize: '0' });

$j( '#open-link' ).click(
	function()
	{
		toggleText();
		return false;
	}
);


function toggleText()
{
	if( opened )
	{
		$j( '.start-text' ).removeClass( 'opened' );
		$j( '.teaser-text' ).animate(
			{ height: '0' },
			1000,
			function()
			{
				$j( '.teaser-text' ).css({ fontSize: '0' });
				$j( '.start-text' ).addClass( 'closed' );
			}
		);
		
		opened = false;
	}
	else
	{
		$j( '.teaser-text' ).css({ fontSize: '11px' });
		$j( '.start-text' ).removeClass( 'closed' );
		
		$j( '.teaser-text' ).animate(
			{ height: h+'px' },
			1000,
			function()
			{
				$j( '.start-text' ).addClass( 'opened' );
			}
		);
		
		opened = true;
	}
}