// checkt ob document in frames liegt, falls ja, dann variable gleich true
		
  var bol_frames = (self.parent.frames.length != 0)

// ckeckt den browser...
  if (navigator.appName == "Microsoft Internet Explorer") Browser= 'IE';
  if (navigator.appName == "Netscape") Browser= 'NS';
  version= parseFloat(navigator.appVersion);

  IE4up = (Browser=='IE' && version >= 4)
  NS4up = (Browser=='NS' && version >= 4)
  ver4 = (IE4up || NS4up)

	
// hier positionierung ohne frames
  if (!bol_frames) {
    if (ver4) {

      with (document) {      
        writeln("<STYLE TYPE='text/css'>");        
 	if (NS4up) {
	  writeln(".parent {position:absolute; " + ns_noframes + " visibility:hidden}");
	  writeln(".child {position:absolute; " + ns_noframes + " visibility:hidden}");
	  writeln(".regular {position:absolute; " + ns_noframes + " visibility:hidden}")
	}
	else {
	  writeln(".iepos {position:absolute; " + ie_noframes + " width:195px; height:13px; z-index:4; visibility:visible}");
	  writeln(".child {display:none}")
	}
        writeln("</STYLE>");
      }
    }
  }
	
// hier positionierung mit frames
 if (bol_frames) {
   if (ver4) {
     with (document) {
       writeln("<STYLE TYPE='text/css'>");
       if (NS4up) {
         writeln(".parent {position:absolute;" + ns_frames + "visibility:hidden}");
         writeln(".child {position:absolute;" + ns_frames + "visibility:hidden}");
         writeln(".regular {position:absolute;" + ns_frames + "visibility:hidden}")
       }
       else {
	 writeln(".iepos {position:absolute;" + ie_frames + "width:155px; height:13px; z-index:4; visibility:visible");
         writeln(".child {display:none}")
       }
       writeln("</STYLE>");
     }
   }
 }

function getIndex(el) {
    ind = null;
    for (i=0; i<document.layers.length; i++) {
        whichEl = document.layers[i];
        if (whichEl.id == el) {
            ind = i;
            break;
        }
    }
    return ind;
}

function arrange() {
        nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
        for (i=firstInd+1; i<document.layers.length; i++) {
                whichEl = document.layers[i];
                if ((whichEl.visibility != "hide") && (whichEl.id != "footer")) {
                        whichEl.pageY = nextY;
                        nextY += whichEl.document.height;
                }
        }return;
}
// 1.
function initIt(){
    if (!ver4) return;
    if (NS4up) {
        for (i=0; i<document.layers.length; i++) {
            whichEl = document.layers[i];
            if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
        }
        arrange();
		if (ichBinAuf!='zu')
		expandIt(ichBinAuf)
    }
    else {
        divColl = document.all.tags("DIV");
        for (i=0; i<divColl.length; i++) {
            whichEl = divColl(i);
            if (whichEl.className == "child") whichEl.style.display = "none";
        }
		if (ichBinAuf!='zu')
		expandIt(ichBinAuf);
    }
	
}


function expandIt(el) {
  if (!ver4) return;
  if (ichBinAuf == 'zu') {
  } else {
    if (ichBinAuf == el) {
    } else {
      if (IE4up) {
        expandIE(ichBinAuf)
      } else {
        expandNS(ichBinAuf)
      }
    };
  }

  if (IE4up) {
    expandIE(el)
  } else {
    expandNS(el)
  };
}

function expandIE(el) {
  whichEl = eval(el + "Child");
  if (whichEl.style.display == "none") {
    whichEl.style.display = "block";
    if (ichBinAuf == el) {
      ichBinAuf = 'zu'
    } else {
      ichBinAuf = (el)
    };
  } else {
    whichEl.style.display = "none";
    if (ichBinAuf == el) {
      ichBinAuf = 'zu'
    } else {
      ichBinAuf = (el)
    };
  }
}

function expandNS(el) {
  whichEl = eval("document." + el + "Child");

  if (whichEl.visibility == "hide") {
    whichEl.visibility = "show";
    if (ichBinAuf == el) {
      ichBinAuf = 'zu'
    } else {
      ichBinAuf = (el)
    };
  } else {
    whichEl.visibility = "hide";
    if (ichBinAuf == el) {
      ichBinAuf = 'zu'
    } else {
      ichBinAuf = (el)
    };
  }
  arrange();
}

function showAll() {
    for (i=firstInd; i<document.layers.length; i++) {
        whichEl = document.layers[i];
        whichEl.visibility = "show";
    }
}


onload = initIt;

