<!--
var WORD_TIME_ARROWS = new Array();
var WORD_TIME_LINKS = document.getElementById('world_time').getElementsByTagName('a');

var e = document.getElementById('clock_ico');

if (e)
{
	e = e.getElementsByTagName('div');
	for (var len = e.length - 1; len >= 0; len--)
	{
		WORD_TIME_ARROWS[e[len].className] = e[len];
	}
}

var word_time_displaces = new Array(0, -3 * 60 * 60, -2 * 60 * 60, 4 * 60 * 60);
var word_time_act = 0;

setInterval
(
	updateClock,
	1000
);

function updateClock()
{
	start_word_time++;
	var localDate = new Date((start_word_time + word_time_displaces[word_time_act]) * 1000);
	
	WORD_TIME_ARROWS['h'].style.backgroundPosition = (-19 * ((localDate.getHours() % 12) * 5 + Math.round(localDate.getMinutes() / 12))) + 'px 0px';
	WORD_TIME_ARROWS['m'].style.backgroundPosition = (-1 * localDate.getMinutes() * 35) + 'px 0px';
	WORD_TIME_ARROWS['s'].style.backgroundPosition = (-1 * localDate.getSeconds() * 39) + 'px 0px';
}

function changeTime(id)
{
	if (id == word_time_act)
		return false;
	
	WORD_TIME_LINKS[word_time_act].className = '';
	word_time_act = id;
	WORD_TIME_LINKS[word_time_act].className = 'act';
	
	updateClock();
	
	return false;
}

updateClock();
//-->
