<!-- 

// Please see http://www.steuerzahler.de for comments and
// more details.  
// Created by Messerschmidt.net
// This is a stripped down version designed for embedding.

var curamount=0;  	   // total amount spent 
var curscale=0;   	   // number of dollars per alternate scale
var curunit="";   	   // name of the alternate scale
var geographicscale=1; // scale the final number by this amount

function calc_amounts () {
  starts = new Date ("Dec 16, 2003"); 
  curdates = new Date ();
  differenz = curdates - starts;
  
  var millispermonths = 2678400000;                // 31*24*60*60*1000
  var initialamounts = 1331080050000;              
  var steigerung = 2374 / 1000;			// pro sekunde

  curamounts = (initialamounts + differenz * steigerung);
}

// Converts a number 'n' to a string with commas every three characters.
function number_strs (n) {
  //var x = n.toFixed (0);  this doesn't seem to work on some browsers
  var x = n.toString ();
  var dot = x.lastIndexOf ('.');
  x = x.substr (0, dot);
  var l = x.length;
  var res = "";
  for (l -= 3; l > 0; l -= 3) {
    res = "," + x.substr (l, 3) + res;
  }
  res = x.substr (0, l+3) + res;
  return res;
}

function inc_totals_at_rates(rates) {
  calc_amounts ();
  document.getElementById ("rauwe").firstChild.nodeValue = 
  number_strs(curamounts) + " Euro";
  setTimeout('inc_totals_at_rates('+rates+');', rates);
}

// For backwards compatibility, this function will cause the totals to
// increment at a rate of 1000ms.
function inc_totals ()
{
  inc_totals_at_rates (1000);
}


// -->
