var merk="";
CSInit = new Array;
CSNSFix(0);
CSInit[CSInit.length] = new Array(CSNSFix);
CSAg = window.navigator.userAgent;
CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false;
CSDInit=false;
function CSIDOM() {
  if (CSDInit)return;
    CSDInit=true;
    if(document.getElementsByTagName) {
      var n = document.getElementsByTagName('DIV');
  }
}
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0);  }
CSIImg=false;
function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i<document.images.length; i++) { if (!document.images[i].id) document.images[i].id=document.images[i].name; } CSIImg = true;}}
function CSFindElement(n,ly) { if (CSBVers<4) return document[n];
        if (CSIsW3CDOM) {CSInitImgID();return(document.getElementById(n));}
        var curDoc = ly?ly.document:document; var elem = curDoc[n];
        if (!elem) {for (var i=0;i<curDoc.layers.length;i++) {elem=CSFindElement(n,curDoc.layers[i]); if (elem) return elem;}}
        return elem;
}
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      if (changeImages.arguments[i]!=merk) {
        img=CSFindElement(changeImages.arguments[i],0);
        img.src = changeImages.arguments[i+1];
      }
    }
  }
}
function SetMerk(arg) {
  var oldimg="";
  oldimg=merk;
  merk=arg;
  if (oldimg.length>0) changeImages(oldimg,'../pics/btnright/btnrgt_trans.gif');
}
function changeFrame ()
{
parent.frames['navi_left'].location.href="../left5.html";
parent.frames['main'].location.href="../dienstreise.html";
parent.frames['right'].location.href="../right5.html";
}
function changeMenu(){
//argumente:1=zu ändernder Frame,2=Name des Menuunterpunkts,3=SRC des Unterpunkts//

  if(changeMenu.arguments[0]!=" ") {
    c2F("navi_left",changeMenu.arguments[0]);
    merk="";
  }
  changeImages(changeMenu.arguments[1], changeMenu.arguments[2]);
  SetMerk(changeMenu.arguments[1]);
}
function c2F()  {
  for (var i=0; i<c2F.arguments.length; i+=2) {
     parent.frames[c2F.arguments[i]].location.href = c2F.arguments[i+1];
  }
  return false;
}
function SetStyleOver(ebene,over) {
        if (CSIsW3CDOM){
                       	CSIDOM();document.getElementById(ebene).style.overflow=(over==0)?"hidden":"visible";
                       	CSIDOM();document.getElementById(ebene).style.height=(over==0)?"20px":"";
                       }
        else if(IsIE()) {
                         CSIEStyl(ebene).overflow=(over==0)?"hidden":"visible";
                         CSIEStyl(ebene).height=(over==0)?"20px":"";
                        }
        else {
             	CSNSStyl(ebene).overflow=(over==0)?'hide':'show';
             	CSNSStyl(ebene).height=(over==0)?'20px':'';
             }
}
function SetStyleVis(ebene,visi) {
        if (CSIsW3CDOM){CSIDOM();document.getElementById(ebene).style.visibility=(visi==0)?"hidden":"visible";}
        else if(IsIE())CSIEStyl(ebene).visibility=(visi==0)?"hidden":"visible";
        else CSNSStyl(ebene).visibility=(visi==0)?'hide':'show';
}
function newImage(arg) {
        if (document.images) {
                rslt = new Image();
                rslt.src = arg;
                return rslt;
        }
}
function CSFixFct() {
        var d = document; var w = window;
        if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
                d.location = d.location; }
}
function CSNSFix(action) {
        var d = document; var w = window;
        if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
                if (typeof d.cs == 'undefined') {
                        d.cs = new Object;
                        d.cs.csFix = new Object;
                } else if (CSIsFrame (w) == true) CSFixFct();
                d.cs.csFix.w = w.innerWidth;
                d.cs.csFix.h = w.innerHeight;
                window.onresize = CSFixFct;
          }
}
function CSIsFrame (window) {
        var rootWindow = window.parent;
        if (rootWindow == 'undefined') return false;
        for (i = 0; i < rootWindow.frames.length; i++)
                if (window == rootWindow.frames[i]) return true;
        return false;
}
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
        idxArray[i] = i;
CSAction2(CSInit, idxArray);

}
CSInit = new Array;
CSExit = new Array;
CSStopExecution = false;
function CSAction(array) {
  return CSAction2(CSAct, array);
}
function CSAction2(fct, array) {
  var result;
  for (var i=0;i<array.length;i++) {
    if(CSStopExecution) return false;
    var actArray = fct[array[i]];
    if(actArray == null) return false;
    var tempArray = new Array;
    for(var j=1;j<actArray.length;j++) {
      if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
        if(actArray[j][0] == "VAR") {
          tempArray[j] = CSStateArray[actArray[j][1]];
        }
        else {
          if(actArray[j][0] == "ACT") {
            tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
          }
        else
          tempArray[j] = actArray[j];
        }
      }
      else
        tempArray[j] = actArray[j];
    }
    result = actArray[0](tempArray);
  }
  return result;
}
CSAct = new Object;
function CSClickReturn () {
  var bAgent = window.navigator.userAgent;
  var bAppName = window.navigator.appName;
  if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
    return true; // dont follow link
  else return false; // dont follow link
}
function CSButtonReturn () {
        var bAgent = window.navigator.userAgent;
        var bAppName = window.navigator.appName;
        if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
                return false; // follow link
        else return true; // follow link
}
function reference () {
        alert("Diese Funktion ist zur Zeit noch nicht verfügbar!")
}
function reference1 () {
        alert("Informationen zu diesem Thema sind zur Zeit noch nicht verfügbar!")
}
function InitScript() {
  SetStyleVis('Ebene0',0);
  SetStyleVis('Ebene0',1);
}
function organigramm() {
	if(screen.width > 801){
  	parent.main.location.href="index1org.html";
  	}
  	else {
  	parent.main.location.href="index1org_800.html";
  	}
}
function mitarbeiter() {
	if(screen.width > 800){
  	parent.main.location.href="index1mitarb.html";
  	}
  	else {
  	win=window.open ("index1mitarb_800.html","Mitarbeiter","width=670,height=500,screenX=20,screenY=20");
  	}
}

function SetDetailVis(detail,visi) {
        if (CSIsW3CDOM){
                        CSIDOM();
                        document.getElementById(detail).style.visibility=(visi==0)?"hidden":"visible";
                       }
        else if(IsIE()){
                        CSIEStyl(detail).visibility=(visi==0)?"hidden":"visible";
                       }
        else           {
                        alert('Hallo3');
                        CSNSStyl(detail).visibility=(visi==0)?'hide':'show';
                        }
}
function SetDetailOver(detail,over) {
        if (CSIsW3CDOM){
                       	CSIDOM();document.getElementById(detail).style.overflow=(over==0)?"hidden":"visible";
                       	CSIDOM();document.getElementById(detail).style.height=(over==0)?"20px":"";
                       }
        else if(IsIE()) {
                         CSIEStyl(detail).overflow=(over==0)?"hidden":"visible";
                         CSIEStyl(detail).height=(over==0)?"20px":"";
                        }
        else {
             	CSNSStyl(detail).overflow=(over==0)?'hide':'show';
             	CSNSStyl(detail).height=(over==0)?'20px':'';
             }
}
