var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'dependent=yes,toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function toggleshow( oid ) {
	document.getElementById( 'crew' ).style.visibility = 'hidden';
	document.getElementById( 'dank' ).style.visibility = 'hidden';
	document.getElementById( 'logo' ).style.visibility = 'hidden';
	document.getElementById( 'info' ).style.visibility = 'hidden';
	document.getElementById( 'wo' ).style.visibility = 'hidden';
	document.getElementById( 'sponsoren' ).style.visibility = 'hidden';
	document.getElementById( oid ).style.visibility = 'visible';
}

function togglehide( oid ) {
	document.getElementById( oid ).style.visibility = 'hidden';
}

function togglelyrics( oid ) {
	document.getElementById( "lyrics1" ).style.visibility = 'hidden';
	document.getElementById( "lyrics2" ).style.visibility = 'hidden';
	document.getElementById( "lyrics3" ).style.visibility = 'hidden';
	document.getElementById( "lyrics4" ).style.visibility = 'hidden';
	document.getElementById( "lyrics0" ).style.visibility = 'hidden';
	document.getElementById( "lyrics" + oid ).style.visibility = 'visible';
	if(oid == 0) {
		document.getElementById( "seiten" ).style.visibility = 'hidden';
	} else {
		document.getElementById( "seiten" ).style.visibility = 'visible';
	}
	InitialiseScrollableArea();
}

function Fensterweite()
{
	if (window.innerWidth) return window.innerWidth;
	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	else return 0;
}

function Fensterhoehe()
{
	if (window.innerHeight) return window.innerHeight;
	else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
	else return 0;
}


function neuAufbau()
{
	if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
	window.history.go(0);
}

/*Überwachung von Netscape initialisieren*/
if(!window.Weite && window.innerWidth)
{
	window.onresize = neuAufbau;
	Weite = Fensterweite();
	Hoehe = Fensterhoehe();
}
