<!--
// javascript source code
// (c) 2002 marcus wilhelm - programat4
// mailto:info@programat4.de
// all responsibility for use remains with the user

function initText() {

  var currentAnchor = 0;
  var textAnchors = 0;
  picsPosition = 0;
  var textAnchorsNames = new Array;
  var textAnchorsLength = new Array;
  var currentAnchorPosition = new Array;
  currentAnchorPosition[0] = 0;
  if (document.layers) {
    var page = eval(document.text);
    //page.clip.right = 450; änderung wg. architekturprogramm. verifizieren!
    page.clip.bottom = 400;
    var allAnchors = document.text.document.anchors;
  } else if (document.getElementById) {
    var page = eval("document.getElementById('text').style");
    var pageFrame= eval("document.getElementById('textrahmen').style");
    pageFrame.left = page.left;
    pageFrame.top = page.top;
    page.left = 0;
    page.top = 0;
    var allAnchors = document.anchors;
  } else if (document.all) {
    var page = eval(document.all.text.style);
    var pageFrame = eval(document.all.textrahmen.style);
    pageFrame.left = page.left;
    pageFrame.top = page.top;
    page.left = 0;
    page.top = 0;
    var allAnchors = document.all.text.document.anchors;
  }
  while (currentAnchor < allAnchors.length) {
    if (allAnchors[currentAnchor].name.toLowerCase().charAt(0) == 'a' && parseInt(allAnchors[currentAnchor].name.slice(2,5),10) != NaN) {
      textAnchors ++;
      textAnchorsNames[textAnchors] = allAnchors[currentAnchor].name.slice(6);
      textAnchorsLength[textAnchors] = parseInt(allAnchors[currentAnchor].name.slice(2,5),10);
      currentAnchorPosition[textAnchors] = currentAnchorPosition[textAnchors-1] + textAnchorsLength[textAnchors];
      if (allAnchors[currentAnchor].name.charAt(1) == 'p') {
        picsPosition = currentAnchorPosition[textAnchors-1];
      }
    }
    currentAnchor ++;
  }
  textLength = currentAnchorPosition[textAnchors] - 400;
  howManyTextAnchors = textAnchors;
  // alert(textLength);

if ( (is_nav4up || is_ie4up) && !(is_mac && is_ie5) ) { // begin browser exclusion

  var jumptextString1 = new String();
  var jumptextString2 = new String();
  var jumptextString3 = new String();

  if (textLength > 0) { // &&  textAnchors > 0
    var jumptextString1 = '<table width="450" border="0" cellspacing="0" cellpadding="0"><tr bgcolor="#999999"><td colspan="3"><img src="../grafik/void1.gif" width="440" height="1"></td></tr><tr valign="top"><td height="49" width="1" bgcolor="#999999"><img src="../grafik/void1.gif" width="1" height="49"></td><td height="49" width="39"><table width="20" border="0" cellspacing="0" cellpadding="2"><tr><td height="20" valign="top"><a href="#" onMouseOver="displayText(\'then\',\'[ scroll up ]\');verScroll(\'up\',5,true)" onMouseOut="resetThen();stopScroll()"><img src="../grafik/icons/up1.gif" width="24" height="16" vspace="2" border="0"></a></td></tr><tr><td height="20" valign="bottom"><a href="#" onMouseOver="displayText(\'then\',\'[ scroll down ]\');verScroll(\'dn\',5,true)" onMouseOut="resetThen();stopScroll()"><img src="../grafik/icons/down1.gif" width="24" height="16" vspace="2" border="0"></a></td></tr></table></td><td height="49" width="410"><table width="100%" border="0" cellspacing="0" cellpadding="3"><tr><td class="flatt1">';
    if (howManyTextAnchors == 1) {
      jumptextString1 += '&nbsp;';
    } else if (howManyTextAnchors > 1) {
      jumptextString1 += '<b>[ jumpto: ]</b> ';
      var countAnchors = 1;
      while (countAnchors < howManyTextAnchors+1) {
        if (textAnchorsNames[countAnchors] != 'spacer') {
          jumptextString2 += '<a href="#" onMouseOver="displayText(\'then\',\'' + textAnchorsNames[countAnchors] + '\')" onMouseOut="resetThen()" onClick="verScroll(\'dn\',' + currentAnchorPosition[countAnchors-1] + ',false)">' + textAnchorsNames[countAnchors] + '</a> | ';
        }
        countAnchors ++;
      }
    }
    var jumptextString3 = '</td></tr></table></td></tr></table>'

  } else {
    var jumptextString1 = '<table width="450" border="0" cellspacing="0" cellpadding="0"><tr bgcolor="#999999"><td><img src="../grafik/void1.gif" width="440" height="1"></td></tr><tr bgcolor="#000000"><td height="49">&nbsp;</td></tr></table>'
  }

  var jumptextStringFull = jumptextString1.concat(jumptextString2,jumptextString3);

  if (document.getElementById) {
    window.document.getElementById('jumptext').innerHTML = jumptextStringFull;
  } else if (document.all) {
    window.document.all.jumptext.innerHTML = jumptextStringFull;
  } else if (document.layers) {
    window.document.layers['jumptext'].document.open();
    window.document.layers['jumptext'].document.write(jumptextStringFull);
    window.document.layers['jumptext'].document.close();
  }
} // end browser exclusion
}
//-->
