<!--

	//#
	//#        Projekt: HIT Radio Jugoton
	//#          Datei: world_clock.js
	//#          Datum: 2005-12-27
	//#          Autor: Uwe Walter
	//#          eMail: uw-walter@mainzkom.de
	//#
	//#          Kunde: Cedomir Majstorovic
	//#
	//#   Beschreibung: Erzeugt die Weltzeit-Anzeige in der Titelleiste.
	//#
	//# Abhängigkeiten: browser.js
	//#

	var hours
	var shifthours
	var minutes
	var seconds
	var localhours
	var pause=2000
	var thisplace
	var i_worldtime=0
	var timer

	var worldtime = new Array(
								"Beograd,1",
								"Baghdad,4",
								"Berlin,1",
								"Buenos Aires,-3",
								"Chicago,-5",
								"Denver,-6",
								"Hong Kong,8",
								"Honolulu,-10",
								"Johannesburg,1",
								"Kairo,3",
								"Lima,-5",
								"London,1",
								"Los Angeles,-7",
								"Mexico City,-5",
								"Moscow,4",
								"New York,-4",
								"Paris,1",
								"Perth,8",
								"Sao Paulo,-3",
								"Sydney,10",
								"Tokyo,9",
								"Zurich,1",
								"Wien,1",
								"M&#252;nchen,1",
								"Luzern,2",
								"Studio Radio Jugotona,1",
								"Novi Sad,1",
								"Krusevac,1",
								"Limmared,1"
							);

	function showtime() {
		if (dom) {
			thisplace=worldtime[i_worldtime].split(",")
			thistime= new Date()
			hours=thistime.getUTCHours()
			hours=eval(hours)
			shifthours=eval(thisplace[1])
			localhours=eval(shifthours+hours)
			if (localhours <0) {localhours=24+localhours}
			if (localhours >=24) {localhours=localhours-24}
	
			minutes=thistime.getUTCMinutes()
			seconds=thistime.getUTCSeconds()
	
			if (thisplace[0]=='Delhi') {
				minutes=eval(minutes+30)
				if (minutes>=60) {
					minutes=eval(minutes-60)
					localhours=eval(localhours+1)
				}
			}
			if (eval(minutes) < 10) {minutes="0"+minutes}
			if (eval(seconds) < 10) {seconds="0"+seconds}
			if (eval(localhours) < 10) {localhours="0"+localhours}
			thistime = localhours+":"+minutes+":"+seconds
			document.getElementById('wc_town').innerHTML=thisplace[0]
			document.getElementById('wc_time').innerHTML=thistime
			i_worldtime++
			if (i_worldtime>=worldtime.length) {
				i_worldtime=0
			}
			timer=setTimeout("showtime()",pause)
		}
	}

    /* Due to the DHTML top menu we have to start world clock
    ** the menu function.
    **
	** if (dom) window.onload=showtime
	*/

//-->

