<!--
// For Our Voice page
// Display names under photo

function writeName (i,j,ntext)
{
  var id = "td" + String(i) + String(j);
  // Photo name
  var text = new String (ntext);
  var end = text.indexOf(" ");
  // create font tag with name included
  if (text.indexOf("Sivap") > -1 || 
      text.indexOf("Sonnen") > -1)
    var font = "<b><font style='font-size:8px;'>&nbsp;&nbsp;";
  else
    var font = "<b><font size=1>&nbsp;&nbsp;";
  var newText = font + text.substr(0,end) + 
    "<br>&nbsp;&nbsp;" + text.slice(end+1) + "</font></b>";
  var top, left, stdTop, stdLeft;

  // For Internet Explorer,
  // calculate left and top of name position
  if (document.all)
  {
    stdTop = 0;  stdLeft = 0;
    var pElem = document.standard.offsetParent;
    do
    {
      stdTop += pElem.offsetTop;
      stdLeft += pElem.offsetLeft;
      pElem = pElem.offsetParent;
    } while (pElem != document.body)
    top = (stdTop - 4) + (i-1)*90 + 5;
    left = (stdLeft - 94) + (j-1)*90 + 5;
    document.all(id).style.top = top;
    document.all(id).style.left = left;
    document.all(id).innerHTML = newText;
  }
  // For Netscape 4.XX,
  // calculate left and top of name position
  else if (document.layers)
  {
    stdTop = document.standard.y;
    stdLeft = document.standard.x;
    top = (stdTop - 4) + (i-1)*90 + 5;
    left = (stdLeft - 94) + (j-1)*90 + 5;
    document.layers.dummy.top = top;
    document.layers.dummy.left = left;
    document.layers.dummy.document.write (newText);
    document.layers.dummy.document.close();
  }
  // For Netscape 6 and greater,
  // calculate left and top of name position
  else
  {
    stdTop = document.getElementById("std").offsetTop;
    stdLeft = document.getElementById("std").offsetLeft;
    top = (stdTop - 4) + (i-1)*90 + 5;
    left = (stdLeft - 94) + (j-1)*90 + 5;
    document.getElementById(id).style.top = top;
    document.getElementById(id).style.left = left;
    document.getElementById(id).innerHTML = newText;
  }
}
//-->