ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='res/plus.gif' class='statusicon' alt='Expand' />", "<img src='res/minus.gif' class='statusicon' alt='Collapse' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "slow", //speed of animation: "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})

// JavaScript Document
/* JAVASCRIPT CODE TO TOGGLE THE BACKGROUND FOR THE SUB MENUS BY SS ON 09-Feb-2009 */
	function changeBG(e)
	{
		var i=0;
		for (i=0;i < document.getElementsByTagName('A').length;i++)
		{
			if(document.getElementsByTagName('A')[i].style.background !="")
				document.getElementsByTagName('A')[i].style.background ='';
		}
		e.style.background="url(res/dot_selected.png) right no-repeat";	
		
	}
/* END OF THE CODE */
/* CODE TO CHAGNE THE BACKGROUND IMAGE */
	pic = new Image(); 
	pic.src = "res/vis_mainbg.jpg";
	
	pic1 = new Image();
	pic1.src = "res/vis_mainbg_omoss.jpg";
	
	pic2 = new Image();
	pic2.src = "res/vis_mainbg_vis.jpg";
	
	pic3 = new Image();
	pic3.src = "res/vis_mainbg_mua.jpg";
	
	pic4 = new Image();
	pic4.src = "res/vis_mainbg_aktuelt.jpg";
	
	pic5 = new Image();
	pic5.src = "res/vis_mainbg_kontakt.jpg";
	
	pic6 = new Image(); 
	pic6.src = "res/vis_mainbg.jpg";	

/* END OF THE CODE */

function funcIFBG()
{
document.body.background=eval("pic.src");
document.getElementById("MainFrame").allowTransparency = true;
}
function redirectTo(val)
{
		document.getElementById("MainFrame").src=val;
	var i=0;
	for (i=0;i < document.getElementsByTagName('A').length;i++)
	{
		if(document.getElementsByTagName('A')[i].style.background !="")
			document.getElementsByTagName('A')[i].style.background ='';
	}
}

function changeMainBG(imgName)
{
	document.body.background = eval(imgName + ".src");
	
	if(imgName == 'pic1')
		document.body.style.backgroundColor="#000000";
	if(imgName == 'pic2')
		document.body.style.backgroundColor="#000000";
	if(imgName == 'pic3')
		document.body.style.backgroundColor="#000000";
	if(imgName == 'pic4')
		document.body.style.backgroundColor="#000000";
	if(imgName == 'pic5')
		document.body.style.backgroundColor="#000000";
	if(imgName == 'pic6')
		document.body.style.backgroundColor="#000000";
}
