<!--
// javascript source code
// (c) 2002 marcus wilhelm - programat4
// mailto:info@programat4.de
// all responsibility for use remains with the user

function switchConserved(onOff) {
  if (document.getElementById) {
    var conservedCoords = eval("document.getElementById('conserved').style");
    var liveactsCoords = eval("document.getElementById('liveacts').style");
  } else if (document.all) {
    var conservedCoords = eval(document.all.conserved.style);
    var liveactsCoords = eval(document.all.liveacts.style);
  } else if (document.layers) {
    var conservedCoords = eval(document.conserved);
    var liveactsCoords = eval(document.liveacts);
  }
  if (onOff == 0) {
    conservedCoords.left = -1000;
    defaultLinkText = '[ goto: ]';
    resetThen();
  } else {
    conservedCoords.left = 305;
    liveactsCoords.left = -500;
    defaultLinkText = '[ select project: ]';
    resetThen();
  }
}

function switchLiveacts(onOff) {
  if (document.getElementById) {
    var conservedCoords = eval("document.getElementById('conserved').style");
    var liveactsCoords = eval("document.getElementById('liveacts').style");
  } else if (document.all) {
    var conservedCoords = eval(document.all.conserved.style);
    var liveactsCoords = eval(document.all.liveacts.style);
  } else if (document.layers) {
    var conservedCoords = eval(document.conserved);
    var liveactsCoords = eval(document.liveacts);
  }
  if (onOff == 0) {
    liveactsCoords.left = -500;
    defaultLinkText = '[ goto: ]';
    resetThen();
  } else {
    liveactsCoords.left = 305;
    conservedCoords.left = -1000;
    defaultLinkText = '[ select project: ]';
    resetThen();
  }
}

function initConserved() {
if ( (is_nav4up || is_ie4up) && !(is_mac && is_ie5) ) { // begin browser exclusion
  var conservedString1 = '<table width="450" border="0" cellspacing="0" cellpadding="1"><tr bgcolor="#999999"><td><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="flatt1"><font color="#333333">DER<b>SPYRA conserved sounds</b></font></td><td class="flatt1" align="right"><b><a href="#" onMouseOver="displayText(\'then\',\'[ close ]\')" onMouseOut="resetThen()" onClick="switchConserved(0)"><font color="#333333">X</font></a></b></td></tr></table></td></tr><tr bgcolor="#999999"><td><table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#000000"><tr><td class="flatt1" valign="top" width="50%">';
  var countItems = 1;
  var howManyConserved = 0;
  while (countItems < (howManyProjects+1)) {
    if (allProjects[countItems].toString().charAt(0) == 'c') {
      howManyConserved++;
    }
    countItems++;
  }
  var countItems = 1;
  var countConserved = 0;
  var conservedString2 = new String();
  while (countItems < (howManyProjects+1)) {
    if (allProjects[countItems].toString().charAt(0) == 'c') {
      conservedString2 = conservedString2 + '_<a href="' + projectPath + allProjects[countItems] + projectExt + '" onMouseOver="displayText(\'then\',\'' + projectNames[countItems].toString() + '\')" onMouseOut="resetThen()">' + projectNames[countItems].toString() + '</a><br>';
      countConserved++;
    }
    countItems++;
    if (countConserved >= parseInt ((howManyConserved+1)/2)) {
      break;
    }
  }
  var conservedString3 = '</td><td class="flatt1" valign="top" width="50%">';
  var conservedString4 = new String();
  while (countItems < (howManyProjects+1)) {
    if (allProjects[countItems].toString().charAt(0) == 'c') {
      conservedString4 = conservedString4 + '_<a href="' + projectPath + allProjects[countItems] + projectExt + '" onMouseOver="displayText(\'then\',\'' + projectNames[countItems].toString() + '\')" onMouseOut="resetThen()">' + projectNames[countItems].toString() + '</a><br>';
    }
    countItems++;
  }
  var conservedString5 = '</td></tr></table></td></tr></table>';
  var conservedStringFull = conservedString1.concat(conservedString2,conservedString3,conservedString4,conservedString5);
  if (document.getElementById) {
    window.document.getElementById('conserved').innerHTML = conservedStringFull;
  } else if (document.all) {
    window.document.all.conserved.innerHTML = conservedStringFull;
  } else if (document.layers) {
    window.document.layers['conserved'].document.open();
    window.document.layers['conserved'].document.write(conservedStringFull);
    window.document.layers['conserved'].document.close();
  }
} // end browser exclusion
}

function initLiveacts() {
if ( (is_nav4up || is_ie4up) && !(is_mac && is_ie5) ) { // begin browser exclusion
  var liveactsString1 = '<table width="450" border="0" cellspacing="0" cellpadding="1"><tr bgcolor="#999999"><td><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="flatt1"><font color="#333333">DER<b>SPYRA art + live acts</b></font></td><td class="flatt1" align="right"><b><a href="#" onMouseOver="displayText(\'then\',\'[ close ]\')" onMouseOut="resetThen()" onClick="switchLiveacts(0)"><font color="#333333">X</font></a></b></td></tr></table></td></tr><tr bgcolor="#999999"><td><table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#000000"><tr><td class="flatt1" valign="top" width="50%">';
  var countItems = 1;
  var howManyLiveacts = 0;
  while (countItems < (howManyProjects+1)) {
    if (allProjects[countItems].toString().charAt(0) == 'p') {
      howManyLiveacts++;
    }
    countItems++;
  }
  var countItems = 1;
  var countLiveacts = 0;
  var liveactsString2 = new String();
  while (countItems < (howManyProjects+1)) {
    if (allProjects[countItems].toString().charAt(0) == 'p') {
      liveactsString2 = liveactsString2 + '_<a href="' + projectPath + allProjects[countItems] + projectExt + '" onMouseOver="displayText(\'then\',\'' + projectNames[countItems].toString() + '\')" onMouseOut="resetThen()">' + projectNames[countItems].toString() + '</a><br>';
      countLiveacts++;
    }
    countItems++;
    if (countLiveacts >= parseInt ((howManyLiveacts+1)/2)) {
      break;
    }
  }
  var liveactsString3 = '</td><td class="flatt1" valign="top" width="50%">';
  var liveactsString4 = new String();
  while (countItems < (howManyProjects+1)) {
    if (allProjects[countItems].toString().charAt(0) == 'p') {
      liveactsString4 = liveactsString4 + '_<a href="' + projectPath + allProjects[countItems] + projectExt + '" onMouseOver="displayText(\'then\',\'' + projectNames[countItems].toString() + '\')" onMouseOut="resetThen()">' + projectNames[countItems].toString() + '</a><br>';
    }
    countItems++;
  }
  var liveactsString5 = '</td></tr></table></td></tr></table>';
  var liveactsStringFull = liveactsString1.concat(liveactsString2,liveactsString3,liveactsString4,liveactsString5);
  if (document.getElementById) {
    window.document.getElementById('liveacts').innerHTML = liveactsStringFull;
  } else if (document.all) {
    window.document.all.liveacts.innerHTML = liveactsStringFull;
  } else if (document.layers) {
    window.document.layers['liveacts'].document.open();
    window.document.layers['liveacts'].document.write(liveactsStringFull);
    window.document.layers['liveacts'].document.close();
  }
} // end browser exclusion
}
//-->