 /*
  * @project   citostyle.at V6
  * @file:     functions.js (citostyle.at)
  * @date:     2006-08-29
  * @author:   Jurgen Cito
  *
  */

  /* general functions */

  function $(id) { return document.getElementById(id); }

  buttons = new Array();

  function preloadButtons()
  {
    buttons[0] = new Image; buttons[0].src = 'images/buttons/network_over.jpg';
    buttons[1] = new Image; buttons[1].src = 'images/buttons/programming_over.jpg';
    buttons[2] = new Image; buttons[2].src = 'images/buttons/web_over.jpg';
  }

  function swap(obj, nr)
  {
    obj.src = buttons[nr].src;
  }

  function getmail() { return 'mailto: citostyle' + String.fromCharCode(60 + 2 + 1 + 1) + 'gmail.com'; }


