function getobj(obj)
{
// unterscheidet nach: .all or .getElementById und gibt adaequates obj zur�ck
	if (document.all)  //wenn document.all script existiert (IE)
		{
		return document.all(obj)
		}

	if (document.getElementById)  //wenn document.getElementById existiert (NS & co)
		{
		return document.getElementById(obj)
		}
}

function ausschalten(layername)
	{
//document.getElementById('layername').style.visibility='hidden'
	currentobj = getobj(layername)  //currentobj = getobj = document.getElementByID(obj) or document.all(obj)
	currentobj.style.visibility = 'hidden'
	}

function anschalten(layername)
	{
	currentobj = getobj(layername)
	currentobj.style.visibility = 'visible'
	}

function AlleAus()
{
	ausschalten('popup01')
  ausschalten('popup02')
	ausschalten('popup03')
  ausschalten('popup04')
	ausschalten('popup05')
	ausschalten('popup06')
  ausschalten('ausblenden')
  ausschalten('fix')
}

function popup01An() {
  anschalten('fix')
	anschalten('popup01')
	anschalten('ausblenden')
}

function popup02An() {
  anschalten('fix')
  anschalten('popup02')
	anschalten('ausblenden')
}

function popup03An() {
  anschalten('fix')
  anschalten('popup03')
	anschalten('ausblenden')
}

function popup04An() {
  anschalten('fix')
  anschalten('popup04')
	anschalten('ausblenden')
}

function popup05An() {
  anschalten('fix')
  anschalten('popup05')
	anschalten('ausblenden')
}

function popup06An() {
  anschalten('fix')
  anschalten('popup06')
	anschalten('ausblenden')
}


// Funktion fuer Lexikon-PopUp:
var win=null;
function popup(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}


// Funktion blendet Flash-Intersticial aus
function HideMyLayer(LayerObject){
    if(!!LayerObject) LayerObject.visibility='hidden'
}
  function getMyLayer(layerName){
    if(document.getElementById)
      return document.getElementById(layerName).style
    else if(document.all)
      return document.all(layerName).style
    else if(document.layers)
      return document.layers[layerName]
  }