var jbr_acc = function(cfg) {
		
		var that = this;
		
		var header_ue = [];
		
		this.main_sel = cfg.main_sel || '#Stationsliste';
		this.header_sel = cfg.header_sel || '.header-ue';
		this.content_sel = cfg.content_sel || '.content-ue';
		this.selected_class = cfg.selected_class || 'selected-ue';
		this.active = (cfg.active === 0) ? false : (cfg.active || 1);
		this.hideOthers = (cfg.hideOthersOnClick === false) ? false : true;
		this.speed = cfg.speed || 'slow';
		
		this.init = function() {
			$(this.main_sel+" "+this.header_sel).each(function(i, node){
					var tmp_i = i+1;
					if (tmp_i !== that.active && $.inArray(tmp_i, that.active) === -1) {
						$(node).next(that.content_sel).hide();
					} else {
						$(node).addClass(that.selected_class);
					}
                    header_ue.push(node);
					$(node).click(function(evt){
					  that.getSlide(evt.target);
					});
			});
		};
		
		this.getSlide = function(trg) {
			$.each(header_ue, function(index, item) {
				var it = $(item);
	    		if (item == trg) {
					
					if (it.hasClass(that.selected_class) && that.hideOthers !== true)  {
						it.next(that.content_sel).slideUp(that.speed);
						it.removeClass(that.selected_class);
					} else {
						it.next(that.content_sel).slideDown(that.speed); 
						it.addClass(that.selected_class);	
					}
					
	    		} else {
					if (that.hideOthers === true) {
						it.next(that.content_sel).slideUp(that.speed);
						it.removeClass(that.selected_class);
					}
				}
  		});
		}
		
		this.init();
};