
function hide(elem) {
	$('div.second-menu li a').each(function() {
		if (this != elem) {
			$('#'+$(this).attr('href').substring(1)+'').hide();
		}
	});
}
function mehr(elem, t) {
	$('#'+elem).show();
	$(t).hide();
	return false;
}
function weniger(elem, t) {
	$('#'+elem).hide();
	$(t).hide();
	return false;
}

function init() {
	var first = true;
	$('div.second-menu li a').each(function() {
		if (!first) {
			$('#'+$(this).attr('href').substring(1)+'').hide();
		}
		first = false;
		$(this).click(function() {
			el = this;
			$('#'+$(this).attr('href').substring(1)+'').show();
			hide(el);return false
		});
	});
	$('div.more').each(function() {
		$(this).hide();
	});
	
	// anchor öffnen
	if (location.href.indexOf('#') != -1) {
		var anchor = location.href.split('#')[1];
		hide($('#'+anchor));
		$('#'+anchor).show();
	}
}

$(document).ready(init);
