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

// ynav var
  var iyy = 21,
    topix = ['news --- blog', 'Smile @ world', 'Impressum', 'Der Begriff SMILE',
             'Pers&ouml;nlichkeiten', 'Organisationen', 'Verschw&ouml;rung in Theorie und Praxis',
             'Kreatives', 'Futurologisches', 'Raumfahrt, Kosmos und Theorie', 'Grenzwissenschaft',
             'Umstrittene Phaenomene', 'Projekte', 'Feedback', 'Alphabetisch',
             'Literatur und Links', 'Fotos', 'Diverses', 'Stardiggers - das Spiel', 'Vertonungen',
             'Crystal Ball'],
    topgi = [2, 4, 14, 19],
    topgx = ['*** Vorbemerkungen ***', '*** Themen ***', '*** Anhang ***', '*** Download ***'];
// end ynav var

// xem - xyz - xfp - ynav


// xem - change em bg-col values
///////////////////////////////////////////////////////////

// xem - change em tag color
//
  var  xh = '',  xi = 0,  xj = 1,  xn = '',  xv = 0,  xz='',  cc = 'x';
  var  xeb = ['ffffe8', 'ffffb0', 'ffb0b0', 'b0b0ff', 'e0e0e0', 'f0f0f4'];
//
function xem()
{  xv = document.getElementsByTagName('em').length;
  cc = '#'+xeb[xj]
  for (xi = 0;  xi < xv;  xi++)
  {  document.getElementsByTagName('em')[xi].style.backgroundColor = cc;  }
  xj++;
  if (xj > 5)  { xj = 0; }
}  // end xem

// xyz - flip all paragraphs - calls xfp
//
  var  xyv = '', ccc = '', cde='', xyb = true, ccs = true, xxi = 0;
//
function xyz()
{ xyv = document.getElementsByTagName('input').length;
  xyb = document.xth.cb000.checked;
  for (xxi = 0;  xxi < xyv;  xxi++)
  { ccc = document.getElementsByTagName('input')[xxi];  ccs = ccc.checked;
    if (ccc.type == 'checkbox')
    { if (ccs != xyb)
        { if (ccc.checked)  { ccc.checked = false }  else  { ccc.checked = true };
          cde = ccc.name;  cde = cde.slice(2);  xfp(cde);
      };  // end if checked
    };  // end if checkbox
  };  // end for
  xyv = '';  xyb = '';  ccc = '';  cde = '';
}  // end xyz

// xfp - flip paragraph
//
  var ccl = '', ccs = '', xbl = 0, xbs = 0;
//
function xfp(xq)
{ ccl = 'list'; ccl = ccl + xq;             ccs = 'sumy'; ccs = ccs + xq;
  xbl = this.document.getElementById(ccl);  xbs = this.document.getElementById(ccs);
  if (xbs.style.display == 'none')
     { xbs.style.display = 'block';  xbl.style.display = 'none' }
  else
     { xbs.style.display = 'none';  xbl.style.display = 'block' };
  xbl = '';  xbs = '';
}  //  end xfp

// ynav: sub topics navigation
///////////////////////////////////////////////////////////
function ynav()
{ var ixy = 0, itxy = ' ';
  if (iyy > 0)
  { document.open();
    document.write('<form name="ynav" method="get">');
    document.write('<select name="tp" size="1" onchange="window.location.href = tp.value;">');
    document.write('<option value="#y0">... &raquo;scroll-to&laquo; ...</option>');
    for (ixy = 1; ixy <= iyy; ixy++)
      { if (ixy ==  1)  {document.write('<optgroup label="*** t&auml;glich frisch ***">'); }
        if (ixy == topgi[0])
          { itxy = '</optgroup><optgroup label="'+topgx[0]+'">'; document.write(itxy); }
        if (ixy == topgi[1])
          { itxy = '</optgroup><optgroup label="'+topgx[1]+'">'; document.write(itxy); }
        if (ixy == topgi[2])
          { itxy = '</optgroup><optgroup label="'+topgx[2]+'">'; document.write(itxy); }
        if (ixy == topgi[3])
          { itxy = '</optgroup><optgroup label="'+topgx[3]+'">'; document.write(itxy); }
        itxy = '<option value="#y'+ixy+'" label="'+topix[ixy-1]+'">'+topix[ixy-1]+'</option>';
        document.write(itxy);
      }  // end for
    document.write('</optgroup></select></form>');
    document.close();
  }  // end if
}  // xnav


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

