
if( $(location).attr("hash") )
{
	for( i = 0; i < $('.kl').length; i++ )
	{
		if( $('.kl')[ i ].id.search( $(location).attr("hash").substring( 1 ) ) != -1 )
		{
			accopen = i;
			break;
		}
		
		if( $('.kl')[ i ].id.search( ';' + $(location).attr("hash").substring( 1 ) ) != -1 )
		{
			accopen = i;
			break;
		}
	}
}

if( typeof accopen == 'undefined' ) accopen = -1;

ddaccordion.init({
	headerclass: "klappeTitel", //Shared CSS class name of headers group
	contentclass: "klappeInhalt", //Shared CSS class name of contents group
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
	defaultexpanded: [accopen], //index of content(s) open by default [index1, index2, etc]
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: false, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "<img src='fileadmin/img/klappe-auf.gif' class='pf' /> ", "<img src='fileadmin/img/klappe-zu.gif' class='pf' /> "], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast" //speed of animation: "fast", "normal", or "slow"
})
