  function rundemo() {
    var pos = (screen.width/2)-200;
    demo=window.open('http://www.izzysoft.de/software/demos/phpvideopro/index.php','demo',
          "toolbar=no,location=no,titlebar=no,directories=no,status=yes,resizable=yes,scrollbars=yes,copyhistory=no,width=1000,height=750,top=0,left=" + pos);
  }
  function runapi() {
    var pos = (screen.width/2)-200;
    demo=window.open('http://www.izzysoft.de/software/docs/phpvideopro/','api',
          "toolbar=no,location=no,titlebar=no,directories=no,status=yes,resizable=yes,scrollbars=yes,copyhistory=no,width=1000,height=750,top=0,left=" + pos);
  }
  function runtools() {
    var pos = (screen.width/2)-200;
    demo=window.open('http://www.izzysoft.de/ftp/net/div/izzysoft/pvptools/','changelog',
          "toolbar=no,location=no,titlebar=no,directories=no,status=yes,resizable=yes,scrollbars=yes,copyhistory=no,width=1000,height=750,top=0,left=" + pos);
  }
  function runchangelog() {
    var pos = (screen.width/2)-200;
    demo=window.open('http://www.izzysoft.de/ftp/net/div/izzysoft/pvp/','changelog',
          "toolbar=no,location=no,titlebar=no,directories=no,status=yes,resizable=yes,scrollbars=yes,copyhistory=no,width=1000,height=750,top=0,left=" + pos);
  }
  function init_elems() {
    if (document.getElementById('mail')) {
      document.getElementById('mail').href = unescape('%6d%61%69%6c%74%6f%3a%69%6e%66%6f%40%69%7a%7a%79%73%6f%66%74%2e%64%65');
    }
    if (document.getElementById('demostart')) {
      document.getElementById('demostart').onclick = function() { rundemo(); };
      document.getElementById('demostart').href = "#";
    }
    if (document.getElementById('apistart')) {
      document.getElementById('apistart').onclick = function() { runapi(); };
      document.getElementById('apistart').href = "#";
    }
    if (document.getElementById('dltools')) {
      document.getElementById('dltools').onclick = function() { runtools(); };
      document.getElementById('dltools').href = "#";
    }
    if (document.getElementById('changelogstart')) {
      document.getElementById('changelogstart').onclick = function() { runchangelog(); };
      document.getElementById('changelogstart').href = "#";
    }
  }
  window.onload=init_elems;
