
//if (document.all){
//	Nav="IE4";
//	}
//else if (document.layers) {
//	Nav="NS4";
//	}
//else if (document.getElementById) {
//	Nav="IE6";
//	}
//else if (window.opera && window.print){
//	Nav="Opera";
//	}
	

// JavaScript Document



var worldtime = new Array()
worldtime[0]="London,1"
worldtime[1]="Melbourne,10"
pswd="melbourne";

var hours
var shifthours
var minutes
var seconds
var localhours
var pause=2000
var thisplace
var thisline=""
var showmenu=1

function startup(){
	 showtime();
}

function showtime() {
	for (i=0; i<=worldtime.length-1;i++) {
		thisplace=worldtime[i].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}
		thisline+=localhours+":"+minutes+":"+seconds+" "+thisplace[0]+"<br>"
	}
	
	if (document.getElementById){
		document.getElementById("timediv").innerHTML=thisline;
		thisline="";
		var timer=setTimeout("showtime()",1000);

	}else if (document.all) {
		timediv.innerHTML=thisline
		thisline=""
		var timer=setTimeout("showtime()",1000)
	}else if (document.layers) {
		document.timediv.document.write("<span id='nn' class='timestyle'>")
		document.timediv.document.write(thisline)
		document.timediv.document.write("</span>")
		document.timediv.document.close()
		thisline=""
	}
	
	
}
	
function checkPassword(){
	//var passWord="melbourne";
	//var enteredPass=document.psWord.pass.value;
	//enteredPass=enteredPass.toLowerCase();
	//if (enteredPass==passWord){
		//setCookie();
		//go();
	//}
	//else {
		alert ("You have entered an Incorrect Password.  Try Again");
	//}
	
}
function go(){
location.href="/latestnews/latestnews.htm";
}

function setCookie()
{
document.cookie="LoggedIn=True";
}
function getCookie()
{
alert(document.cookie);
}



// - End of JavaScript - -->
