
   var active;

   var text = new Array()
   text['stepan']='<b>Stepan Pachikov</b><p class="bodytext"><a href="http://www.evernote.com" target="_blank">Evernote</a><br><a href="http://www.hyperboloid.net" target="_blank">Hyperboloid</a><br><a href="http://twitter.com/pachikov" target="_blank">Twitter</a><br><a href="http://lezner.com/" target="_blank">Yura Lezner</a></p>';
   
   text['svetlana']='<b>Svetlana Kondrativa</b><p class="bodytext"><a href="http://manzanillo.pachikov.com" target="_blank">Manzanillo</a></p>';

   text['alex']='<b>Alexander Pachikov</b><p class="bodytext"><a href="http://www.evernote.com" target="_blank">Evernote</a><br><a href="http://twitter.com/alexpach" target="_blank">Twitter</a></p>';

   text['xenia']='<b>Xenia Pachikov</b><p class="bodytext" style="font-size: 0.8em"><a href="http://www.platformed.org" target="_blank">Platform for Pedagogy</a><br><a href="http://www.emptypursepub.com" target="_blank">Empty Purse Publications</a><br><a href="http://id.iit.edu/~pachikov/" target="_blank">Institute of Design</a></p>';

   text['catherine']='<b>Catherine Pachikova</b><p class="bodytext"></p>';

   text['george']='<b>George Pachikov</b><p class="bodytext"><a href="http://www.parallelgraphics.com/" target="_blank">ParallelGraphics</a></p>';

   text['anna']='<b>Anna Pachikova</b><p class="bodytext"></p>';

   text['maxim']='<b>Maxim Pachikov</b><p class="bodytext"></p>';



  function showbox(t) {
   switch (t) {
    case "off":
     boxclass = 'box0';
    break;
    case "lite":
     boxclass = 'box20';
    break;
    case "on":
     boxclass = 'box70';
    break;
    default : boxclass = 'box70';
   }
    document.getElementById('box').className=boxclass;
  }


  function setbg(name) {
   document.getElementById('mainCell').style.background='url(images/' + name + '-bg.gif) no-repeat';
  }


  function blankbg() {
    if (active) {
      setbg(active);
    } else {
      document.getElementById('mainCell').style.background='white';
      showbox('on');
    }
  }


  function swappic(name) {
    if (active) {
      setbg(active);
    } else {
      showbox('off');
      setbg(name);
    }
  }


  function showtext(name) {
   showbox('on');
   document.getElementById('boxspan').innerHTML=text[name] + '<a href="javascript:showcontact(\'' + name + '\')">Contact</a>';
  }

  function showcontact(name) {
   showbox('on');
   text['contact']='<b>Contact</b><form method="post" action="contact.php"><input type="hidden" name="name" value="' + name + '"><p class="ctext">From: <input type="text" name="from" size="20"><br><textarea name="contact" rows="8" cols="30"></textarea><br><input type="submit" value="Contact ' + name + '"></p></form>';
   document.getElementById('boxspan').innerHTML=text['contact'];
  }


  function setactive(name) {
   active = name;
   swappic(name);
   showbox('on');
   showtext(name);
  }
