function showImg(imgName,w,h){
     img_1 = new Image();
     img_1.src = imgName;
     imgTitle = "## Mausklick schließt Fenster";

     x=(screen.width-w)/2;
     y=(screen.height-h)/2;

     parameter = "left=" + x +
                 ",top=" + y +
               ",width=" + w +
              ",height=" + h +
             ",menubar=no,location=no,toolbar=no,status=no,resizable=no,scrollbars=no";

     newWindow = window.open('','', parameter);
     newWindow.document.open();

     newWindow.document.write('<html><head><title>'+imgTitle+'<\/title><\/head><body background="'+img_1.src+'" onBlur="self.close()" onClick="self.close()"><\/body><\/html>')
     newWindow.document.close();
     newWindow.focus();
}

function dat(){
var Heute = new Date();

var aktTag = Heute.getDay();
var   iTag = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
var    Tag = iTag[aktTag];
var  TagNr = ((Heute.getDate()<10) ? "0" : "")+ Heute.getDate();

var aktMonat = Heute.getMonth();
var   iMonat = new Array("01.","02.","03.","04.","05.","06.","07.","08.","09.","10.","11.","12.");
var    Monat = iMonat[aktMonat];

var Jahr = Heute.getYear();
if (Jahr < 2000) Jahr += 1900;

var fdatum =(Tag +", "+ TagNr +"."+ Monat + Jahr);
document.open();
document.write(fdatum);
}


//-----------------------------------------------------------------------------
// Layer utilities.
//-----------------------------------------------------------------------------
function getLayer(name){ return document.getElementById(name); }

function findLayer(name, doc) // is_nav4only function
{
var i, layer;
    for (i = 0; i < doc.layers.length; i++){
         layer = doc.layers[i];
         if (layer.name == name)
         return layer;
         if (layer.document.layers.length > 0)
         if ((layer = findLayer(name, layer.document)) != null)
         return layer;
    }
    return null;
}
//-----------------------------------------------------------------------------
// Layer visibility.
//-----------------------------------------------------------------------------
function reverseDisplay(layer){
	if (layer.style.display == "none") layer.style.display = "block";
	else layer.style.display = "none";
}
function inlineVsBlock(layer){
	if (layer.style.display == "none") layer.style.display = "inline";
	else layer.style.display = "none";
}
function reverseVisibility(layer){
	if (layer.style.visibility == "hidden") layer.style.visibility = "visible";
	else layer.style.visibility = "hidden";
}

function reverseContent(name){
	var content = getLayer(name + '-content');
	var arrowClosed = getLayer(name + '-arrow-closed');
	var arrowOpen = getLayer(name + '-arrow-open');

	if (content.style.display == "none"){
	    content.style.display = "block";
	arrowClosed.style.visibility = "hidden";
	  arrowOpen.style.visibility = "visible";
         }
	else{
 	   content.style.display = "none";
	   arrowClosed.style.visibility = "visible";
	   arrowOpen.style.visibility = "hidden";
	}
}

function reverseFAQ(name){
	var content = getLayer(name + '-answer');
	var closedIcon = getLayer(name + '-closed');
	var openIcon = getLayer(name + '-open');

	if (content.style.display == "none"){
  	    content.style.display = "block";
	    closedIcon.style.display = "none";
	    openIcon.style.display = "inline";
	}
	else{
	    content.style.display = "none";
	    closedIcon.style.display = "inline";
	    openIcon.style.display = "none";
	}
}

function Foto(img){
  foto1= new Image();
  foto1.src=(img);
  check(img);
}
function check(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    func="check('"+img+"')";
    interval=setTimeout(func,20);
  }
}
function viewFoto(img){
  w = foto1.width+0;
  h = foto1.height+0;
  imgTitle = "## Mausklick schließt Fenster";
  x = screen.width / 2 - w / 2;
  y = screen.height / 2 - h / 2 - 20;

   parameter = "left=" + x +
               ",top=" + y +
             ",width=" + w +
            ",height=" + h +
           ",menubar=no,location=no,toolbar=no,status=no,resizable=no,scrollbars=no";

  newWindow = window.open('','', parameter);
  newWindow.document.open();
  newWindow.document.write('<html><head><title>'+imgTitle+'<\/title><\/head><body background="'+img+'" onBlur="self.close()" onClick="self.close()"><\/body><\/html>')
  newWindow.document.close();
  newWindow.focus();
}
