
aktiv = "";
array_div_id = new Array();
array_tab_id = new Array();

function menue_links_over(bild,farbe,menueid)
{
//array_tab_id
 	var akt_tabid = menueid;
	anz = array_tab_id.length;
	//alert(anz);
 	for (i=0; i < anz ;i++)
 	{
		//alle ausblenden bis auf den angeklickten menuepunkt
 		if(array_div_id[i] != menueid)
 		{
		//document.getElementById('tab_id_'+array_tab_id[i]).style.backgroundColor = '';
			document.getElementById('lik_id_'+array_div_id[i]).style.color= '#FCF4E4';
			document.getElementById('div_id_'+array_div_id[i]).style.backgroundColor = '';
		//	document.getElementById('lik_id_'+array_tab_id[i]).style.color= '#FCF4E4';

			m_out('mov_'+array_div_id[i]);
		}
		else
		{
			//document.getElementById('tab_id_'+array_tab_id[i]).style.backgroundColor = '#FCF4E4';
			document.getElementById('lik_id_'+array_div_id[i]).style.color= farbe;
			document.getElementById('div_id_'+array_div_id[i]).style.backgroundColor = '#FCF4E4';


		  document.getElementById('mov_'+array_div_id[i]).style.visibility= 'visible';

		}
 	}






 //	document.getElementById('mp_6').style.backgroundColor = "#FCF4E4";
}

function m_resetall()
{
	anz = array_div_id.length;
	for (i=0; i < anz ;i++)
 	{
 		m_out("mov_"+array_div_id[i]);
 	}

}

function m_out(id)
{
	document.getElementById(id).style.visibility= 'hidden';
}

function menue_links_reset(bild,farbe,menueid)
{
	anz = array_tab_id.length;
	//alert(anz);
 	for (i=0; i < anz ;i++)
 	{

			document.getElementById('lik_id_'+array_div_id[i]).style.color= '#FCF4E4';
			document.getElementById('div_id_'+array_div_id[i]).style.backgroundColor = '';

	}
}

function m_over(funktion,wert,id)
{
	if(funktion == "mpover")
	{
		document.getElementById('mt1id_'+id).style.backgroundColor= '#FCF4E4';
		document.getElementById('m1id_'+id).style.color= wert;
	}

	if(funktion == "mpout")
	{

		document.getElementById('mt1id_'+id).style.backgroundColor= wert;
		document.getElementById('m1id_'+id).style.color= '#FCF4E4';
		/*
		if(wert == "menue1")
		{
			document.getElementById('mt1id_'+id).style.backgroundColor= wert;
		}
		else
		{
			document.getElementById('mt1id_'+id).style.backgroundColor= '#E10019';
		}
		document.getElementById('m1id_'+id).className= wert;
		*/
	}
}

function bgwechsel(mp,farbe,id)
{
	hgbild= "url(./bilder/r"+mp+")";
	//alert(mp+farbe+id+hgbild);
	document.getElementById('head1').style.backgroundColor	=farbe;
	document.getElementById('head2').style.backgroundImage=hgbild;
	document.getElementById('head3').style.backgroundColor	=farbe;
	//document.getElementById('head4').style.backgroundColor=farbe;
	//document.getElementById('head5').style.backgroundColor=farbe;
	document.getElementById('head6').style.backgroundColor	=farbe;
	document.getElementById('head7').style.backgroundImage=hgbild;
	document.getElementById('head8').style.backgroundImage=hgbild;
	document.getElementById('div_'+id).style.display='inline';
 	//document.getElementById(div_+id).style.display='none';
 	var akt_divid = id;
	anz = array_div_id.length;
	//alert(anz);
 	for (i=0; i < anz ;i++)
 	{
		//alle ausblenden bis auf den angeklickten menuepunkt
 		if(array_div_id[i] != id)
 		{
			document.getElementById('div_'+array_div_id[i]).style.display='none';
		}
 	}
}
//auf den aktuellen menuepunkt schalten
function resetaktmen()
{
	aktiv = window.setTimeout("akt_men()", 5000);
}
