
actText = 0;

/* Hier kommen alle Funktionsaufrufe rein, die bei onLoad aufgerufen werden sollen */
function initFunc()
{
	initJumpNav();	
}

function activateJumpNav(objekt, oname)
{
	$("#nav-box-bg ul.aktiv li").removeClass("aktiv");
	$(objekt).addClass("aktiv");
	actText = oname;
	hideTexts();
}

function hideTexts()
{
	$("p", $("#right-box div a.anker").parent()).each(function() {
		if ( $("a", $(this).parent()).attr("id") != actText )
		{
			$(this).slideUp(500);
//			$(this).fadeOut(500);
		}
		else
		{
			$("p", $("#"+actText).parent()).slideDown(500);
//			$("p", $("#"+actText).parent()).fadeIn(500);			
		}
	});
}

function initJumpNav()
{
	url = window.location.href;
	pos = url.search(/#/);	
	if(pos > -1)
	{	
		pos += 1;
		jumper = url.substring(pos, url.length);
		actText = jumper;
		hideTexts();
	}
}

