
 //window.onload=initNews;

// Formular-Buttons Rollover

function butover(x)
	{
//document.getElementById(x).style.color = '#ffffff';
document.getElementById(x).className = 'submit_hover';

	}
	
function butout(x)
	{
 //document.getElementById(x).style.color = '#666666';

document.getElementById(x).className = 'submit';

	}

function butoverback(x)
	{

//document.getElementById(x).style.color = '#ffffff';
document.getElementById(x).className = 'submit_back_hover';

	}
	
function butoutback(x)
	{
 //document.getElementById(x).style.color = '#666666';

document.getElementById(x).className = 'submit_back';

	}



function showBild(x)
{
	var bilder = xGetElementsByClassName('bild');
	
	
	for (i = 0; i < bilder.length; i++) {
	var divname= 'bild'+i;
	
	if(document.getElementById(divname)){
	document.getElementById(divname).style.display= 'none';
	}
	
	var divnametext= 'bild'+i+'text';
	if (document.getElementById(divnametext)){
	document.getElementById(divnametext).style.display= 'none';
	}
	
	var divnamelinks= 'bild'+i+'links';
	if (document.getElementById(divnamelinks)){
	document.getElementById(divnamelinks).style.display= 'none';
	}
	
	var divnameslideshow= 'bild'+i+'slideshow';
	if (document.getElementById(divnameslideshow)){
	document.getElementById(divnameslideshow).style.display= 'none';
	}
	
	
	}
	
	
	document.getElementById(x).style.display= 'block';
	
	var divtext= x+'text';
	if (document.getElementById(divtext)){
	document.getElementById(divtext).style.display= 'block';
	}
	
	//alert (divtext);
	
	var divlinks= x+'links';
	if(document.getElementById(divlinks)){
	document.getElementById(divlinks).style.display= 'block';
	}
	
	var divslideshow= x+'slideshow';
	if (document.getElementById(divslideshow)){
	document.getElementById(divslideshow).style.display= 'none';
	}
	
	
	
	if(document.getElementById('slidestart')){
	document.getElementById('slidestart').style.display= 'inline';
	}
	


}


function showSlides(x)
{
	var slideshows = xGetElementsByClassName('bildslides');
	
	for (i = 0; i < slideshows.length; i++) {
	
	var divnameslides= 'bild'+i+'slideshow';
	if (document.getElementById(divnameslides)){
	document.getElementById(divnameslides).style.display= 'none';
	}
	var divname= 'bild'+i;
	if (document.getElementById(divname)){
	document.getElementById(divname).style.display= 'none';
	}
	
	var divnametext= 'bild'+i+'text';
	if (document.getElementById(divnametext)){
	document.getElementById(divnametext).style.display= 'none';
	}
	
	var divnamelinks= 'bild'+i+'links';
	if(document.getElementById(divnamelinks)){
	document.getElementById(divnamelinks).style.display= 'none';
	}
	
	//var divnameslidestart= 'bild'+i+'slidestart';
	//if(document.getElementById(divnameslidestart)){
	//document.getElementById(divnameslidestart).style.display= 'none';
	//}
	
	
	}
	
	
	
	var divlides= x+'slideshow';
	//alert (divlides);
	if (document.getElementById(divlides)){
	document.getElementById(divlides).style.display= 'block';
	}
	
	var divtext= x+'text';
	if (document.getElementById(divtext)){
	document.getElementById(divtext).style.display= 'block';
	}
	//alert (divtext);
	
	var divlinks= x+'links';
	if (document.getElementById(divlinks)){
	document.getElementById(divlinks).style.display= 'block';
	}
	
	if(document.getElementById(x)){
	document.getElementById(x).style.display= 'none';
	}
	
	if(document.getElementById('slidestart')){
	document.getElementById('slidestart').style.display= 'none';
	}


}


var ioWindow;

function openWindow(url,x,y)
	{
	if (ioWindow) {if (!ioWindow.closed) ioWindow.close()}
	//t=30;
	//u=30;

	h=screen.availHeight-30;
	w=screen.availWidth-30;
	t=(h-y)/2; if (t<0) t=0;
	u=(w-x)/2; if (w<0) w=0;

	ioWindow = window.open(url,"popup",'width='+x+',height='+y+',left='+u+',top='+t+',scrollbars=no');
	ioWindow.focus();
	}


function nix(x)
	{
	if(x.blur)x.blur();
	}
	



function menu1 () {

if (document.getElementById('menu1')){
document.getElementById('menu1').style.display = 'block';
}
}

function menu2text () {
if (document.getElementById('menu2')){
document.getElementById('menu2').style.display = 'block';
}
if (document.getElementById('standardtext')){
document.getElementById('standardtext').style.display = 'block';
}
}

function menu2 () {
if ( document.getElementById('menu2')){
document.getElementById('menu2').style.display = 'block';
}
}

function menu3 () {
if ( document.getElementById('menu3')){
document.getElementById('menu3').style.display = 'block';
}
if ( document.getElementById('bild0text')){
document.getElementById('bild0text').style.display = 'block';
}
}


function standardtext () {
if (document.getElementById('standardtext')){
document.getElementById('standardtext').style.display = 'block';
}
if ( document.getElementById('bild0text')){
document.getElementById('bild0text').style.display = 'block';
}
}
