$(document).ready(function () {
	$('div.fce-flipflop').each(function () {
		var _ground = this;
		var content = $('.content', this);
		var height = content.height();
		var whitebox = jQuery('<div class="whitebox"></div>').appendTo(content);
		content.css('height', '0');
		whitebox.css('height', height);
		$('.short a', this).click(function() {
			var cur = $(this);
			if (cur.text() == 'Weiterlesen...' ) {
				cur.text('Schliessen');
				content.animate({
					height: height
				}, "slow");
				whitebox.animate({
					opacity: 0.0
				}, "slow");
			} else {
				cur.text('Weiterlesen...');
				content.animate({
					height: 0
				}, "slow");
				whitebox.animate({
					opacity: 1.0
				}, "slow");
			}
			return false;
		});

	/*	$(this).mouseleave(function() {
			$('.short a', _ground).text('Weiterlesen...');
			content.animate({
				height: 0
			}, "slow");
			whitebox.animate({
				opacity: 1.0
			}, "slow");
		}); */
	});
});