///////////////////////////////////////////////////////////
// scripts for site index aztoc.htm - aztoc.js           //
///////////////////////////////////////////////////////////

// xem - change em bg-col values
  var  xh = '', xi = 0, xj = 1, xn = '', xv = 0, xz='', cc = 'x';
function xem()
{ var  xeb = ['ffffe8', 'ffffb0', 'ffb0b0', 'b0b0ff'];
  xv = document.getElementsByTagName('em').length;
  cc = '#'+xeb[xj]
  for (xi = 0; xi < xv; xi++)
  {  document.getElementsByTagName('em')[xi].style.backgroundColor = cc;  }
  xj++;
  if (xj > 3)  { xj = 0; }
}  // end xem
// xyz - flip all paragraphs - calls xfp
function xyz()
{ var  xyv = '', ccc = '', cde='', xyb = false, xxi = 0;
  xyb = document.xth.cb000.checked;
  xyv = document.getElementsByTagName('input').length;
  for (xxi = 0; xxi < xyv; xxi++)
  { ccc = document.getElementsByTagName('input')[xxi];
    if ((ccc.type == 'checkbox')  &&  (ccc.checked != xyb))
    {  cde = ccc.name;  cde = cde.slice(2);
       if (ccc.checked)  { ccc.checked = false }  else  { ccc.checked = true }
       xfp(cde);
    }  // end if
  }  // end for
}  // end xyz
// xfp - flip paragraph - use var xh, cc
function xfp(xh)
{ cc = 'sumy' + xh;
  if ( this.document.getElementById(cc).style.display == 'none')
  {                   this.document.getElementById(cc).style.display = 'block';
    cc = 'list' + xh; this.document.getElementById(cc).style.display = 'none' }
  else
  { cc = 'sumy' + xh; this.document.getElementById(cc).style.display = 'none';
    cc = 'list' + xh; this.document.getElementById(cc).style.display = 'block' };
}  //  end xfp

/////////////////////////////////////////////////////////

function xnav(ny, topics)
{ var nx = 0;
  if (ny > 0)
  { document.open();  document.write('<form name="navi" method="get"><div class="ibox">');
    document.write('<select name="topic" size="1" onchange="window.location.href = topic.value;">');
    document.write('<option value="#x0">... &raquo;goto&laquo; ...</option>');
    document.write('<option value="#x0">... nach oben ...</option>');
    for (nx = 1; nx <= ny; nx++)
      { document.write('<option value="#x'+nx+'">'+topics[nx-1]+'</option>'); }
    document.write('</select></div></form>');  document.close();
  }  // end if
}  // xnav

///////////////////////////////////////////////////////////
// scripts for site index aztoc.htm - aztoc.js - end     //
///////////////////////////////////////////////////////////

