	isitlocal=false;//true;
	ampm='';

	function WorldClockNy(){

		now=new Date();
		ofst=now.getTimezoneOffset()/60;
		secs=now.getSeconds();
		sec=-1.57+Math.PI*secs/30;
		mins=now.getMinutes();
		min=-1.57+Math.PI*mins/30;
		hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zoneNY);
		//----time setting begins
		//ali_103006: Following line makes the NY time to move ahead an hour
		// just uncomment the following line when the time changes
		//adds 1 hours
			
		//hr = hr + 1;
		
		//-----time setting ends
		hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
		if (hr < 0) hr+=24;
		if (hr > 23) hr-=24;
		ampm = (hr > 11)?"PM":"AM";
		statusampm = ampm.toLowerCase();
		
		hr = hr + 1;
		
		hr2 = hr;
		if (hr2 == 0) hr2=12;
		(hr2 < 13)?hr2:hr2 %= 12;
		if (hr2<10) hr2="0"+hr2
		
		
		
		var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
		
		if (document.all)
			worldclockNy.innerHTML=finaltime
		else if (document.getElementById)
			document.getElementById("worldclockNy").innerHTML=finaltime
		else if (document.layers){
			document.worldclocknsNY.document.worldclockns2NY.document.write(finaltime)
			document.worldclocknsNY.document.worldclockns2NY.document.close()
		}
	
		setTimeout('WorldClockNy()',1000);
	}

	function WorldClockLD(){

		now=new Date();
		ofst=now.getTimezoneOffset()/60;
		secs=now.getSeconds();
		sec=-1.57+Math.PI*secs/30;
		mins=now.getMinutes();
		min=-1.57+Math.PI*mins/30;
		hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zoneLD);
		//add 1 hours
		//hr = hr + 1;
		hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
		if (hr < 0) hr+=24;
		if (hr > 23) hr-=24;
		ampm = (hr > 11)?"PM":"AM";
		statusampm = ampm.toLowerCase();
		
		hr = hr + 1;
		
		hr2 = hr;
		if (hr2 == 0) hr2=12;
		(hr2 < 13)?hr2:hr2 %= 12;
		if (hr2<10) hr2="0"+hr2
		
		var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
		
		if (document.all)
			worldclockLD.innerHTML=finaltime
		else if (document.getElementById)
			document.getElementById("worldclockLD").innerHTML=finaltime
		else if (document.layers){
			document.worldclocknsLD.document.worldclockns2LD.document.write(finaltime)
			document.worldclocknsLD.document.worldclockns2LD.document.close()
		}
	
		setTimeout('WorldClockLD()',1000);
	}

	function WorldClockSG(){

		now=new Date();
		ofst=now.getTimezoneOffset()/60;
		secs=now.getSeconds();
		sec=-1.57+Math.PI*secs/30;
		mins=now.getMinutes();
		min=-1.57+Math.PI*mins/30;
		hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zoneSG);
		hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
		if (hr < 0) hr+=24;
		if (hr > 23) hr-=24;
		ampm = (hr > 11)?"PM":"AM";
		statusampm = ampm.toLowerCase();
		
		hr2 = hr;
		if (hr2 == 0) hr2=12;
		(hr2 < 13)?hr2:hr2 %= 12;
		if (hr2<10) hr2="0"+hr2
		
		var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
		
		if (document.all)
			worldclockSG.innerHTML=finaltime
		else if (document.getElementById)
			document.getElementById("worldclockSG").innerHTML=finaltime
		else if (document.layers){
			document.worldclocknsSG.document.worldclockns2SG.document.write(finaltime)
			document.worldclocknsSG.document.worldclockns2SG.document.close()
		}
	
		setTimeout('WorldClockSG()',1000);
	}

	function WorldClock(){
		
		WorldClockNy();
		WorldClockLD();
		WorldClockSG();
	}

	window.onload = WorldClock;

///////////////////////////////////////////////////////////////
