jQuery(function($) {
	$('body').addClass('js');
	$('body.foldable div.box').each(function() {
		var box = this;
		$(box).addClass('folded').find('div.content').children().hide().end().end().find('h3').click(function() {
			$(box).toggleClass('folded').find('div.content').children().slideToggle('normal');
		});
	});
	if (images && images.length > 0) {
		$('img.head').click(function(head) {
			$.slimbox(images, 0, {
				loop : true,
				overlayOpacity : 0.5,
				counterText : "Bild {x} von {y}"
			});
		});
	}
});
