
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function feldover(feld) 
{
document.forms[0].elements[feld].focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// Funktion fuer das Sprungmenue der Startseite
function start(x) {

	if(x == "no_link") {
		document.forms[0].reset();
		document.forms[0].elements[0].blur();
		return;
 	}
	//else if(x == "end")
	//top.location.href = parent.frames[1].location;
	else {
		location.href = x;
		document.forms[0].reset();
		document.forms[0].elements[0].blur();
	}
}

// Funktion fuer den Bilder(Pfeil)tausch in templates/static.htm

function bildertausch(bildname,tauschbild)
{
document.images[bildname].src=tauschbild;
}

// Funktion fuer das zeitabhaengige Ausblenden der Layer in templates/static.htm

var slowhide_wir;
//var slowhide_aktuell;
var slowhide_archiv;
var slowhide_service;
var slowhide_standorte;
var slowhide_betreuungsgebiete;
var slowhide_mitarbeiter;
var slowhide_auskunft;
var slowhide_personen;
var slowhide_sonstige;

function init_slowhide_wir() { slowhide_wir = setTimeout('hide_wir()',4500); }
//function init_slowhide_aktuell() { slowhide_aktuell = setTimeout('hide_aktuell()',4500); }
function init_slowhide_archiv() { slowhide_archiv = setTimeout('hide_archiv()',4500); }
function init_slowhide_service() { slowhide_service = setTimeout('hide_service()',4500); }
function init_slowhide_standorte() { slowhide_standorte = setTimeout('hide_standorte()',4500); }
function init_slowhide_betreuungsgebiete() { slowhide_betreuungsgebiete = setTimeout('hide_betreuungsgebiete()',4500); }
function init_slowhide_mitarbeiter() { slowhide_mitarbeiter = setTimeout('hide_mitarbeiter()',4500); }
function init_slowhide_auskunft() { slowhide_auskunft = setTimeout('hide_auskunft()',7000); }
function init_slowhide_personen() { slowhide_personen = setTimeout('hide_personen()',4500); }
function init_slowhide_sonstige() { slowhide_sonstige = setTimeout('hide_sonstige()',4500); }

var timeout_hide_wir;
//var timeout_hide_aktuell;
var timeout_hide_archiv;
var timeout_hide_service;
var timeout_hide_standorte;
var timeout_hide_betreuungsgebiete;
var timeout_hide_mitarbeiter;
var timeout_hide_auskunft;
var timeout_hide_personen;
var timeout_hide_sonstige;

function init_hide_wir() { timeout_hide_wir = setTimeout('hide_wir()',2500); }
//function init_hide_aktuell() { timeout_hide_aktuell = setTimeout('hide_aktuell()',2500); }
function init_hide_archiv() { timeout_hide_archiv= setTimeout('hide_archiv()',2500); }
function init_hide_service() { timeout_hide_service= setTimeout('hide_service()',2500); }
function init_hide_standorte() { timeout_hide_standorte= setTimeout('hide_standorte()',2500); }
function init_hide_betreuungsgebiete() { timeout_hide_betreuungsgebiete= setTimeout('hide_betreuungsgebiete()',2500); }
function init_hide_mitarbeiter() { timeout_hide_mitarbeiter= setTimeout('hide_mitarbeiter()',2500); }
function init_hide_auskunft() { timeout_hide_auskunft= setTimeout('hide_auskunft()',2500); }
function init_hide_personen() { timeout_hide_personen= setTimeout('hide_personen()',2500); }
function init_hide_sonstige() { timeout_hide_sonstige= setTimeout('hide_sonstige()',2500); }

function hide_wir() { MM_showHideLayers('wir','','hide'); }
//function hide_aktuell() { MM_showHideLayers('aktuell','','hide'); }
function hide_archiv() { MM_showHideLayers('archiv','','hide'); }
function hide_service() { MM_showHideLayers('service','','hide'); }
function hide_standorte() { MM_showHideLayers('standorte','','hide'); }
function hide_betreuungsgebiete() { MM_showHideLayers('betreuungsgebiete','','hide'); }
function hide_mitarbeiter() { MM_showHideLayers('mitarbeiter','','hide'); }
function hide_auskunft() { MM_showHideLayers('auskunft','','hide'); }
function hide_personen() { MM_showHideLayers('personen','','hide'); }
function hide_sonstige() { MM_showHideLayers('sonstige','','hide'); }