cities = new Array();
cttimer = 0;
function createTime(delta){
    var date = new Date(ctmseconds + delta * 3600000);
    return two_nums(date.getHours()) + ":" + two_nums(date.getMinutes());
}
function two_nums(num){
  if(num < 10) num = "0" + num.toString();
  return num;
}
function addTime(delta){
  cities[cities.length] = delta;
  document.write("<span id=\"city_" + (cities.length - 1) + "\"></span>");
}

function calcTime(){
  for(var i = 0; i < cities.length; i++){
      document.getElementById("city_" + i).innerHTML = createTime(cities[i]);
  }
  ctmseconds += 60000;
}

function ctstarttimer(){
	calcTime();
	cttimer = setInterval('calcTime()', 60000);
}