Ext.onReady(function(){
	Ext.select('div.faq div.beschreibung',true).setVisibilityMode(Ext.Element.DISPLAY).hide();
	Ext.select('div.faq div.kategorie',true).on('click',function(e,t) {
		var target = Ext.get(t).parent('.kategorie');
	var detail = target.next('.beschreibung');
		var btnFold1 = target.child('.btn_fold_out');
		var btnFold2 = target.child('.btn_fold_in');
		
		if (detail.isVisible()) {
			detail.slideOut('t', {
				easing: 'easeOut',
				duration: 0.5,
				remove: false,
				useDisplay: true
			});
		} else {
			detail.slideIn('t', {
				easing: 'easeOut',
				duration: 0.5
			});
		}
		if (btnFold1 != null)
			btnFold1.set({"class":'btn_fold_in'});
		else
			btnFold2.set({"class":'btn_fold_out'});
	});
});
