	
	//
	// 	©2007 NoGate InterAktif
	//	Murat Gaziošlu <murat.gazioglu@nogate.org>
	//
	
	
	function resimYukle(r,t)
	{
		document.getElementById('resim').innerHTML = '<img src="foto.php?d='+r+'&t='+t+'&g=352&s=1" vspace="5" hspace="5"  onLoad="document.getElementById(\'resim\').style.display=\'\';document.getElementById(\'yukleniyor\').style.display=\'none\'">';
	}
	
	function resimYukle2(r,t)
	{
		document.getElementById('resim').innerHTML = '<img src="foto.php?d='+r+'&t='+t+'&g=354&s=1&p=1" onLoad="document.getElementById(\'resim\').style.display=\'\';document.getElementById(\'yukleniyor\').style.display=\'none\'">';
	}
	
	var noktalar = 0;
	zone=0;
	yerelSaatmi=true;
	ampm='';
	
	function updateclock(z)
	{
		zone=z.options[z.selectedIndex].value;
		yerelSaatmi=(z.options[0].selected)?true:false;
	}
	
	function WorldClock(nesne)
	{
		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=(yerelSaatmi)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
		hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
		if (hr < 0) hr+=24;
		if (hr > 23) hr-=24;
		
		statusampm = ampm.toLowerCase();
		
		hr2 = hr;
		
		if (hr2 < 10) hr2 = "0" + hr2;
		if(noktalar == 1)
		{
			var finaltime=hr2+'<font color="#AC9460">:</font>'+((mins < 10)?"0"+mins:mins); //+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
		}
		else
		{
			var finaltime=hr2+'<font color="#C2BAA3">:</font>'+((mins < 10)?"0"+mins:mins); //+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;
		}
			
		return finaltime;
	}
	
	function nogate()
	{
		var degerler = new Array("","1","-4","9");
		var nesneler = new Array("local","londra","newyork","tokyo");

		yerelSaatmi = true;
		
		for(a=0;a < 4;a++)
		{
			zone = degerler[a]; 
			sonuc = WorldClock();
			document.getElementById(nesneler[a]).innerHTML = '<font size="4" color="#C2BAA3">' + sonuc + '</font>';
			yerelSaatmi = false;
		}
		
		if(noktalar == 0)
			noktalar = 1;
		else
			noktalar = 0;
		
		setTimeout('nogate()', 1000);
	}